Skip to content

utkarshxf/OpeninApp

Repository files navigation

Openin App (Android application)

Openin App demonstrates modern Android development with Jetpack Compose, Hilt, Coroutines, Flow, Jetpack (Room, ViewModel), and Material Design based on MVVM architecture.

Download

Go to the Releases to download the latest APK.

Go to Screens Section to See the Screen.

Video

video_inapp.mp4

Tech stack & Open-source libraries

  • Kotlin based, utilizing Coroutines + Flow for asynchronous operations.
  • Jetpack Libraries:
    • Jetpack Compose: Android’s modern toolkit for declarative UI development.
    • ViewModel: Manages UI-related data and is lifecycle-aware, ensuring data survival through configuration changes.
    • Navigation: Facilitates screen navigation, complemented by Compose Navigation for Screen Navigation.
    • Hilt: Facilitates dependency injection.
  • Architecture:
    • MVVM Architecture (View - ViewModel - Model): Facilitates separation of concerns and promotes maintainability.
    • Repository Pattern: Acts as a mediator between different data sources and the application's business logic.
  • Retrofit2: Constructs REST APIs and facilitates paging network data retrieval.

Architecture

Openin App adheres to the MVVM architecture and implements the Repository pattern, aligning with Google's official architecture guidance. The architecture of STOCKS App is structured into three distinct layers: the UI layer, domain layer and data layer. Each layer fulfills specific roles and responsibilities, outlined as follows: Openin App follows the principles outlined in the Guide to app architecture, making it an exemplary demonstration of architectural concepts in practical application.

Architecture Overview

  • The data layer operates autonomously from other layers, maintaining purity without dependencies on external layers.
  • This loosely coupled architecture enhances component reusability and app scalability, facilitating seamless development and maintenance.
project_root
├── data
│   ├── model
│   ├── network
│   └── repository
├── di
├── domain.repository
├── presentation
│   ├── common
│   ├── dashboard
│   │   ├── components
│   │   ├── DashboardScreen.kt
│   │   └── DashboardScreenViewModel
│   └── ui.theme
├── usecase
├── util
├── MainActivity
└── MyApplication

UI Layer

The UI layer encompasses UI elements responsible for configuring screens for user interaction, alongside the ViewModel, which manages app states and restores data during configuration changes.

  • UI elements observe the data flow, ensuring synchronization with the underlying data layer.

Domain Layer

The domain layer is responsible for encapsulating the core business logic of the application. This layer acts as an intermediary between the UI and data layers, ensuring that data is processed and business rules are enforced before being presented to the user.

Data Layer

The data layer is composed of repositories that handle business logic tasks fetching remote data from a network. This layer is designed to prioritize online access, functioning primarily as an online-first repository of business logic. It adheres to the principle of "single source of truth," ensuring that all data operations are centralized and consistent.

Data API

API Integration: Employ the specified API for this assignment: https://api.inopenapp.com/api/v1/dashboardNew

Screens

About

Assignment - Android Developer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages