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

https://github.com/albert-gao/plaindaggerkotlinandroid

a minimal example of showing how to use plain dagger to create application wide injection.
https://github.com/albert-gao/plaindaggerkotlinandroid

android dagger dependency-injection example kotlin

Last synced: 10 months ago
JSON representation

a minimal example of showing how to use plain dagger to create application wide injection.

Awesome Lists containing this project

README

          

# PlainDaggerKotlinAndroid

a minimal example of showing how to use plain dagger to create application wide injection.

We use:
- dagger 2.15
- Kotlin 1.2.31

Download the repo and open it in Android Studio.
### See my details in my [blog](http://www.albertgao.xyz/2018/04/17/dependency-injection-on-android-using-dagger-and-kotlin-in-minutes/)

Run the app, you should see some info in the console like:

```bash
04-17 06:47:41.588 27291-27291/? I/System.out:/data/app/xyz.akbertgao.daggerkotlin-1/base.apk
```

**If you are looking for a setup with `dagger-android`, check the following one:**

- [repo](https://github.com/Albert-Gao/DaggerAndroidKotlinExample)
- [blog](http://www.albertgao.xyz/2018/04/18/dependency-injection-on-android-with-dagger-android-and-kotlin/)