Skip to content

fix(proguard): disable shrinking for Compose animation classes #5116

Merged
jamesarich merged 1 commit intomainfrom
fix/proguard-r8-animations
Apr 13, 2026
Merged

fix(proguard): disable shrinking for Compose animation classes #5116
jamesarich merged 1 commit intomainfrom
fix/proguard-r8-animations

Conversation

@jamesarich
Copy link
Copy Markdown
Collaborator

Aggressive R8/ProGuard shrinking and class merging was causing internal transition states or empty transitions (like None) to be incorrectly removed or merged. This resulted in AnimatedVisibility and other animations silently snapping in release builds rather than interpolating correctly.

Key changes:

  • ProGuard Rules: Updated app/proguard-rules.pro and desktop/proguard-rules.pro to use a full -keep rule for androidx.compose.animation.**, removing the allowshrinking and allowobfuscation flags.
  • Documentation: Updated desktop/README.md to reflect the change in the anti-merge rule for Compose animation classes.

…vent snapping

Aggressive R8/ProGuard shrinking and class merging was causing internal transition states or empty transitions (like `None`) to be incorrectly removed or merged. This resulted in `AnimatedVisibility` and other animations silently snapping in release builds rather than interpolating correctly.

Key changes:
- **ProGuard Rules:** Updated `app/proguard-rules.pro` and `desktop/proguard-rules.pro` to use a full `-keep` rule for `androidx.compose.animation.**`, removing the `allowshrinking` and `allowobfuscation` flags.
- **Documentation:** Updated `desktop/README.md` to reflect the change in the anti-merge rule for Compose animation classes.
@github-actions github-actions bot added the bugfix PR tag label Apr 13, 2026
@jamesarich jamesarich enabled auto-merge April 13, 2026 21:45
@jamesarich jamesarich changed the title fix(proguard): disable shrinking for Compose animation classes \ fix(proguard): disable shrinking for Compose animation classes Apr 13, 2026
@jamesarich jamesarich added this pull request to the merge queue Apr 13, 2026
Merged via the queue into main with commit 28be693 Apr 13, 2026
13 checks passed
@jamesarich jamesarich deleted the fix/proguard-r8-animations branch April 13, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix PR tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant