Browse Source

Disable decoys generation for k/js targets

gradle/disable_decoys_generation
Oleksandr Karpovich 1 year ago committed by GitHub
parent
commit
c073263fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt

4
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/ComposeCompilerKotlinSupportPlugin.kt

@ -92,7 +92,7 @@ class ComposeCompilerKotlinSupportPlugin : KotlinCompilerPluginSupportPlugin {
}
private val platformPluginOptions = mapOf(
KotlinPlatformType.js to options("generateDecoys" to "true")
KotlinPlatformType.js to options("generateDecoys" to "false")
)
private fun options(vararg options: Pair<String, String>): List<SubpluginOption> =
@ -108,4 +108,4 @@ WARNING: Usage of the Custom Compose Compiler plugin ('$currentCompilerPluginGro
with non-JVM targets (Kotlin/Native, Kotlin/JS, Kotlin/WASM) is not supported.
For more information, please visit: $COMPOSE_COMPILER_COMPATIBILITY_LINK
""".trimMargin()
}
}

Loading…
Cancel
Save