1// https://mvnrepository.com/artifact/com.google.dagger/dagger
2compile group: 'com.google.dagger', name: 'dagger', version: '2.0'
3
1// Add Dagger dependencies
2dependencies {
3 api 'com.google.dagger:dagger:2.x'
4 annotationProcessor 'com.google.dagger:dagger-compiler:2.x'
5}
1// JAVA
2dependencies {
3 implementation 'com.google.dagger:dagger:2.x'
4 annotationProcessor 'com.google.dagger:dagger-compiler:2.x'
5}
6
7// KOTLIN
8
9apply plugin: 'kotlin-kapt'
10
11dependencies {
12 implementation 'com.google.dagger:dagger:2.x'
13 kapt 'com.google.dagger:dagger-compiler:2.x'
14}
15