|
21 | 21 | } |
22 | 22 |
|
23 | 23 | // TODO: this block should be removed when Kotlin version is updated to 1.9.0 |
24 | | -// (right now it implements a toggle between IR and BOTH JS compiler types for testing of Kotlin dev builds) |
25 | | -def isJsLegacyCompilerEnabled = !isKotlinVersionAtLeast(ext.kotlin_version, 1, 9) |
| 24 | +// Right now it implements a toggle between IR and BOTH JS compiler types for testing of Kotlin dev builds |
| 25 | +def isJsLegacyCompilerEnabled = !isKotlinVersionAtLeast(ext.kotlin_version, 1, 9, 0) |
| 26 | +// TODO: this block should be removed when Kotlin version is updated to 1.9.20 |
| 27 | +// Right now it is used for conditional removal of native targets that will be removed in 1.9.20 (iosArm32, watchosX86) |
| 28 | +// and is necessary for testing of Kotlin dev builds. |
| 29 | +def enableDeprecatedNativeTargets = !isKotlinVersionAtLeast(ext.kotlin_version, 1, 9, 20) |
26 | 30 |
|
27 | 31 | kotlin { |
28 | 32 | targets { |
@@ -119,9 +123,11 @@ if (rootProject.ext.native_targets_enabled) { |
119 | 123 | addTarget(presets.mingwX64) |
120 | 124 | addTarget(presets.watchosDeviceArm64) |
121 | 125 |
|
122 | | - // Deprecated, remove after 1.9.0 |
123 | | - addTarget(presets.iosArm32) |
124 | | - addTarget(presets.watchosX86) |
| 126 | + // These targets will be removed in 1.9.20, remove them conditionally for the train builds |
| 127 | + if (enableDeprecatedNativeTargets) { |
| 128 | + addTarget(presets.iosArm32) |
| 129 | + addTarget(presets.watchosX86) |
| 130 | + } |
125 | 131 | } |
126 | 132 | } |
127 | 133 |
|
|
0 commit comments