From 69b2d504934eab4e69b7ef9a574c6c7560cee54b Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 15 Jun 2020 20:11:12 -0700 Subject: Update AS and add hilt usage --- sample/build.gradle | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'sample/build.gradle') diff --git a/sample/build.gradle b/sample/build.gradle index 96ed78f..b36e3f5 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -2,8 +2,10 @@ import kau.Dependencies apply plugin: 'com.android.application' apply plugin: 'kotlin-android' +apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-android-extensions' apply plugin: 'com.github.triplet.play' +apply plugin: 'dagger.hilt.android.plugin' play { serviceAccountCredentials = file('../files/gplay-keys.json') @@ -135,12 +137,16 @@ dependencies { implementation project(':searchview') implementation project(':mediapicker') + implementation "com.google.dagger:hilt-android:2.28-alpha" + kapt "com.google.dagger:hilt-android-compiler:2.28-alpha" + implementation Dependencies.materialDialog("input") - implementation Dependencies.koin testImplementation Dependencies.kotlinTest testImplementation Dependencies.junit - testImplementation Dependencies.koinTest + testImplementation 'com.google.dagger:hilt-android-testing:2.28-alpha' + kaptTest 'com.google.dagger:hilt-android-compiler:2.28-alpha' + androidTestImplementation Dependencies.kotlinTest androidTestImplementation Dependencies.espresso @@ -148,5 +154,6 @@ dependencies { androidTestImplementation Dependencies.espresso("contrib") androidTestImplementation Dependencies.testRules androidTestImplementation Dependencies.testRunner - androidTestImplementation Dependencies.koinTest + androidTestImplementation 'com.google.dagger:hilt-android-testing:2.28-alpha' + kaptAndroidTest 'com.google.dagger:hilt-android-compiler:2.28-alpha' } -- cgit v1.2.3