~/talk

Escaping from a 'It Kinda Works' ProGuard Setup

TalkinJapaneseat DroidKaigi 2018 · 2018-02-08..02-09· [android, web-performance]
name:Sato Shun
links:none on file
slides:none on file

ProGuard is used to shrink, optimize and obfuscate Android apps — examples include DroidKaigi’s app reducing classes/methods by ~40% and halving dex size, and Ameblo shrinking ~23k classes to a ~6MB dex. Concrete fixes for ProGuard issues are covered: add -dontwarn javax.annotation and keepnames for OkHttp’s PublicSuffixDatabase (because a .gz resource expects the original classpath), add keep rules for Gson/Jackson to preserve annotated methods and constructors, and inspect the results with APK Analyzer.

AI-written summary · about

  1. 0:00Introduction
  2. 3:26ProGuard basics
  3. 6:20ProGuard with OKHttp
  4. 12:52Gson reflection pitfalls
  5. 19:12Proper keep annotations
  6. 21:49AAPT auto-rules traps
  7. 26:58Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.