File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed
Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 66import com.android.build.gradle.internal.api.BaseVariantOutputImpl
77import org.jetbrains.compose.desktop.application.dsl.TargetFormat
88import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
9- import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
109import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
1110import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension
1211import java.util.Properties
@@ -70,24 +69,19 @@ kotlin {
7069 outputFileName = " composeApp.js"
7170 }
7271 }
72+ compilerOptions {
73+ freeCompilerArgs.add(" -Xes-long-as-bigint" )
74+ freeCompilerArgs.add(" -XXLanguage:+JsAllowLongInExportedDeclarations" )
75+ }
7376 binaries.executable()
7477 }
7578
7679 @OptIn(ExperimentalWasmDsl ::class )
7780 wasmJs {
7881 outputModuleName.set(" composeApp" )
7982 browser {
80- val rootDirPath = project.rootDir.path
81- val projectDirPath = project.projectDir.path
8283 commonWebpackConfig {
8384 outputFileName = " composeApp.js"
84- devServer = (devServer ? : KotlinWebpackConfig .DevServer ()).apply {
85- static = (static ? : mutableListOf ()).apply {
86- // Serve sources to debug inside browser
87- add(rootDirPath)
88- add(projectDirPath)
89- }
90- }
9185 }
9286 }
9387 binaries.executable()
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ kotlin.code.style=official
1616kotlin.mpp.androidSourceSetLayoutVersion =2
1717kotlin.mpp.enableCInteropCommonization =true
1818# Native
19+ kotlin.native.binary.smallBinary =true
1920kotlin.native.ignoreDisabledTargets =true
2021# Incremental compilation
2122kotlin.incremental =true
Original file line number Diff line number Diff line change 1717 <key >CFBundleShortVersionString </key >
1818 <string >1.0.4 </string >
1919 <key >CFBundleVersion </key >
20- <string >549 </string >
20+ <string >550 </string >
2121 <key >LSRequiresIPhoneOS </key >
2222 <true />
2323 <key >CADisableMinimumFrameDurationOnPhone </key >
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ kotlin {
5151
5252 js(IR ) {
5353 browser()
54+ compilerOptions {
55+ freeCompilerArgs.add(" -Xes-long-as-bigint" )
56+ freeCompilerArgs.add(" -XXLanguage:+JsAllowLongInExportedDeclarations" )
57+ }
5458 }
5559
5660 sourceSets {
You can’t perform that action at this time.
0 commit comments