Skip to content

Commit 56e86b7

Browse files
committed
fix: gradle from the command line
1 parent 1e87d51 commit 56e86b7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/build.gradle.kts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ plugins {
2020
alias(libs.plugins.kotlin.parcelize)
2121
}
2222

23+
val appConfig = AppConfig()
24+
2325
android {
24-
val appConfig = AppConfig()
2526

2627
namespace = appConfig.id
2728
compileSdk = appConfig.compileSdk
@@ -60,6 +61,14 @@ android {
6061
}
6162
}
6263

64+
kotlin {
65+
jvmToolchain(appConfig.javaVersion.toString().toInt())
66+
}
67+
68+
kapt {
69+
correctErrorTypes = true
70+
}
71+
6372
dependencies {
6473
//Compile time dependencies
6574
kapt(libs.androidx.lifecycle.compiler)

0 commit comments

Comments
 (0)