Fix coil runtine loading issue in release by disabling shrinking.
This commit is contained in:
parent
52e8665c43
commit
03df369e0b
2 changed files with 13 additions and 12 deletions
|
|
@ -66,7 +66,7 @@ compose.desktop {
|
|||
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
||||
|
||||
packageName = "Table de Lwa"
|
||||
packageVersion = "1.1.0"
|
||||
packageVersion = "1.1.1"
|
||||
description = "Application de support au jeux de rôle dans l'univers de Lwa."
|
||||
copyright = "© 2020 Pixelized. All rights reserved."
|
||||
vendor = "Pixelized"
|
||||
|
|
@ -78,10 +78,6 @@ compose.desktop {
|
|||
}
|
||||
|
||||
buildTypes.release.proguard {
|
||||
obfuscate.set(false) // Obfuscation doesn't work because of netty.
|
||||
// optimize.set(false)
|
||||
// isEnabled.set(false)
|
||||
|
||||
configurationFiles.from(project.file("compose-desktop.pro"))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
-keep class androidx.compose.runtime.** { *; }
|
||||
-keep class androidx.collection.** { *; }
|
||||
-keep class androidx.lifecycle.** { *; }
|
||||
# proguard-rules.pro
|
||||
-dontoptimize
|
||||
-dontobfuscate
|
||||
-dontshrink
|
||||
|
||||
# We're excluding Material 2 from the project as we're using Material 3
|
||||
-dontwarn androidx.compose.material.**
|
||||
|
|
@ -11,12 +11,17 @@
|
|||
|
||||
# OkHttp comming from COIL.
|
||||
-dontwarn okhttp3.internal.platform.**
|
||||
-keep class coil3.compose.** { *; }
|
||||
-keep class coil3.network.ktor3.** { *; }
|
||||
-keep class coil3.** { *; }
|
||||
|
||||
# Serialization
|
||||
-keep class io.ktor.serialization.kotlinx.json.** { *; }
|
||||
-keep class com.pixelized.shared.lwa.model.** { *; }
|
||||
-keep class com.pixelized.shared.lwa.protocol.rest.** { *; }
|
||||
-keep class com.pixelized.desktop.lwa.repository.settings.model.** { *; }
|
||||
-keep @kotlinx.serialization.Serializable class * { *; }
|
||||
-keep @kotlinx.serialization.Serializable class * { *; }
|
||||
|
||||
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
|
||||
-keepclassmembers enum * {
|
||||
public static **[] values();
|
||||
public static ** valueOf(java.lang.String);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue