Skip to content

Commit

Permalink
chore: clean up Hilt libraries (#4264)
Browse files Browse the repository at this point in the history
  • Loading branch information
naivekook committed Sep 27, 2021
1 parent a34051c commit fb8b86c
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions app/build.gradle.kts
Expand Up @@ -71,18 +71,13 @@ dependencies {
// ML Kit barcode Scanner
implementation("com.google.mlkit:barcode-scanning:17.0.0")

compileOnly("javax.annotation:javax.annotation-api:1.3.2")

// Dagger & hilt
implementation("com.google.dagger:dagger:${rootProject.extra["hiltVersion"]}")
// Hilt
implementation("com.google.dagger:hilt-android:${rootProject.extra["hiltVersion"]}")
kapt("com.google.dagger:dagger-compiler:${rootProject.extra["hiltVersion"]}")
kapt("com.google.dagger:hilt-compiler:${rootProject.extra["hiltVersion"]}")

// AndroidX hilt work
val androidxHiltVersion = "1.0.0"
implementation("androidx.hilt:hilt-work:$androidxHiltVersion")
kapt("androidx.hilt:hilt-compiler:$androidxHiltVersion")
// WorkManager with Hilt
implementation("androidx.hilt:hilt-work:1.0.0")
kapt("androidx.hilt:hilt-compiler:1.0.0")

// Reactive Streams
implementation("io.reactivex.rxjava2:rxkotlin:2.4.0")
Expand Down Expand Up @@ -364,16 +359,16 @@ android {

packagingOptions {
resources.excludes += listOf(
"META-INF/DEPENDENCIES.txt",
"META-INF/LICENSE.txt",
"META-INF/NOTICE.txt",
"META-INF/NOTICE",
"META-INF/LICENSE",
"META-INF/DEPENDENCIES",
"META-INF/notice.txt",
"META-INF/license.txt",
"META-INF/dependencies.txt",
"META-INF/LGPL2.1"
"META-INF/DEPENDENCIES.txt",
"META-INF/LICENSE.txt",
"META-INF/NOTICE.txt",
"META-INF/NOTICE",
"META-INF/LICENSE",
"META-INF/DEPENDENCIES",
"META-INF/notice.txt",
"META-INF/license.txt",
"META-INF/dependencies.txt",
"META-INF/LGPL2.1"
)
}

Expand All @@ -385,6 +380,7 @@ android {
}

kapt {
correctErrorTypes = true
arguments {
arg("eventBusIndex", "openfoodfacts.github.scrachx.openfood.app.OFFEventsIndex")
}
Expand Down

0 comments on commit fb8b86c

Please sign in to comment.