File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -261,15 +261,13 @@ android {
261261 }
262262
263263 if (cordovaConfig. IS_GRADLE_PLUGIN_KOTLIN_ENABLED ) {
264- if (cordovaConfig. KOTLIN_JVM_TARGET == null ) {
265- // If the value is null, fallback to JAVA_TARGET_COMPATIBILITY,
266- // as they generally should be equal
267- def javaTarget = JavaLanguageVersion . of(cordovaConfig. JAVA_TARGET_COMPATIBILITY )
268- cordovaConfig. KOTLIN_JVM_TARGET = javaTarget
269- }
264+ // If KOTLIN_JVM_TARGET is null, fallback to JAVA_TARGET_COMPATIBILITY,
265+ // as they generally should be equal
266+ cordovaConfig. KOTLIN_JVM_TARGET = cordovaConfig. KOTLIN_JVM_TARGET ?:
267+ cordovaConfig. JAVA_TARGET_COMPATIBILITY
270268
271269 kotlinOptions {
272- jvmTarget = cordovaConfig. KOTLIN_JVM_TARGET
270+ jvmTarget = JavaLanguageVersion . of( cordovaConfig. KOTLIN_JVM_TARGET )
273271 }
274272 }
275273
You can’t perform that action at this time.
0 commit comments