A app to demonstrate how to use dependency injection in android using Hilt. The App Consumes news from News API API
- Android Studio Arctic Fox | 2020.3.1 Patch 2
- Language: Kotlin
- Build System: Gradle
- Android Jetpack
- Data Binding The Data Binding Library is a support library that allows you to bind UI components in your layouts to data sources in your app using a declarative format rather than programmatically.
- Live Data LiveData is lifecycle-aware, meaning it respects the lifecycle of other app components updating app component observers that are in an active lifecycle state.
- Navigation Android Jetpack's Navigation component helps you implement effective navigation.
- Hilt Hilt provides a standard way to incorporate Dagger dependency injection into an Android application.
- Kotlin coroutines Executing code asynchronously.
- Retrofit Type-safe HTTP client for Android and Java and Kotlin by Square, Inc.
- Gson Moshi is a modern JSON library for Android and Java. It makes it easy to parse JSON into Java objects:
- OkHttp interceptor Logs HTTP requests and responses
- Material Design Build beautiful, usable products using Material Components for Android
- JUnit4 Unit Testing
- Truth Fluent assertions
- Espresso Automated testing UI test
- MockWebServer A scriptable web server for testing HTTP clients
This sample app was for Android254 October Meetup Session: Dependency Injection Using Hilt. Find Slides here