Add release build support (MSI) with proguard disable because of Datastore
This commit is contained in:
parent
7af0c15a62
commit
b348f8a327
10 changed files with 75 additions and 25 deletions
|
|
@ -2,6 +2,7 @@ import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|||
|
||||
plugins {
|
||||
alias(libs.plugins.kotlinMultiplatform)
|
||||
alias(libs.plugins.kotlinSerialization)
|
||||
alias(libs.plugins.composeMultiplatform)
|
||||
alias(libs.plugins.composeCompiler)
|
||||
}
|
||||
|
|
@ -23,6 +24,9 @@ kotlin {
|
|||
implementation(libs.androidx.lifecycle.runtime.compose)
|
||||
implementation(libs.androidx.navigation.compose)
|
||||
implementation(libs.androidx.datastore.preferences)
|
||||
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3")
|
||||
|
||||
}
|
||||
|
||||
commonTest.dependencies {
|
||||
|
|
@ -55,5 +59,10 @@ compose.desktop {
|
|||
// Use system theming fot the app toolbars.
|
||||
jvmArgs("-Dapple.awt.application.appearance=system")
|
||||
}
|
||||
|
||||
buildTypes.release.proguard {
|
||||
obfuscate.set(false) // Obfuscation crash when try to use datastore.
|
||||
configurationFiles.from(project.file("compose-desktop.pro"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue