Skip to content

Commit

Permalink
Fix deprecated annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
pdvrieze committed Nov 15, 2024
1 parent 5e4dbfd commit 8f7a0e4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.plugin.*
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeHostTest
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest
import org.jetbrains.kotlin.konan.target.HostManager
Expand Down Expand Up @@ -132,7 +131,7 @@ private val defaultXmlUtilHierarchyTemplate = KotlinHierarchyTemplate {
val Project.nativeState: NativeState
get() = rootProject.extraProperties["nativeTargets"] as NativeState

@OptIn(ExperimentalWasmDsl::class)
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
fun Project.addNativeTargets(includeWasm: Boolean = true, includeWasi: Boolean = true) {
val ideaActive = System.getProperty("idea.active") == "true"
val nativeState = when(property("native.deploy")?.toString()?.lowercase()) {
Expand Down

0 comments on commit 8f7a0e4

Please sign in to comment.