Skip to content

Commit

Permalink
cleanup configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
avan1235 committed Jan 30, 2024
1 parent c88a6a6 commit 1fd5b2a
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 40 deletions.
46 changes: 22 additions & 24 deletions desktop-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,30 @@ kotlin {
}
}

compose.desktop {
application {
mainClass = "ml.dev.kotlin.minigames.app.MainAppKt"
version = VERSION

nativeDistributions {
targetFormats(TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Dmg)
packageName = "MiniGames"

windows {
menu = true
upgradeUuid = "e60c3562-48f8-47db-91d9-ca54dfa92f35"
iconFile.set(projectDir.resolve("src/jvmMain/resources/ic_launcher.ico"))
}
compose.desktop.application {
mainClass = "ml.dev.kotlin.minigames.app.MainAppKt"
version = VERSION

nativeDistributions {
targetFormats(TargetFormat.Msi, TargetFormat.Deb, TargetFormat.Dmg)
packageName = "MiniGames"

windows {
menu = true
upgradeUuid = "e60c3562-48f8-47db-91d9-ca54dfa92f35"
iconFile.set(projectDir.resolve("src/jvmMain/resources/ic_launcher.ico"))
}

linux {
iconFile.set(projectDir.resolve("src/jvmMain/resources/ic_launcher.png"))
}
linux {
iconFile.set(projectDir.resolve("src/jvmMain/resources/ic_launcher.png"))
}

macOS {
bundleID = "ml.dev.kotlin.minigames.app"
appStore = false
iconFile.set(projectDir.resolve("src/jvmMain/resources/ic_launcher.icns"))
signing {
sign.set(false)
}
macOS {
bundleID = "ml.dev.kotlin.minigames.app"
appStore = false
iconFile.set(projectDir.resolve("src/jvmMain/resources/ic_launcher.icns"))
signing {
sign.set(false)
}
}
}
Expand Down
12 changes: 0 additions & 12 deletions shared-client/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import com.codingfeline.buildkonfig.compiler.FieldSpec.Type.STRING
import com.codingfeline.buildkonfig.gradle.TargetConfigDsl
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
Expand Down Expand Up @@ -171,10 +170,6 @@ buildkonfig {
}
}

compose.experimental {
web.application {}
}

android {
compileSdk = Constants.Android.compileSdk
namespace = "ml.dev.kotlin.minigames.shared.client"
Expand All @@ -193,13 +188,6 @@ android {
}
}

fun KotlinNativeTarget.configureBinary() = apply {
binaries.framework {
baseName = "shared_client"
binaryOption("bundleId", "ml.dev.kotlin.shared.client")
}
}

fun TargetConfigDsl.buildConfigString(name: String) {
val value = ENV[name] ?: throw IllegalStateException("$name not defined")
buildConfigField(STRING, name, value)
Expand Down
5 changes: 1 addition & 4 deletions web-app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import org.jetbrains.compose.ExperimentalComposeLibrary
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension
import org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig

plugins {
Expand Down Expand Up @@ -36,6 +34,5 @@ kotlin {
}
}

compose.experimental {
web.application {}
compose.experimental.web.application {
}

0 comments on commit 1fd5b2a

Please sign in to comment.