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

How to create a conference Android app with Gro...

How to create a conference Android app with Groovy and Wordpress?

Sergio del Amo

March 19, 2016
Tweet

More Decks by Sergio del Amo

Other Decks in Programming

Transcript

  1. REFRESH ▸ BACKGROUND TASK TO DOWNLOAD JSON ▸ UPDATE LOCAL

    DATABASE ▸ NOTIFY UI OF CHANGES IN THE DATABASE AND DISPLAY CHANGES
  2. ADAPTER PATTERN ▸ CONVERTS THE INTERFACE OF A CLASS INTO

    ANOTHER INTERFACE THE CLIENTS EXPECT. ADAPTERS LETS CLASSES WORK TOGETHER THAT COULDN’T OTHERWISE BECAUSE OF INCOMPATIBLE INTERFACES SOURCE HEAD FIRST PATTERNS
  3. GROOID_WPAPI void loadConferenceData { List<IConference> conferences, List<ISpeaker> speakers, List<ITalk> talks

    -> } JSON PAYLOAD void fetchAllPosts(String url, String type, Closure customFields) { List<WPAPIPost> posts -> } SpeakerWPAPIPostAdapter SpeakeTalkWPAPIPostAdapter class RemoteRepositoryUseCase implements IRemoteRepository
  4. CHRONOLOGICAL ORDER REVERSE CHRONOLOGICAL ORDER 12 Dec 2014 11 Dec

    2014 13 Dec 2013 12 Dec 2013 14 Dec 2015 15 Dec 2015
  5. MULTI-DEX IS A NIGHTMARE ▸ Android 64k method limit METHOD

    COUNT COMPARISION 0 7500 15000 22500 30000 OKHTTP IO.FABRIC GSON RETROFIT GROOVY ANDROID SOURCE: HTTPS://GITHUB.COM/GROOVY/GROOVY-ANDROID-GRADLE-PLUGIN/ISSUES/65
  6. ?