Open mahozad opened 6 months ago
For a workaround, I added this line to my rules.pro file:
-dontoptimize
Do you use Material 3 or 2? Did you try with the default libraries included with the template without changing or including third-party libraries? Because Material 3 is not supported yet.
Another workaround without disabling Proguard optimizations:
-keep class androidx.compose.runtime.** { *; }
-keep class kotlinx.coroutines.** { *; }
This will exclude Kotlinx coroutines from minimization, the bundle size will be 29.4 MB for the example desktop app on macOS Apple silicon JAR file, previously 28.3 MB with the runtime error
Tested with Compose 1.6.10, Proguard 7.5.0, and Kotlin 2.0.0 with a project created by kmp.jetbrains.com
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
EchoEllet I'm using Material 2. Thanks for the tip.
EchoEllet I'm using Material 2. Thanks for the tip.
I was able to use it with Proguard 7.5.0, Kotlin 2.0.0 and Material 3 with this workarorund
Describe the bug When trying to execute
runReleaseDistributable
, app fails with this error:Affected platforms Select one of the platforms below:
Versions
Expected behavior The app should run when executing runReleaseDistributable.