fix(android): keep plugin annotation types from R8 full mode
Merged
RI
14d ago+2+2+0123456789-1-1-0123456789
What
- Add explicit
-keepattributes *Annotation*inandroid/capacitor/proguard-rules.proso R8 full mode does not strip Capacitor annotation metadata that plugins rely on at runtime. - Keep
-keep @interface com.getcapacitor.annotation.**and related rules so reflection and plugin registration keep working.
Why
- R8 can treat annotation types as unused and optimize away annotation data that Capacitor reads via reflection.
How
- Restore consumer ProGuard defaults for annotation retention next to the existing
-keep @interfacerules.
Testing
- Pushed to this branch; rely on CI on the PR.
Not Tested
- Local Android release build with R8 full mode.


![Autofix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark-3x.png)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
- Bug Fixes
- Improved the retention of Android app metadata in release builds. No changes to app behavior or available features are included in this update.