Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fleet/run.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "gradle",
"workingDir": "$PROJECT_DIR$",
"tasks": ["jvmRun"],
"args": ["-DmainClass=MainKt", "--quiet", "-p", "$PROJECT_DIR$/composeApp"],
"args": ["-DmainClass=Main_desktopKt", "--quiet", "-p", "$PROJECT_DIR$/composeApp"],
"initScripts": {
"flmapper": "ext.mapPath = { path -> null }"
}
Expand Down
2 changes: 1 addition & 1 deletion .idea/deploymentTargetDropDown.xml

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

28 changes: 14 additions & 14 deletions composeApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,15 @@ kotlin {
}
jvm()

// For now Room doesn't work with JS
// js {
// moduleName = "composeApp"
// browser {
// commonWebpackConfig {
// outputFileName = "composeApp.js"
// }
// }
// binaries.executable()
// }
js {
moduleName = "composeApp"
browser {
commonWebpackConfig {
outputFileName = "composeApp.js"
}
}
binaries.executable()
}

listOf(
iosArm64(),
Expand Down Expand Up @@ -220,12 +219,13 @@ compose.resources {
dependencies {
add("kspCommonMainMetadata", libs.room.compiler)
add("kspAndroid", libs.room.compiler)
// add("kspIosX64", libs.room.compiler)
// add("kspIosArm64", libs.room.compiler)
// add("kspIosSimulatorArm64", libs.room.compiler)
add("kspIosX64", libs.room.compiler)
add("kspIosArm64", libs.room.compiler)
add("kspIosSimulatorArm64", libs.room.compiler)
add("kspJvm", libs.room.compiler)
add("kspJs", libs.room.compiler)
}

room {
schemaDirectory("$projectDir/schemas")
}
}
12 changes: 0 additions & 12 deletions composeApp/src/jvmMain/kotlin/Main.kt

This file was deleted.

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ android.useAndroidX=true
#MPP
kotlin.mpp.enableCInteropCommonization=true
kotlin.native.binary.memoryModel=experimental
org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
1 change: 1 addition & 0 deletions iosApp/iosApp/iosApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
Main_iosKt.initializeIOSApp()
let mainViewController = Main_iosKt.MainViewController()
window?.rootViewController = mainViewController
window?.makeKeyAndVisible()
Expand Down
Loading