Skip to content

Welcome to my project repository, where we dive deep into the intricacies of Android development with a focus on Jetpack Libraries. This project serves not a real-world application it serves as an extensive resource for learning and understanding the application of modern development practices, libraries and structures in Android.

License

Notifications You must be signed in to change notification settings

Mrtckr008/Android-Sample-Best-Practices

Repository files navigation

Comprehensive Android Development Guide: Clean architecture, MVVM, UI & Unit & Screenshot Test, Libraries (LiveData, StateFlow, Retrofit, Hilt, Coroutine, Compose, DataStore, Test Libraries and more)

I created different mini-apps for each item in the bottom navigation. Each mini-app shows a different way to use popular libraries, structures and best practices in Android development. This project is great for learning because it covers many important variable approaches that Android developers use.

Architecture & Design Principles

We adhere to clean architecture guidelines, structuring our application into multiple layers (Data, Domain, Presentation) to ensure decoupling and testability. The presentation layer is powered by MVVM (Model-View-ViewModel), utilizing Jetpack Compose for dynamic UIs and animations.

Key Libraries

  • Jetpack Compose & Material3 & Compose Navigation: For building modern UIs with a focus on material design principles.
  • Dagger-Hilt: Dependency injection framework for Android, simplifying the provision of dependencies across the application.
  • Retrofit & Gson: Networking and JSON serialization/deserialization for API communication.
  • Jetpack Navigation: For handling in-app navigation in a modular and scalable way.
  • Coroutines & Flow: For asynchronous programming and reactive data streams.
  • Jetpack Lifecycle, LiveData, ViewModel: Lifecycle-aware components for robust and maintainable MVVM architecture.
  • ExoPlayer: Media playback.
  • Mockito & JUnit & Mockk & Espresso & Paparazzi: Testing libraries for Unit, UI, Integration & Screenshot tests.
  • TOML Version Catalog: Centralizes and manages library versions across the project, enhancing maintainability and consistency in dependency management.
  • DataStore with Serialization: For efficient and robust data storage and management, providing a reactive and secure way to handle preferences and structured data.
  • Coil: For image loading and caching in applications, offering seamless integration with Jetpack Compose.

Custom Compose Animation

Developed with Jetpack Compose, this is a custom animation created without the use of any external libraries. Designed using modern and flexible Compose APIs, it's perfect for adding a unique and fluid experience to your user interface.

Unique Usage for Page 1:

weather-shot.mp4
  • Clean Architecture: Demonstrated the use of Clean Architecture in the format of UI - Usecase(domain) - Data.
  • Data Fetching: Provided examples of fetching data from an API and a local JSON file.
  • Common usages

Special Usage for Page 2:

player-video.mp4
  • Clean Architecture without Domain Module: Showed a different usage of Clean Architecture by directly connecting to the data module without a domain module.
  • DataStore Usage: Demonstrated the use of DataStore for managing data.
  • Common usages

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

Welcome to my project repository, where we dive deep into the intricacies of Android development with a focus on Jetpack Libraries. This project serves not a real-world application it serves as an extensive resource for learning and understanding the application of modern development practices, libraries and structures in Android.

Topics

Resources

License

Stars

Watchers

Forks

Languages