Skip to content

SyedAsimAliSE/DaggerSampleApp

Repository files navigation

Dagger2 Android Sample App

Dagger2

An Android application with Dagger2 Android implementation using MVVM pattern along with AAC.

Build Status License

Info

  • This project is built using Android Studio 3.3 Beta 2
  • Minimum SDK version used in 21 target SDK version is 28
  • Project is based on Single Activity
  • It is using Navigation Components, so no manual dealing with back stack.
  • Each fragment have it's own view model injected by dagger from the view model factory

Clone

  • Clone this repo to your local machine using https://github.com/SyedAsimAliSE/DaggerSampleApp.git

Usage

  • Every thing related to Dagger2 is in the di pacakge
  • Every thing related to UI is in ui pacakge
  • Every screen have it's own pacakge and it contains the following:
    • Fragment Class
    • ViewModel Class

You want to add classes required within whole app level scope

Find AppModule.kt by pressing shift 2 times in the IDE

Classes related to the Main Activity

Find MainModule.kt it's in the ui > main pacakge

Contributing

Step 1

  • 🍴 Fork this repo!
  • 👯 Clone this repo to your local machine using https://github.com/SyedAsimAliSE/DaggerSampleApp.git

Step 2

  • HACK AWAY! 🔨🔨🔨

Step 3


License

License

Releases

No releases published

Packages

No packages published

Languages