Skip to content

Commit 92116de

Browse files
authored
feat!: use kotlin-stdlib instead of kotlin-stdlib-jdk* (#1767)
1 parent 34220ae commit 92116de

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

templates/project/app/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,16 @@ dependencies {
331331
implementation "androidx.core:core-splashscreen:${cordovaConfig.ANDROIDX_CORE_SPLASHSCREEN_VERSION}"
332332

333333
if (cordovaConfig.IS_GRADLE_PLUGIN_KOTLIN_ENABLED) {
334-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${cordovaConfig.KOTLIN_VERSION}"
334+
implementation "org.jetbrains.kotlin:kotlin-stdlib:${cordovaConfig.KOTLIN_VERSION}"
335+
}
336+
337+
constraints {
338+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${cordovaConfig.KOTLIN_VERSION}") {
339+
because("kotlin-stdlib-jdk7 is now a part of kotlin-stdlib")
340+
}
341+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:${cordovaConfig.KOTLIN_VERSION}") {
342+
because("kotlin-stdlib-jdk8 is now a part of kotlin-stdlib")
343+
}
335344
}
336345

337346
// SUB-PROJECT DEPENDENCIES START

0 commit comments

Comments
 (0)