1plugins { 2 id 'com.android.library' 3 id 'kotlin-android' 4 id 'kotlin-kapt' 5 id 'dagger.hilt.android.plugin' 6} 7 8android { 9 compileSdkVersion 30 10 buildToolsVersion "30.0.2" 11 12 defaultConfig { 13 minSdkVersion 15 14 targetSdkVersion 30 15 versionCode 1 16 versionName "1.0" 17 18 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 19 } 20 compileOptions { 21 sourceCompatibility JavaVersion.VERSION_1_8 22 targetCompatibility JavaVersion.VERSION_1_8 23 } 24 kotlinOptions { 25 jvmTarget = '1.8' 26 } 27 lintOptions { 28 checkReleaseBuilds = false 29 } 30} 31 32dependencies { 33 implementation 'com.google.dagger:hilt-android:LOCAL-SNAPSHOT' 34 kapt 'com.google.dagger:hilt-compiler:LOCAL-SNAPSHOT' 35 36 testImplementation 'androidx.test.ext:junit:1.1.2' 37 testImplementation 'com.google.truth:truth:1.0.1' 38 39 androidTestImplementation 'androidx.test.ext:junit:1.1.2' 40 androidTestImplementation 'androidx.test:runner:1.3.0' 41 androidTestImplementation 'com.google.truth:truth:1.0.1' 42} 43 44hilt { 45 enableExperimentalClasspathAggregation = true 46}