Skip to content

Commit 1e96464

Browse files
committed
feat(async-storage): windows is not supported as native target
1 parent 1909e12 commit 1e96464

File tree

7 files changed

+5
-68
lines changed

7 files changed

+5
-68
lines changed

examples/example-compose/build.gradle.kts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
21
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
32

43
plugins {
@@ -19,8 +18,6 @@ kotlin {
1918
}
2019
}
2120

22-
jvm()
23-
2421
sourceSets {
2522
androidMain.dependencies {
2623
implementation(compose.preview)
@@ -39,11 +36,6 @@ kotlin {
3936
}
4037

4138
commonTest.dependencies { implementation(libs.tests.kotlin) }
42-
43-
jvmMain.dependencies {
44-
implementation(compose.desktop.currentOs)
45-
implementation(libs.kotlinx.coroutines.swing)
46-
}
4739
}
4840
}
4941

@@ -68,14 +60,3 @@ android {
6860

6961
dependencies { debugImplementation(compose.uiTooling) }
7062

71-
compose.desktop {
72-
application {
73-
mainClass = "org.asyncstorage.example.sharedstorage.MainKt"
74-
75-
nativeDistributions {
76-
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
77-
packageName = "org.asyncstorage.example.sharedstorage"
78-
packageVersion = "1.0.0"
79-
}
80-
}
81-
}

examples/example-compose/src/jvmMain/kotlin/org/asyncstorage/example/sharedstorage/main.kt

Lines changed: 0 additions & 8 deletions
This file was deleted.

shared-storage/build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ plugins {
1010
alias(libs.plugins.skie)
1111
}
1212

13+
14+
/**
15+
* Windows as native target is not currently supported by Room db.
16+
* https://issuetracker.google.com/issues/363195546
17+
*/
1318
kotlin {
1419
room { schemaDirectory("$projectDir/schemas") }
1520

@@ -41,7 +46,6 @@ kotlin {
4146
}
4247
}
4348

44-
jvm()
4549

4650
sourceSets {
4751
commonMain {
@@ -57,8 +61,6 @@ kotlin {
5761

5862
appleMain { dependencies {} }
5963

60-
jvmMain { dependencies {} }
61-
6264
commonTest {
6365
dependencies {
6466
implementation(libs.tests.kotlin)
@@ -84,7 +86,6 @@ kotlin {
8486
add("kspIosArm64", libs.androidx.room.compiler)
8587
add("kspMacosX64", libs.androidx.room.compiler)
8688
add("kspMacosArm64", libs.androidx.room.compiler)
87-
add("kspJvm", libs.androidx.room.compiler)
8889
}
8990
}
9091

shared-storage/src/jvmMain/kotlin/org/asyncstorage/shared_storage/Platform.jvm.kt

Lines changed: 0 additions & 3 deletions
This file was deleted.

shared-storage/src/jvmMain/kotlin/org/asyncstorage/shared_storage/SharedStorage.jvm.kt

Lines changed: 0 additions & 9 deletions
This file was deleted.

shared-storage/src/jvmMain/kotlin/org/asyncstorage/shared_storage/database/DatabaseFiles.jvm.kt

Lines changed: 0 additions & 10 deletions
This file was deleted.

shared-storage/src/jvmTest/kotlin/tests/TestUtils.jvm.kt

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)