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)
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
||||||
|
|
||||||
packageName = "Table de Lwa"
|
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."
|
description = "Application de support au jeux de rôle dans l'univers de Lwa."
|
||||||
copyright = "© 2020 Pixelized. All rights reserved."
|
copyright = "© 2020 Pixelized. All rights reserved."
|
||||||
vendor = "Pixelized"
|
vendor = "Pixelized"
|
||||||
|
|
@ -78,10 +78,6 @@ compose.desktop {
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes.release.proguard {
|
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"))
|
configurationFiles.from(project.file("compose-desktop.pro"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
|
# proguard-rules.pro
|
||||||
-keep class androidx.compose.runtime.** { *; }
|
-dontoptimize
|
||||||
-keep class androidx.collection.** { *; }
|
-dontobfuscate
|
||||||
-keep class androidx.lifecycle.** { *; }
|
-dontshrink
|
||||||
|
|
||||||
# We're excluding Material 2 from the project as we're using Material 3
|
# We're excluding Material 2 from the project as we're using Material 3
|
||||||
-dontwarn androidx.compose.material.**
|
-dontwarn androidx.compose.material.**
|
||||||
|
|
@ -11,8 +11,7 @@
|
||||||
|
|
||||||
# OkHttp comming from COIL.
|
# OkHttp comming from COIL.
|
||||||
-dontwarn okhttp3.internal.platform.**
|
-dontwarn okhttp3.internal.platform.**
|
||||||
-keep class coil3.compose.** { *; }
|
-keep class coil3.** { *; }
|
||||||
-keep class coil3.network.ktor3.** { *; }
|
|
||||||
|
|
||||||
# Serialization
|
# Serialization
|
||||||
-keep class io.ktor.serialization.kotlinx.json.** { *; }
|
-keep class io.ktor.serialization.kotlinx.json.** { *; }
|
||||||
|
|
@ -20,3 +19,9 @@
|
||||||
-keep class com.pixelized.shared.lwa.protocol.rest.** { *; }
|
-keep class com.pixelized.shared.lwa.protocol.rest.** { *; }
|
||||||
-keep class com.pixelized.desktop.lwa.repository.settings.model.** { *; }
|
-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