Pokedex is an Android which displays Pokemons using PokeApi.
Kotlin based, Coroutines + Flow for asynchronous programming.
MVVM repository architecture.
Retrofit for API calls.
Room database for caching.
Dagger Hilt for DI.
Application Architecture Guide
- Foundation - Components for core system capabilities, Kotlin extensions and support for
multidex and automated testing.
- AppCompat - Degrade gracefully on older versions of Android.
- Android KTX - Write more concise, idiomatic Kotlin code.
- Test - An Android testing framework for unit and runtime UI tests.
- Architecture - A collection of libraries that help you design robust, testable, and
maintainable apps. Start with classes for managing your UI component lifecycle and handling data
persistence.
- View Binding - Feature that allows you to more easily write code that interacts with views.
- Lifecycles - Create a UI that automatically responds to lifecycle events.
- LiveData - Build data objects that notify views when the underlying database changes.
- Navigation - Handle everything needed for in-app navigation.
- Room - Access your app's SQLite database with in-app objects and compile-time checks.
- ViewModel - Store UI-related data that isn't destroyed on app rotations. Easily schedule asynchronous tasks for optimal execution.
- UI - Details on why and how to use UI Components in your apps - together or separate
- Animations & Transitions - Move widgets and transition between screens.
- Fragment - A basic unit of composable UI.
- Layout - Lay out widgets using different algorithms.
- Material design - Material is an adaptable system of guidelines, components, and tools that support the best practices of user interface design.
- Third party and miscellaneous libraries
- Glide for image loading
- Hilt: for dependency injection
- Kotlin Coroutines for managing background threads with simplified code and reducing needs for callbacks
- Gson is a Java library that can be used to convert Java Objects into their JSON representation.
- Retrofit - Retrofit is a REST Client library to create an HTTP request and also to process the HTTP response from a REST API.
- Stetho - Enables to use Chrome debugging tools to troubleshoot network traffic, database files, and view layouts.
For development, the latest version of Android Studio is required. The latest version can be downloaded from here.
This project uses the Gradle build system. To build this project, use the
gradlew build
command or use "Import Project" in Android Studio.
For more resources on learning Android development, visit the Developer Guides at developer.android.com.
If you've found an error in this repo, please file an issue.
Patches are encouraged, and may be submitted by making changes in a new branch and submitting a pull request through GitHub.