From 39db7f4c3d7b8f3d68ef1a8881b69624b721f6c6 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 17 Apr 2021 17:08:19 -0700 Subject: Start hilt injection --- app/build.gradle | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'app/build.gradle') diff --git a/app/build.gradle b/app/build.gradle index 357d21d4..5a3def45 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,6 +2,7 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-parcelize' apply plugin: 'kotlin-kapt' +apply plugin: 'dagger.hilt.android.plugin' //apply plugin: 'com.getkeepsafe.dexcount' apply plugin: 'com.gladed.androidgitversion' @@ -52,7 +53,7 @@ android { testInstrumentationRunner "com.pitchedapps.frost.FrostTestRunner" javaCompileOptions { annotationProcessorOptions { - arguments = ["room.schemaLocation": "$projectDir/src/schemas".toString()] + arguments += ["room.schemaLocation": "$projectDir/src/schemas".toString()] } } } @@ -274,6 +275,13 @@ dependencies { testImplementation kau.Dependencies.koinTest androidTestImplementation kau.Dependencies.koinTest + implementation kau.Dependencies.hilt + kapt kau.Dependencies.hiltCompiler + testImplementation kau.Dependencies.hilt + kaptTest kau.Dependencies.hiltCompiler + androidTestImplementation kau.Dependencies.hilt + kaptAndroidTest kau.Dependencies.hiltCompiler + implementation kau.Dependencies.coroutines implementation "org.apache.commons:commons-text:${Versions.apacheCommonsText}" @@ -313,6 +321,10 @@ dependencies { } +kapt { + correctErrorTypes true +} + def kotlinResolutions = ['kotlin-reflect', 'kotlin-stdlib', 'kotlin-stdlib-jdk7', -- cgit v1.2.3