Skip to content

Instantly share code, notes, and snippets.

@tw-Frey
Created December 1, 2020 05:09
Show Gist options
  • Select an option

  • Save tw-Frey/8ee7cc4976eae6705a9838b4a645a195 to your computer and use it in GitHub Desktop.

Select an option

Save tw-Frey/8ee7cc4976eae6705a9838b4a645a195 to your computer and use it in GitHub Desktop.
Proguard/R8 and its outputs

通常 Android App 要上架
release 會作 Proguard/R8
可是在 Google Play console 看當機報告
看到的會是混淆結果
其實可以上傳 mappings
方便在 Google Play console 追蹤

既然提到 mappings
多少要了解 Proguard 有哪些產出

  • mapping.txt
  • seeds.txt
  • usage.txt
  • dump.txt (Proguard/舊)
  • configuration.txt (R8/新)
@tw-Frey
Copy link
Copy Markdown
Author

tw-Frey commented Dec 1, 2020

缩减、混淆处理和优化应用

Android 开发者 > Android Studio > 用户指南

https://developer.android.com/studio/build/shrink-code?hl=zh-cn

官方文件一定要看(目前最新的是 R8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment