Upload
gr8conf
View
292
Download
0
Embed Size (px)
Citation preview
SERGIO DEL [email protected] @SDELAMO
GROOVYCALAMARI.COM
A “weekly” curated email newsletter full of interesting, relevant links about the Groovy Ecosystem
https://play.google.com/store/apps/details?id=com.botconf.ggx
https://play.google.com/store/apps/details?id=com.botconf.greach
AUDIENCE BACKGROUND▸WORDPRESS AFICIONADO?
▸WORDPRESS DEVELOPERS?
▸ANDROID DEVELOPERS?
▸GROOVY DEVELOPERS?
https://github.com/groovy/groovy-android-gradle-plugin
http://mariogarcia.github.io/grooid-templates/
https://github.com/rvanderwerf/grooid-templates
SQLite
ENTITIES
grooid_wpapi
Activities Fragments Adapters
USE CASES
INTERFACE ADAPTERS
BotConf grooid_wpapi
REFRESH▸ BACKGROUND TASK TO
DOWNLOAD JSON
▸UPDATE LOCAL DATABASE
▸NOTIFY UI OF CHANGES IN THE DATABASE AND DISPLAY CHANGES
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
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
AgendaSessionTimeHeader <IAgendaSession>
TalkCard <IAgendaSession>
AgendaSessionTimeHeader <IAgendaSession>
AgendaSessionTimeHeader <IAgendaSession>
TalkCard <IAgendaSession>
TalkCard <IAgendaSession>
TalkCard <IAgendaSession>
CHRONOLOGICAL ORDER
REVERSE CHRONOLOGICAL ORDER
12 Dec 2014 11 Dec 2014 13 Dec 2013 12 Dec 2013
14 Dec 2015 15 Dec 2015
SPOCK ON ANDROID▸ https://github.com/pieces029/android-spock
MULTI-DEX IS A NIGHTMARE▸ Android 64k method limit
METHOD COUNT COMPARISION
0
7500
15000
22500
30000
OKHTTP IO.FABRIC GSON RETROFIT GROOVY ANDROIDSOURCE: HTTPS://GITHUB.COM/GROOVY/GROOVY-ANDROID-GRADLE-PLUGIN/ISSUES/65
WORK IN PROGRESS▸GROOID_WPAPI (https://github.com/sdelamo/grooid-wpapi)
▸ BOTCONF (https://github.com/sdelamo/botconf)
GROOVYCALAMARI.COM
A “weekly” curated email newsletter full of interesting, relevant links about the Groovy Ecosystem