[Gradle] temporarily change error to warning for linuxArm32Hfp
^KT-58864
This commit is contained in:
committed by
Space Team
parent
be9d2953b2
commit
61dbe7fb75
+1
-1
@@ -113,7 +113,7 @@ internal val nativePresetEntries = HostManager().targets
|
||||
|
||||
val deprecation = KotlinPresetEntry.Deprecation(
|
||||
message = "DEPRECATED_TARGET_MESSAGE",
|
||||
level = DeprecationLevel.ERROR
|
||||
level = if (target in KonanTarget.toleratedDeprecatedTargets) DeprecationLevel.WARNING else DeprecationLevel.ERROR
|
||||
).takeIf { target in KonanTarget.deprecatedTargets }
|
||||
KotlinPresetEntry(target.presetName, typeName(presetType), typeName(targetType), deprecation)
|
||||
}
|
||||
|
||||
+9
-9
@@ -475,7 +475,7 @@ interface KotlinTargetContainerWithPresetFunctions : KotlinTargetsContainerWithP
|
||||
fun linuxArm64(configure: Action<KotlinNativeTarget>) = linuxArm64 { configure.execute(this) }
|
||||
|
||||
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.WARNING)
|
||||
fun linuxArm32Hfp(
|
||||
name: String = "linuxArm32Hfp",
|
||||
configure: KotlinNativeTarget.() -> Unit = { }
|
||||
@@ -487,20 +487,20 @@ interface KotlinTargetContainerWithPresetFunctions : KotlinTargetsContainerWithP
|
||||
)
|
||||
|
||||
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.WARNING)
|
||||
@Suppress("DEPRECATION")
|
||||
fun linuxArm32Hfp() = linuxArm32Hfp("linuxArm32Hfp") { }
|
||||
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.WARNING)
|
||||
@Suppress("DEPRECATION")
|
||||
fun linuxArm32Hfp(name: String) = linuxArm32Hfp(name) { }
|
||||
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.WARNING)
|
||||
@Suppress("DEPRECATION")
|
||||
fun linuxArm32Hfp(name: String, configure: Action<KotlinNativeTarget>) = linuxArm32Hfp(name) { configure.execute(this) }
|
||||
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.ERROR)
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
@Deprecated(DEPRECATED_TARGET_MESSAGE, level = DeprecationLevel.WARNING)
|
||||
@Suppress("DEPRECATION")
|
||||
fun linuxArm32Hfp(configure: Action<KotlinNativeTarget>) = linuxArm32Hfp { configure.execute(this) }
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -16,7 +16,8 @@ internal object DeprecatedKotlinNativeTargetsChecker : KotlinGradleProjectChecke
|
||||
override suspend fun KotlinGradleProjectCheckerContext.runChecks(collector: KotlinToolingDiagnosticsCollector) {
|
||||
val targets = multiplatformExtension?.awaitTargets() ?: return
|
||||
val usedDeprecatedTargets = targets
|
||||
.filter { it is KotlinNativeTarget && it.konanTarget in KonanTarget.deprecatedTargets }
|
||||
.filterIsInstance<KotlinNativeTarget>()
|
||||
.filter { it.konanTarget in KonanTarget.deprecatedTargets && it.konanTarget !in KonanTarget.toleratedDeprecatedTargets }
|
||||
.map { it.name }
|
||||
if (usedDeprecatedTargets.isEmpty()) return
|
||||
|
||||
|
||||
@@ -67,5 +67,6 @@ sealed class KonanTarget(override val name: String, val family: Family, val arch
|
||||
}
|
||||
|
||||
val deprecatedTargets = setOf(WATCHOS_X86, IOS_ARM32, LINUX_ARM32_HFP, MINGW_X86, LINUX_MIPS32, LINUX_MIPSEL32, WASM32)
|
||||
val toleratedDeprecatedTargets = setOf(LINUX_ARM32_HFP)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user