Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Developing Libraries is Hard

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Domagoj Korman Domagoj Korman
October 17, 2018
46

Developing Libraries is Hard

Why and how to create a library and discuss potential footguns

Avatar for Domagoj Korman

Domagoj Korman

October 17, 2018
Tweet

Transcript

  1. SHOULD I MAKE A LIBRARY? • Terrible Google API •

    Common problems
 • Outdated existing library
  2. draw() API INTERNAL CONFIGURABLE • Prepare canvas • Prepare paint

    • Draw shape • Catch/Throw exceptions • Provide paint color • Provide shape
  3. fun rxDraw(): Observable<Event> { api.draw(object: Callback { override fun onSuccess()

    = observable.onCompleted() override fun onError(t: Throwable) = observable.onError(t) }) return observable }
  4. fun rxDraw(): Observable<Event> { api.draw(object: Callback { override fun onSuccess()

    = observable.onCompleted() override fun onError(t: Throwable) = observable.onError(t) }) return observable }
  5. README • Quick guide on top - as short as

    possible • Complex stuff below
  6. AUTOMATE RELEASE • Gradle Bintray Plugin • Complex to understand

    and setup • Awesome documentation • Easy to use after setup