build: add Hilt dependencies

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-09-11 23:29:12 +05:30
parent 36474b9705
commit 57f7a72d8d
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,7 @@
plugins {
id 'kotlin-android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
}
android {
@ -33,6 +35,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
dependencies {
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
implementation(project(":data"))
implementation 'androidx.core:core-ktx:1.5.0-alpha02'
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
@ -48,6 +51,8 @@ dependencies {
implementation "androidx.compose.ui:ui-unit:$compose_version"
implementation "androidx.ui:ui-tooling:$compose_version"
implementation 'com.google.android.material:material:1.3.0-alpha02'
implementation "com.google.dagger:hilt-android:$hilt_version"
androidTestImplementation "com.google.dagger:hilt-android-testing:$hilt_version"
testImplementation 'junit:junit:4.13'
androidTestImplementation "androidx.ui:ui-test:$compose_version"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.0.10"