Displaying Most Viewed Articles from NY Times
This application demonstrates the use of MVVM architecture using the Android Jetpack Components
Apart from the above Jetpack components, the following dependencies are used -
- Retrofit networking library
- Dagger 2 for dependency injection
- Coroutines for asynchronous operations
- Coil for loading images
- Mock Web Server by Square to mock http clients for testing
- Timber for logging
- Jacoco for generating code coverage reports
- Register on the Ny Times and get the api key
- Add the API_KEY in the project level
build.gradle
file underprod
productFlavors
Use the below command to generate Unit test code coverage report for this project
./gradlew testProdDebugUnitTest
You will find the test coverage report in the following directory -
[projectDir]/app/build/reports/tests/testProdDebugUnitTest/index.html
Open the index.html
in your default/any browser to see the code coverage report.
- Update to Hilt
- Refactor UI elements using JetPack Compose