Skip to content

Commit

Permalink
Don't include deprecated native targets
Browse files Browse the repository at this point in the history
  • Loading branch information
eygraber committed Jun 21, 2023
1 parent 76eb30e commit 915374c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion uri/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import com.eygraber.conventions.kotlin.kmp.androidUnitTest
import org.jetbrains.kotlin.gradle.plugin.mpp.AbstractKotlinNativeTargetPreset
import org.jetbrains.kotlin.konan.target.KonanTarget

plugins {
id("com.eygraber.conventions-kotlin-multiplatform")
Expand All @@ -25,7 +26,7 @@ kotlin {
)

presets.withType<AbstractKotlinNativeTargetPreset<*>>().forEach {
if(!it.konanTarget.family.isAppleFamily) {
if(!it.konanTarget.family.isAppleFamily && it.konanTarget !in KonanTarget.deprecatedTargets) {
targetFromPreset(it)
}
}
Expand Down

0 comments on commit 915374c

Please sign in to comment.