~/talk

Writing Android Libraries

Talkat Øredev 2015 · 2015-11-03..11-06· [android]
links:none on file
slides:none on file

Practical checklist: design a clear API that is hard to misuse, produce source jars, and prefer use JUnit 4 for parametric tests; automate builds and matrix permutations with automate with Jenkins and publish to Bintray/JCenter rather than fighting Maven Central. Prefer annotation processing to avoid runtime reflection and note a real-world case where switching from Dex maker runtime generation to compile‑time generation yields about 10× faster builds; use bytecode weaving only for the few places annotation processors cannot modify.

AI-written summary · about

  1. 0:00Intro
  2. 1:34WHY WOULD YOU WRITE AN ANDROID LIBRARY?
  3. 3:05HOW TO START AN ANDROID LIBRARY PROJECT?
  4. 3:311. Create a new Application project 2. Add a new Library module
  5. 4:35API DESIGN
  6. 5:08SOLUTION DEFINE WHAT A GOOD APLIS
  7. 9:59TESTING IS EVEN MORE IMPORTANT FOR LIBRARIES THAN FOR APPLICATIONS BECAUSE YOU HAVE NO IDEA HOW YOUR USERS ARE GOING TO USE IT.
  8. 11:08LET JENKINS BECOME YOUR BEST FRIEND
  9. 14:01SOLUTION 3 WRITE SAMPLE APPS
  10. 15:07JAR OR AAR?
  11. 16:01SOLUTION USE AAR
  12. 16:31WHERE TO PUBLISH?
  13. 19:27REFLECTION IS SLOW
  14. 20:00SOLUTION ANNOTATION PROCESSING
  15. 23:43SOMETIMES ANNOTATION PROCESSING IS NOT POWERFUL ENOUGH
  16. 24:09SOLUTION BYTECODE WEAVING
  17. 29:13NATIVE CODE
  18. 31:29QUESTIONS?
~/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.