Android app showing Launched Spacecrafts & Rockets data of ISRO using ISRO π API. App is built to demonstrate Modern Android Development. UI migrated to Jetpack Compose.
You can Install and test latest build from below π
It simply loads data of Spacecrafts, Launcher, Customer Satellites and Centres data of ISRO using ISRO API. Use retrofit to fetch all the json data provided by the api and display on the user screen.
Data will be always loaded from local database. Remote data (from API) and Local data is always synchronized.
App follows clean architecture pattern (MVVM + Usecases). Whole app is organized with intent to create architecture like in multi-module approach.
- Kotlin - First class and official programming language for Android development.
- Jetpack Compose - A declarative UI toolkit for building native Android UI
- Coroutines - for asynchronous
- Flow - A cold asynchronous data stream that sequentially emits values and completes normally or with an exception.
- Hilt - Dependency injection library for Android that reduces the boilerplate of doing manual dependency injection in your project
- Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
- LiveData - Data objects that notify views when the underlying database changes.
- ViewModel - Stores UI-related data that isn't destroyed on UI changes.
- ViewBinding - Generates a binding class for each XML layout file present in that module and allows you to more easily write code that interacts with views.
- Room - SQLite object mapping library.
- Retrofit - A type-safe HTTP client for Android and Java.
- Material Components for Android - Modular and customizable Material Design UI components for Android.
# Root Package
.
βββ data # For data handling.
β βββ local # Local Persistence Database. Room (SQLite) database
| β βββ dao # Data Access Object for Room
| | |ββ database # Datbase Instance
| |ββ remote # Remote Data Handlers
β | βββ api # Retrofit API for remote end point
| |ββ model # Model classes
| βββ repository # Repository implementation
|
βββ domain # Domain layer
| |ββ usecase # Usescase classes
| βββ repository # Repository interface (Single source of data)
|
βββ di # Dependency injection modules
|
βββ ui # Presentation layer
β |ββ application # Application class
| βββ activity # Main activity
| |ββ home # Home fragment
| βββ viewmodel # Common viewmodel for all data
| βββ spacecraft # Fragment + adapter for spacecraft list
| βββ centres # Fragment + adapter for isro centres list
| βββ launchers # Fragment + adapter for isro launchers list
| βββ satellite # Fragment + adapter for customer satellite list
|
βββ utils # Utility classes