This project contain una app Android for to consume an API Rest of https://hn.algolia.com that show article recents of many topics.
PostedArticleApp is a rest api-consume, mobile-ready, offline-storage compatible, Android-Native viewer of articles.
- Sincronize article with swipe down.
- We persist article in local storage of device.
- View in WebView the URLs of articles.
- Delete a article of list.
- We show the title, the author and elapsed time.
PostedArticleApp is a lightweight Android app based on the formatting conventions that developers naturally use in build to software.
PostArticleApp uses a number of open source projects to work properly:
- Framework Android - A Framework serves to be able to write code or develop an application in a simpler way..
- Retrofit - Retrofit is a REST server client for Android and Java developed by Square, very simple and very easy to learn..
- Gson - Gson is a Java library that can be used to convert Java Objects into their JSON representation.
- Navigation - Navigation refers to the interactions that allow users to navigate across, into, and back out from the different pieces of content within your app. Android Jetpack's Navigation component helps you implement navigation.
- Room - The Room persistence library provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite.
- SwipeRefreshLayout - SwipeRefreshLayout to add the 'swipe-to-refresh' gesture to a View, enabling the ability to trigger a refresh from swiping down on the view.
- RecyclerView - RecyclerView makes it easy to efficiently display large sets of data.
- LiveData - is an observable data holder class. Unlike a regular observable, LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services.
- ViewModel - The ViewModel class is designed to store and manage UI-related data in a lifecycle conscious way.
- View Binding - View binding is a feature that allows you to more easily write code that interacts with views.
And of course PostedArticleApp itself is open source with a public repository on GitHub.
- Git - Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
- Java - Java is a programming language and computing platform first released by Sun Microsystems in 1995. Install Java 8 and Java 11.
- Android Studio - Android Studio provides the fastest tools for building apps on every type of Android device. Version Arctic Fox | 2020.3.1 Patch 2.
Clone the repository.
git clone git@github.com:luchonetvv/posted-article.git
git checkout develop
git status
You have to install Java 8 and Java 11.
Install Android Studio and then open the project... Only need to execute the run button and will build the project satisfactory.
Or if you want to build and install via terminal, this are steps:
Note: Set
Java 11
is required for execute gradle tools. Note: ThePhysical Device
have to have configure the Developer Options, Debugging USB and connected the device to laptop.
On Mac or Linux
./gradlew installDebug
On Windows
gradlew.bat installDebug
Apache License, Version 2.0
Free Software, Hell Yeah!