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.
- Host: GitHub
- URL: https://github.com/hardi17/minicalcwithdagger
- Owner: hardi17
- Created: 2023-11-13T17:56:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-10T18:32:59.000Z (over 2 years ago)
- Last Synced: 2025-02-01T19:11:42.167Z (over 1 year ago)
- Topics: android, android-application, android-development, android-kotlin, dagger, kotlin, kotlin-dagger
- Language: Kotlin
- Homepage:
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/