Skip to content

Commit

Permalink
try another way of disabling binaryen
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed May 26, 2024
1 parent b765941 commit da04a93
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 2 deletions.
68 changes: 68 additions & 0 deletions .idea/runConfigurations/All_tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ kotlin {
}

publishMultiplatform()

compose {
resources {
generateResClass = never
}
}
6 changes: 6 additions & 0 deletions essenty/essenty-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ publishMultiplatform()

dependencies {
}

compose {
resources {
generateResClass = never
}
}
5 changes: 3 additions & 2 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.intellij.lang.annotations.Language
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.targets.js.binaryen.BinaryenExec
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
Expand Down Expand Up @@ -30,8 +31,8 @@ val generateBuildConfig by tasks.registering(Sync::class) {
into(layout.buildDirectory.dir("generated/kotlin/src/commonMain"))
}

// https://youtrack.jetbrains.com/issue/KT-68088
tasks.matching { it.name.contains("compileProductionExecutableKotlinWasmJsOptimize") }.configureEach {
// // https://youtrack.jetbrains.com/issue/KT-68088
tasks.withType<BinaryenExec>().configureEach {
enabled = false
}

Expand Down

0 comments on commit da04a93

Please sign in to comment.