mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-18 06:47:02 +05:30
build: add Hilt dependencies
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
36474b9705
commit
57f7a72d8d
2 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
||||||
plugins {
|
plugins {
|
||||||
id 'kotlin-android'
|
id 'kotlin-android'
|
||||||
|
id 'kotlin-kapt'
|
||||||
|
id 'dagger.hilt.android.plugin'
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
@ -33,6 +35,7 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
|
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
|
||||||
implementation(project(":data"))
|
implementation(project(":data"))
|
||||||
implementation 'androidx.core:core-ktx:1.5.0-alpha02'
|
implementation 'androidx.core:core-ktx:1.5.0-alpha02'
|
||||||
implementation 'androidx.appcompat:appcompat:1.3.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.compose.ui:ui-unit:$compose_version"
|
||||||
implementation "androidx.ui:ui-tooling:$compose_version"
|
implementation "androidx.ui:ui-tooling:$compose_version"
|
||||||
implementation 'com.google.android.material:material:1.3.0-alpha02'
|
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'
|
testImplementation 'junit:junit:4.13'
|
||||||
androidTestImplementation "androidx.ui:ui-test:$compose_version"
|
androidTestImplementation "androidx.ui:ui-test:$compose_version"
|
||||||
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.0.10"
|
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:1.0.10"
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
buildscript {
|
buildscript {
|
||||||
ext {
|
ext {
|
||||||
compose_version = '1.0.0-alpha02'
|
compose_version = '1.0.0-alpha02'
|
||||||
|
dagger_version = '2.29.1'
|
||||||
|
hilt_version = '2.29-alpha'
|
||||||
kotlin_version = '1.4.10'
|
kotlin_version = '1.4.10'
|
||||||
room_version = '2.3.0-alpha02'
|
room_version = '2.3.0-alpha02'
|
||||||
}
|
}
|
||||||
|
@ -12,6 +14,7 @@ buildscript {
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "com.android.tools.build:gradle:4.2.0-alpha10"
|
classpath "com.android.tools.build:gradle:4.2.0-alpha10"
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue