Skip to content

Commit 891f2fb

Browse files
committed
init
1 parent cfb75de commit 891f2fb

File tree

2 files changed

+27
-17
lines changed

2 files changed

+27
-17
lines changed

client/build.gradle.kts

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ apply<KorgeGradlePlugin>()
77
apply(plugin = "org.jetbrains.kotlin.plugin.serialization")
88
plugins {
99
kotlin("multiplatform")
10-
id("com.android.application")
1110
}
1211

1312
korge {
@@ -31,7 +30,7 @@ korge {
3130

3231
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
3332
kotlinOptions {
34-
jvmTarget = "17"
33+
jvmTarget = "1.8"
3534
}
3635
}
3736

@@ -44,11 +43,6 @@ kotlin {
4443
api("de.cketti.unicode:kotlin-codepoints-deluxe:0.6.1")
4544
api(project(":deps"))
4645
api(project(":shared"))
47-
api(libs.kotlinx.uuid)
48-
api(libs.kotlinx.serialization)
49-
api(libs.ktor.client.auth)
50-
api(libs.ktor.client.content.negotation)
51-
api(libs.ktor.serialization.kotlinx.protobuf)
5246
}
5347
}
5448
val jsMain by getting {
@@ -89,18 +83,19 @@ kotlin {
8983
}
9084
}
9185
}
92-
configurations.filter { listOf(
93-
"linuxArm64", "linuxArm64Main", "linuxX64", "linuxX64Main"
94-
).contains(it.name) }.forEach {
95-
it.exclude(libs.kotlinx.uuid.asProvider())
96-
it.exclude(libs.kotlinx.serialization)
97-
it.exclude(libs.ktor.client.auth)
98-
it.exclude(libs.ktor.client.content.negotation)
99-
it.exclude(libs.ktor.serialization.kotlinx.json)
10086

101-
}
10287
}
10388

89+
configurations.filter { listOf(
90+
"linuxArm64", "linuxArm64Main", "linuxX64", "linuxX64Main"
91+
).contains(it.name) }.forEach {
92+
it.exclude(libs.kotlinx.uuid.asProvider())
93+
it.exclude(libs.kotlinx.serialization)
94+
it.exclude(libs.ktor.client.auth)
95+
it.exclude(libs.ktor.client.content.negotation)
96+
it.exclude(libs.ktor.serialization.kotlinx.json)
97+
98+
}
10499

105100
fun Configuration.exclude(provider: Provider<MinimalExternalModuleDependency>) {
106101
val module = provider.get().module

shared/build.gradle.kts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,36 @@ import korlibs.korge.gradle.KorgeGradlePlugin
22
import korlibs.korge.gradle.KorgeLibraryGradlePlugin
33
import korlibs.korge.gradle.Orientation
44
import korlibs.korge.gradle.korge
5+
import korlibs.korge.gradle.typedresources.GenerateTypedResourcesTask
56
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
67

8+
apply<KorgeGradlePlugin>()
79
apply(plugin = "org.jetbrains.kotlin.plugin.serialization")
810
plugins {
911
kotlin("multiplatform")
1012
}
1113

14+
korge {
15+
targetJvm()
16+
targetJs()
17+
targetDesktopCross()
18+
targetDesktop()
19+
}
20+
21+
tasks.create<Delete>("disableKRes") {
22+
dependsOn(tasks.withType<GenerateTypedResourcesTask>())
23+
afterEvaluate {
24+
val file = File(buildDir, "KR/KR.kt").delete()
25+
}
26+
}
27+
1228
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
1329
kotlinOptions {
1430
jvmTarget = "1.8"
1531
}
1632
}
1733

1834
kotlin {
19-
jvm()
2035
sourceSets {
2136
val commonMain by getting {
2237
dependencies {

0 commit comments

Comments
 (0)