Baidu Geek Talk
Feb 28, 2022 · Mobile Development
APK Package Size Optimization and Resource Obfuscation for Android Plugins
To keep Android plugins lightweight as they grow, developers should analyze and obfuscate resource files—using a custom AndroidResGuard extension that adds a fixed package ID and a mapping table protocol—to shrink the resources.arsc constant pool, integrate the changes via Gradle, verify with gray releases, and achieve roughly an 8% size reduction while ensuring whitelist compliance.
APK size optimizationAndroidGradle Plugin
0 likes · 11 min read