Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 4.45 KB

README.md

File metadata and controls

64 lines (53 loc) · 4.45 KB

ISRO-Archive

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 👇

ISRO-Archive

Screenshot-20230225-100549.png Screenshot-20230225-100620.png

About

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.

Built With 🛠

  • 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.

Package Structure

# 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

MAD Score

Summary