~/talk

What's in the Android Toolbox?

Talkat DevFestMN 2018 · on Saturday, 2018-02-10· [android]
slides:none on file

Build steps list exact tools and outcomes: Java/Kotlin → javac → DX or D8+R8 replaces DX and ProGuard and produces dex; AAPT/AAPT2 compiles resources and generates R classes (AAPT2 links earlier and enforces stricter manifest rules); Gradle plugin 3.x orchestrates tasks and uses pkgzlib to sign/align efficiently; v2 signatures are default and v2 signing requires zipalign before signing while v1 needs zipalign after; multi‑dex exists for the 65k limit; observed speed wins: Gradle plugin 3.0 cuts 2m15s→6s for a one-line change.

AI-written summary · about

  1. 0:00What's in the Android Toolbox?
  2. 0:27What tools?
  3. 2:02What's in an APK?
  4. 6:55Shift from generic tools to Android-specific tools
  5. 7:18incrementality parallelism
  6. 7:30Gradle The orchestrator
  7. 8:02By default Gradle does nothing
  8. 8:12Plugins add functionality
  9. 8:35Plugins can extend the DSL
  10. 8:54Plugins can add dependency configurations
  11. 9:19Plugins can add tasks
  12. 9:32Android Plugin 3.X & Gradle 4.x
  13. 13:03Code Generation Dagger Butterknife Databinding
  14. 13:23Compile javac / kotlinc
  15. 15:59DX is the current dexing tool
  16. 16:31Sinking Your Teeth Into Bytecode
  17. 17:38Default in Studio + Gradle Plugin 3.1
  18. 18:52Jack and Jill Dead tools
  19. 20:26ProGuard The old guard
  20. 21:57AAPT automatically generates ProGuard rules for
  21. 22:14ProGuard is an open-source Java shrinker, obfuscation, and optimization tool
  22. 23:36R8 does full program Shrinking, obfuscation, and optimization
  23. 24:26Package Making the APK
  24. 24:40AAPT packages, reads, and updates APKs
  25. 24:51Processes resources
  26. 25:13AAPT2 Android Asset Packaging Tool 2
  27. 25:24AAPT2 is enabled by default as of plugin 3.0.0
  28. 25:43AAPT2 split linking and compilation
  29. 26:38APK Signing
  30. 27:25v1 signatures use jarsigner
  31. 28:28Gradle Plugin 2.2+ defaults to v2 signatures
  32. 29:04Zipalign aligns APKs on 4-byte boundaries
  33. 31:55ART Android Runtime
  34. 33:35Interpreted (.dex)
~/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.