Fix/kotlin hilt compiler artifact issue (#2416)

This commit is contained in:
Jamil
2023-10-18 06:02:02 -07:00
committed by GitHub
parent 2cfe7befef
commit febe6801cf
3 changed files with 19 additions and 10 deletions

View File

@@ -39,8 +39,11 @@ updates:
directory: kotlin/android/
schedule:
interval: daily
# Requires using a newer Java runtime
ignore: org.jetbrains.kotlin:kotlin-gradle-plugin
ignore:
# Depends on org.jetbrains.kotlin:kotlin-gradle-plugin version
- dependency-name: com.google.dagger.hilt.android
# Depends on JDK version which is bundled with Android Studio (JDK 17)
- dependency-name: org.jetbrains.kotlin:kotlin-gradle-plugin
- package-ecosystem: gradle
directory: kotlin/android/app/
schedule:

View File

@@ -1,13 +1,15 @@
plugins {
id("com.android.application")
id("kotlin-android")
id("com.google.dagger.hilt.android")
id("kotlin-parcelize")
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
id("com.diffplug.spotless") version "6.22.0"
id("kotlin-kapt")
id("com.google.firebase.appdistribution")
id("kotlin-parcelize")
id("androidx.navigation.safeargs")
kotlin("android")
kotlin("kapt")
}
spotless {
@@ -54,8 +56,8 @@ android {
// Find this in the Engineering 1Password vault
storeFile = file(System.getenv("KEYSTORE_PATH") ?: "keystore.jks")
keyAlias = "upload"
storePassword = System.getenv("KEYSTORE_PASSWORD")
keyPassword = System.getenv("KEYSTORE_KEY_PASSWORD")
storePassword = System.getenv("KEYSTORE_PASSWORD") ?: ""
keyPassword = System.getenv("KEYSTORE_KEY_PASSWORD") ?: ""
}
}
@@ -164,12 +166,12 @@ dependencies {
implementation("androidx.navigation:navigation-ui-ktx:2.5.3")
// Hilt
implementation("com.google.dagger:hilt-android:2.48.1")
implementation("com.google.dagger:hilt-android:2.48")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.core:core-ktx:$coreVersion")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1")
kapt("androidx.hilt:hilt-compiler:1.0.0")
kapt("com.google.dagger:hilt-android-compiler")
kapt("com.google.dagger:hilt-android-compiler:2.48")
// Retrofit 2
implementation("com.squareup.retrofit2:retrofit:2.9.0")

View File

@@ -6,6 +6,10 @@ buildscript {
maven(url = "https://jitpack.io")
maven(url = "https://plugins.gradle.org/m2/")
}
dependencies {
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.7.4")
}
}
plugins {
@@ -13,7 +17,7 @@ plugins {
id("com.android.application") version "8.1.2" apply false
id("com.android.library") version "8.1.2" apply false
id("com.google.firebase.appdistribution") version "4.0.0" apply false
id("com.google.dagger.hilt.android") version "2.44" apply false
id("com.google.dagger.hilt.android") version "2.48" apply false
id("com.google.gms.google-services") version "4.4.0" apply false
id("org.mozilla.rust-android-gradle.rust-android") version "0.9.3" apply false
id("com.google.firebase.crashlytics") version "2.9.9" apply false