Android app showing Launched Spacecrafts & Rockets data of ISRO using ISRO ๐ API. App is built to demonstrate Modern Android Development.
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.
- 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