Android

Ship smarter keep rules: How library providers can unblock app-level DEX code optimization

Android library providers are being urged to ship smarter keep rules so that app-level DEX code optimization is not blocked. The guidance centers on R8, Android's app optimizer, which improves app performance by removing unused code and optimizing and obfuscating the rest. Overly broad keep rules bundled in libraries can limit what R8 is able to optimize in the apps that depend on them, affecting the performance and smoothness of those apps.

AI-written summary, checked against the cited sources. How summaries work

Image: Android Developers Blog

Read at Android Developers Blog