Jon Bailey
06/12/2024, 12:05 AM-keep class androidx.compose.ui.platform.AndroidComposeView { *; }
)
-keepnames class androidx.compose.ui.platform.AndroidComposeView { *; }
I'm curious why this fixes it and if having this rule would adversely affect performance of Compose in general?
(I'm guessing there's some type check in the animation library that fails, but then not sure why r8/the minify setup wouldn't account for that? I've only being doing Android for a few months and this is the first issue with minifying I've come across)Ian Lake
06/12/2024, 4:57 AMJon Bailey
06/12/2024, 9:00 AMJon Bailey
06/12/2024, 1:50 PMclickable
Modifier with indication = null
(to not have the ripple effect) then that breaks the animation (still only in release mode). As in if I remove the indication = null
, then the animation works correctly without the proguard rule. Which is thoroughly confusing to me why that would have an effect.
If I do some navigation afterwards with a clickable modifier without the indication being null then all the animations work as expected from that point on.Ian Lake
06/12/2024, 5:33 PMJon Bailey
06/13/2024, 10:04 AM