A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hi @Kim Strasser ,
Thanks for your question.
In Debug mode, proguard.cfg is usually not used. ProGuard only runs if code shrinking is enabled. By default, shrinking is something you turn on for release, not debug (base on Enable app optimization with R8).
While this is a non-Microsoft link, it’s official android documentation and is safe to visit.
When you build your Android app in Release mode, Android uses a tool called ProGuard to:
- Make your app smaller.
- Make it faster.
- Obfuscate the code so it's harder for other people to steal or understand your game logic.
- If your app builds and runs fine in Release without any crashes → you probably don’t need a custom proguard.cfg file.
- If you start seeing strange crashes only in Release builds, then you need to add keep rules inside
proguard.cfg.
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.