Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix running Compose application after ProGuard optimizations. (#706)
Fixes JetBrains/compose-multiplatform#3387 It is probably a bug of proguard, it can't properly inline variables in some cases. ## Test export COMPOSE_CUSTOM_VERSION=46436.333.66 ./gradlew :mpp:publishComposeJbToMavenLocal -Pcompose.platforms=jvm Open https://github.com/JetBrains/compose-multiplatform-desktop-template Insert this code: ``` import androidx.compose.animation.AnimatedVisibility import androidx.compose.material.Text import androidx.compose.ui.window.singleWindowApplication fun main() { singleWindowApplication { AnimatedVisibility(true) { Text("SDg") } } } ``` ./gradlew runReleaseDistributable It runs without crashes after the fix. Before the fix it crashes with the crash: ``` Exception in thread "main" java.lang.VerifyError: Instruction type does not match stack map Exception Details: Location: androidx/compose/animation/AnimatedVisibilityKt.estimateAnimationDurationMillis(FFFFF)J @504: dload ```
- Loading branch information