summaryrefslogtreecommitdiff
path: root/app/build.gradle.kts
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2021-04-18 03:52:41 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2021-04-18 04:03:17 +0530
commita0fdd6ddc3a40ed856e1b647b644d037eb30152a (patch)
tree3ff2c6760a25f3e3624b3059b4ea22307507312f /app/build.gradle.kts
parent77abe7ee2c906747d80813fef8d786b3e8d94c0a (diff)
app: configure Hilt and desugaring
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/build.gradle.kts')
-rw-r--r--app/build.gradle.kts6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 5901b7f3..41c561f4 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -7,6 +7,8 @@ import com.android.build.gradle.internal.api.BaseVariantOutputImpl
plugins {
id("com.android.application")
kotlin("android")
+ kotlin("kapt")
+ id("dagger.hilt.android.plugin")
`versioning-plugin`
`aps-plugin`
`crowdin-plugin`
@@ -22,6 +24,7 @@ android {
}
}
}
+ compileOptions { isCoreLibraryDesugaringEnabled = true }
defaultConfig {
applicationId = "dev.msfjarvis.aps"
@@ -42,7 +45,9 @@ android {
}
dependencies {
+ kapt(libs.dagger.hilt.compiler)
compileOnly(libs.androidx.annotation)
+ coreLibraryDesugaring(libs.android.desugarJdkLibs)
implementation(projects.autofillParser)
implementation(projects.openpgpKtx)
implementation(libs.androidx.activityKtx)
@@ -60,6 +65,7 @@ dependencies {
implementation(libs.androidx.recyclerviewSelection)
implementation(libs.androidx.security)
implementation(libs.androidx.swiperefreshlayout)
+ implementation(libs.dagger.hilt.android)
implementation(libs.kotlin.coroutines.android)
implementation(libs.kotlin.coroutines.core)