An open API service indexing awesome lists of open source software.

https://github.com/hardi17/minicalcwithdagger

Simple Dagger implementation demo for the beginner.
https://github.com/hardi17/minicalcwithdagger

android android-application android-development android-kotlin dagger kotlin kotlin-dagger

Last synced: about 1 year ago
JSON representation

Simple Dagger implementation demo for the beginner.

Awesome Lists containing this project

README

          

# MiniCalcWithDagger
Using,
- Kotlin
- Viewbinding
- Dagger:
- Dagger is one of the DI libraries that is created by "Square" and maintaining by Google.
- It is managing and creating graph of dependencies for you.
- Ease of unit test and reusable code.

simple dagger demo with Application class.
- Intention to made this tutorial to help you who wants to take the baby step to learn dagger in kotlin :-)
- In this examle how to set up dagger in your Android project from the scratch.
- How to impement Dagger into Project?

- Add plugin into App -> build.gradle file, add this line

plugins {
id 'kotlin-kapt'
}

- Add dagger dependency App -> build.gradle file [Use updated dagger version]

dependencies {
-------
// Dependency injection
implementation "com.google.dagger:dagger:2.42"
kapt "com.google.dagger:dagger-compiler:2.42"
}

## Contributing to Learn Dagger in kotlin

Just make pull request. You are in!

Thanks

Hardi Rachh

You can connect with me on:

- LinkedIn : https://www.linkedin.com/in/hardi-r/
- Medium : https://hardirachh.medium.com/