[Gradle][MPP] DEPRECATE_ERROR for deprecated targets in tests ^KT-58822

This commit is contained in:
Alexander Shabalin
2023-05-22 15:02:07 +02:00
committed by Space Team
parent 1ef198ead4
commit 4ddc94bc8d
20 changed files with 26 additions and 1 deletions
@@ -15,6 +15,7 @@ kotlin {
val iosX64 = iosX64()
val iosArm64 = iosArm64()
@Suppress("DEPRECATION_ERROR")
val iosArm32 = iosArm32()
val iosSimulatorArm64 = iosSimulatorArm64()
@@ -32,6 +33,7 @@ kotlin {
watchosArm64(),
watchosDeviceArm64(),
watchosSimulatorArm64(),
@Suppress("DEPRECATION_ERROR")
watchosX86(),
watchosX64()
).forEach { target ->
@@ -19,6 +19,7 @@ publishing {
}
kotlin {
@Suppress("DEPRECATION_ERROR")
linuxArm32Hfp()
val targetsWithInterop = listOf(linuxX64(), linuxArm64())
@@ -16,6 +16,7 @@ kotlin {
linuxArm64()
if (properties.containsKey("p2.enableLinuxArm32Hfp")) {
@Suppress("DEPRECATION_ERROR")
linuxArm32Hfp()
}
@@ -37,6 +37,7 @@ kotlin {
ios()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
val commonMain by sourceSets.getting
@@ -29,6 +29,7 @@ kotlin {
ios()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
val commonMain by sourceSets.getting
@@ -24,6 +24,7 @@ kotlin {
linuxX64()
ios()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
val commonMain by sourceSets.getting
@@ -19,7 +19,9 @@ kotlin {
linuxArm64()
// Linux-specific targets embedded:
@Suppress("DEPRECATION_ERROR")
linuxMips32()
@Suppress("DEPRECATION_ERROR")
linuxMipsel32()
// macOS-specific targets - created by the ios() shortcut:
@@ -27,6 +29,7 @@ kotlin {
// Windows-specific targets:
mingwX64()
@Suppress("DEPRECATION_ERROR")
mingwX86()
sourceSets {
@@ -67,6 +70,7 @@ kotlin {
dependsOn(commonMain)
}
@Suppress("DEPRECATION_ERROR")
configure(listOf(linuxMips32(), linuxMipsel32())) {
compilations["main"].defaultSourceSet.dependsOn(embeddedMain)
}
@@ -75,6 +79,7 @@ kotlin {
dependsOn(commonMain)
}
@Suppress("DEPRECATION_ERROR")
configure(listOf(mingwX64(), mingwX86())) {
compilations["main"].defaultSourceSet.dependsOn(windowsMain)
}
@@ -10,5 +10,6 @@ kotlin {
linuxX64()
macosX64()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
}
@@ -10,6 +10,7 @@ kotlin {
linuxX64()
macosX64()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
targets.withType<KotlinNativeTarget>().forEach { target ->
@@ -11,6 +11,7 @@ kotlin {
linuxX64()
macosX64()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
val commonMain by sourceSets.getting
@@ -22,6 +22,7 @@ repositories {
kotlin {
linuxX64()
linuxArm64()
@Suppress("DEPRECATION_ERROR")
linuxArm32Hfp()
val commonMain by sourceSets.getting
@@ -37,6 +37,7 @@ kotlin {
iosSimulatorArm64()
mingwX64()
@Suppress("DEPRECATION_ERROR")
mingwX86()
sourceSets.all {
@@ -25,6 +25,7 @@ kotlin {
ios()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
val commonMain by sourceSets.getting
@@ -25,6 +25,7 @@ kotlin {
ios()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
val commonMain by sourceSets.getting
@@ -25,6 +25,7 @@ kotlin {
ios()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
val commonMain by sourceSets.getting
@@ -31,6 +31,7 @@ kotlin {
ios()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
val commonMain by sourceSets.getting
@@ -4,10 +4,12 @@ plugins {
kotlin {
iosX64()
@Suppress("DEPRECATION_ERROR")
iosArm32()
linuxX64()
linuxArm64()
mingwX64("windowsX64")
@Suppress("DEPRECATION_ERROR")
mingwX86("windowsX86")
val commonMain by sourceSets.getting
@@ -15,6 +15,7 @@ kotlin {
implementation(kotlin("stdlib-common"))
}
@Suppress("DEPRECATION_ERROR")
iosArm32()
iosArm64()
iosX64()
@@ -8,6 +8,7 @@ repositories {
}
kotlin {
@Suppress("DEPRECATION_ERROR")
linuxArm32Hfp("intPlatform") {
compilations.get("main").cinterops.create("intPropertyInterop") {
header(file("libs/intPlatform.h"))
@@ -26,7 +26,7 @@ class KotlinTargetHierarchyDslTest {
@Test
@Suppress("DEPRECATION") // deprecated K/N targets
@Suppress("DEPRECATION_ERROR") // deprecated K/N targets
fun `test - hierarchy default - targets from all families`() {
kotlin.apply {
targetHierarchy.default()