GithubHelp home page GithubHelp logo

ekarapp's Introduction

Ekar App

Ekar App which shows the vehicle detail by picking the vehicle from map and on board it.

This project is built on 100% Compose UI and kotlin.

kotlin compose Hilt Coroutines minSdkVersion targetSdkVersion MVI


Table of Contents

About the Project

Screenshots

Download Apk

Here is the link to download the apk Ekar App

Tech Stack

Mutable state is used in this project instead of Flows.

Installation

Download:

$ git clone https://github.com/SyedAmmarSohail/EkarApp.git

Import Project by Android Studio Menu > File > Import Project.

Release:

This app is production ready, only need to add your keystore path, password and alias in build.gradle file located under the app folder.

To view the map add your Google map api key in local.properties like

GOOGLE_MAPS_API_KEY= **YOUR_GOOGLE_MAP_API_KEY**

Architecture

AppModule:

Used layer-based clean architecture in which include data, domain and presentation layer.

  • Data layer - Manages application data eg. retrieve data from the network

  • Domain layer - Contains business logic with separate usecases

  • Presentation layer - Presents data to a screen and handle user interactions

BuildSrc:

Puts every dependencies in one place with respect to its classes, and use it by calling the dependency with its class.

Architecture Diagram

screenshot

Project tree

.
├── EkarApp
├── app
    ├── ekar
        ├── data
            ├── di
                ├── EkarDataModule
            ├── intercepter
                ├── QueryInterceptor
            ├── mapper
                ├── EkarMapper.kt    
            ├── remote
                ├── dto
                    ├── VehicleDetail
                ├── EkarApi
            ├── repository
                ├── EkarRepositoryImp
        ├── domain
            ├── model
                ├── VehicleModel
            ├── repository
                ├── EkarRepository
            ├── usecase
                ├── VehicleDetailUsecase
        ├── presentation
            ├── component
                ├── ActionAppBar.kt
                ├── ComposeButton.kt
                ├── ComposeEditText.kt
                ├── ComposeHorizontalList.kt
                ├── ComposeTextWithBackground.kt
                ├── RichText.kt
            ├── map
                ├── MapScreen.kt
            ├── navigation
                ├── Route    
            ├── onboard
                ├── OnBoardScreen.kt
            ├── theme
                ├── Color.kt
                ├── Dimensions.kt
                ├── FontSize.kt
                ├── Shape.kt
                ├── Theme.kt
                ├── Type.kt
            ├── vehicle_detail
                ├── VehicleDetailScreen.kt    
            ├── EkarEvent.kt
            ├── EkarUiState
            ├── EkarViewModel
        ├── utils
            ├── NetworkUtil.kt
            ├── NetworkFormat.kt
            ├── Result.kt
            ├── UiEvent
            ├── UiText
            ├── CommonExt
        ├── EkarApp
        ├── MainActivity
├── buildSrc
    ├── AndroidX
    ├── Build
    ├── Compose
    ├── Coroutines
    ├── DaggerHilt
    ├── Google
    ├── Kotlin
    ├── Moshi
    ├── ProjectConfig
    ├── Retrofit
    ├── Testing
└── .gitignore

Test Cases

Unit Test:

  • Repository Test - To run the unit tests for repository go to the EkarRepositoryImpTest class under the test/data folder and run the tests.
  • ViewModel Test - To run the unit tests for viewModel go to the EkarViewModelTest class under the test/presentation folder and run the tests.
  • UseCase Test - To run the unit tests for use cases go to the VehicleDetailUsecaseTest class under the test/domain folder and run the tests.

Contact

Syed Ammar Sohail - [email protected]

ekarapp's People

Contributors

syedammarsohail avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.