aboutsummaryrefslogtreecommitdiff
path: root/app/build.gradle
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2021-04-17 17:08:19 -0700
committerAllan Wang <me@allanwang.ca>2021-04-17 17:08:19 -0700
commit39db7f4c3d7b8f3d68ef1a8881b69624b721f6c6 (patch)
treecb24b739861219861b651aa064a91432f30c681b /app/build.gradle
parent88a5d17814ff9f7c44f79216510d405f057ae454 (diff)
downloadfrost-39db7f4c3d7b8f3d68ef1a8881b69624b721f6c6.tar.gz
frost-39db7f4c3d7b8f3d68ef1a8881b69624b721f6c6.tar.bz2
frost-39db7f4c3d7b8f3d68ef1a8881b69624b721f6c6.zip
Start hilt injection
Diffstat (limited to 'app/build.gradle')
-rw-r--r--app/build.gradle14
1 files changed, 13 insertions, 1 deletions
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',