Git Product home page Git Product logo

android-template-hilt's Introduction

android-template-hilt


Android MVVM Template

This is a template Android project that follows the MVVM (Model-View-ViewModel) architecture pattern. It includes Dagger Hilt for dependency injection and Kotlin Coroutines for asynchronous programming.

Features

  • MVVM Architecture: Separation of concerns with clear division of responsibilities between the View, ViewModel, and Model layers.
  • Dagger Hilt: Dependency injection framework for Android that reduces boilerplate code.
  • Kotlin Coroutines: For asynchronous and non-blocking programming.
  • LiveData: Lifecycle-aware observable data holder class.
  • Repository Pattern: Centralized data source for handling data operations.
  • ViewBinding: Type-safe way of accessing views in Android.
  • Navigation Component: For handling navigation between fragments.
  • Unit Testing: Basic setup for unit testing ViewModel and Repository classes.

Installation

Clone the repository:

git clone https://github.com/jaykishan-sewak999/android-template-hilt

Usage

  1. Open the project in Android Studio.
  2. Build the project to ensure all dependencies are resolved.
  3. Start building your app on top of this template.

Dependencies

Structure

|-- app
    |-- src
        |-- main
            |-- java/com/example/yourproject/
                |-- data/
                |-- di/
                |-- ui/
                |-- util/
            |-- res/
        |-- test
            |-- java/com/example/yourproject/
                |-- data/
                |-- ui/
                |-- util/
  • data/: Contains data sources, repository, and data models.
  • di/: Dependency injection setup using Dagger Hilt.
  • ui/: Contains UI components, including activities, fragments, and view models.
  • util/: Utility classes.

Contributing

Feel free to contribute to this project by opening issues or pull requests. Contributions are welcome!

android-template-hilt's People

Contributors

jaykishan-sewak999 avatar jaykishan-sewak 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.