News Application
This is an Android application that consumes New York Times Top Stories API and displays the following news headlines and abstracts:
- Top News
- Sports News
- Food News
Features
- Currently, users can view News headlines and abstract provided by the New York Times Top Stories API
- Users can also navigate to different news types by clicking on the bottom Navigation links.
- Users can also view news details offline.
Limitations
The API doesn't provide the news details, so users currently only view Headlines and Abstracts, and NOT
news articles.
Tools Used
- Kotlin
- RxJava/Kotlin
- Retrofit
- SQLite Database
- Picasso
- Content Providers
- Data binding
- Junit, Espresso and Mockito
Test
- To run Instrumented/UI tests,
./gradlew connectedAndroidTest
- To run Unit Tests,
./gradlew test
Download
The link to the already built version of the app can be found here
How to install and run
- Clone this repo by running
git@github.com:Noblemajesty/LMS-News-Application.git
- Get an API key from here
- In the cloned repo, navigate to the
app/src/main/java/com/noblemajesty/newsapplication/utils
folder. - In the
utils
folder, create a new class/fileSecret.kt
- Ensure the newly created
Secret.kt
file is empty. - Copy the following code into the file
package com.noblemajesty.newsapplication.utils class Secret { companion object { const val apiKey = "Your API Key from New York Times" } }
- Build the app.
Contributions are welcome!