Skip to content

This Pokedex Pokémon app is a project that incorporates the latest Android technologies recommended by Google, such as Multi-Module Architecture and Jetpack Compose, the new standard for building UI.

License

Notifications You must be signed in to change notification settings

NicosNicolaou16/Pokedex_Compose_Multi_Module

Repository files navigation

Pokedex Compose Multi-Module

This Pokedex Pokémon app is a project that incorporates the latest Android technologies recommended by Google, such as Multi-Module Architecture and Jetpack Compose, the new standard for building UI. It also utilizes important technologies like Room Database, KSP, Hilt for dependency injection, the new Shared Element Transition, and the latest Navigation with Type Safety.

Examples

The Project Contain the following technologies

The programming language is the Kotlin, it is a modern, JVM-based programming language that is concise, safe, and interoperable with Java.
Kotlin Coroutines is used for asynchronous tasks.
Kotlin KTX is a collection of Kotlin extensions that offer more concise and expressive code for working with Android APIs and libraries. The UI is build using Jetpack Compose.
For Navigation between screens is use the New Navigation Type Safety.
For Animation and Navigation from the main screen to details screen is use the new Shared Element Transition. (Shared Element Transition - Article, Shared Element Transition - Article)
Retrofit is responsible for making requests and retrieving data from the remote server. (Repository)
Room Database is responsible for saving the retrieved data from the remote server, querying data from the local database, and supporting offline functionality.
Palette is used to retrieve the color from the image; in our case, we are using the Pokémon color to paint the linear indicator with the same color.
KSP ("Kotlin Symbol Processing") is a tool for efficient annotation processing in Kotlin, providing faster code generation and symbol manipulation compared to KAPT. Repository
Coil for Jetpack Compose is a library that it is responsible for loading the images asynchronous. (Coil Documentation, Repository)
Hilt Dependencies Injection is an Android library that simplifies dependency injection by using annotations to automatically manage and provide dependencies across components, built on top of Dagger. (Documentation)
MVVM with repository is an architecture where the Repository manages data sources (e.g., network, database), the ViewModel processes the data for the UI, and the View displays the UI, ensuring a clear separation of concerns.
UI State to initial, loading, loaded and error.
R8 enabled, is a code shrinker and obfuscator for Android that optimizes and reduces the size of APKs by removing unused code and resources, while also obfuscating the remaining code to improve security.
The percentage for showing the skills of each Pokémon is calculated using the PercentageWithAnimation built by NicosNicolaou16.

Modules Overview

compose_ui (Feature)

This module contains the UI components of the app, including the list of dynamic items and the details screen. It serves as a feature module, which means additional features can be added in the future.

  • List Screen
  • Details Screen
  • Generic Views
  • Utilities

database (Core)

This module handles the app's database and models, managing data persistence. It is a core module responsible for data management.

  • Room Database
  • Data Models
  • Dependency Injection for Database

navigation (Core)

This module manages the navigation between screens, providing routes and navigation logic. It is a core module for routing within the app.

  • Screens Routes
  • Navigation Logic

network (Core)

This module handles all network-related operations, including the network manager, API services, and repositories. It is a core module responsible for remote data fetching and communication.

  • Network Manager
  • API Services
  • Repositories
  • Utilities
  • Dependency Injection for Network

How to Create an Android Library Module for an App in Android Studio

File -> New -> New Module -> Android Library -> Add your own Module Name -> Finish.

Versioning

Target SDK version: 35
Minimum SDK version: 28
Kotlin version: 2.1.0
Gradle version: 8.8.0

Feeds/Urls/End Point (parsing some data from the response)

(Links References for Ends Points)

https://pokeapi.co/
https://github.com/PokeAPI/sprites (GitHub)