Slide 1

Slide 1 text

HOW TO CREATE A CONFERENCE ANDROID APP WITH GROOVY AND WORDPRESS?

Slide 2

Slide 2 text

SERGIO DEL AMO [email protected] @SDELAMO

Slide 3

Slide 3 text

GROOVYCALAMARI.COM A “weekly” curated email newsletter full of interesting, relevant links about the Groovy Ecosystem

Slide 4

Slide 4 text

GR8CONFAGENDA GOOGLEPLAY

Slide 5

Slide 5 text

https://play.google.com/store/apps/details?id=com.botconf.ggx

Slide 6

Slide 6 text

https://play.google.com/store/apps/details?id=com.botconf.greach

Slide 7

Slide 7 text

AUDIENCE BACKGROUND ▸ WORDPRESS AFICIONADO? ▸ WORDPRESS DEVELOPERS? ▸ ANDROID DEVELOPERS? ▸ GROOVY DEVELOPERS?

Slide 8

Slide 8 text

SMALL ( < 20 EMPLOYEES ) MEDIUM-BIG ( > 20 EMPLOYEES )

Slide 9

Slide 9 text

WHY?

Slide 10

Slide 10 text

IS IT POSSIBLE TO HIRE GROOVY DEVELOPERS FOR A START-UP?

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

SHOPTIMIX PROFILE?

Slide 14

Slide 14 text

IS GROOVY TOO NICHE?

Slide 15

Slide 15 text

TEXT

Slide 16

Slide 16 text

TEXT

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

TEXT

Slide 20

Slide 20 text

DOES GROOVY NEED TO BE IN THE TOP 10?

Slide 21

Slide 21 text

GROOVY CAN BE ANDROID’ SWIFT

Slide 22

Slide 22 text

WORDPRESS

Slide 23

Slide 23 text

WHY WORDPRESS?

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

POWERS 25% OF ALL SITES ACROSS THE WEB WORDPRESS SOURCE W3TECHS

Slide 26

Slide 26 text

CHEAP HOSTING

Slide 27

Slide 27 text

PRODUCT IS USER FRIENDLY

Slide 28

Slide 28 text

PRODUCT IS FLEXIBLE

Slide 29

Slide 29 text

LOTS OF PLUGINS!

Slide 30

Slide 30 text

HOW TO CREATE A CONFERENCE APP POWERED BY WORPRESS?

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

CUSTOM POST TYPES ▸ CONGRESS ▸ SPEAKER ▸ TALK

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

HTTP://EXAMPLE.COM/WP-JSON/POSTS?TYPE=TALK

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

ANDROID

Slide 45

Slide 45 text

https://github.com/groovy/groovy-android-gradle-plugin

Slide 46

Slide 46 text

http://mariogarcia.github.io/grooid-templates/ https://github.com/rvanderwerf/grooid-templates

Slide 47

Slide 47 text

SQLite ENTITIES grooid_wpapi Activities Fragments Adapters USE CASES INTERFACE ADAPTERS BotConf grooid_wpapi

Slide 48

Slide 48 text

REFRESH ▸ BACKGROUND TASK TO DOWNLOAD JSON ▸ UPDATE LOCAL DATABASE ▸ NOTIFY UI OF CHANGES IN THE DATABASE AND DISPLAY CHANGES

Slide 49

Slide 49 text

https://github.com/Arasthel/SwissKnife

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

GROOID_WPAPI ▸ https://github.com/sdelamo/grooid-wpapi

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

No content

Slide 57

Slide 57 text

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

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

GROOID_WPAPI void loadConferenceData { List conferences, List speakers, List talks -> } JSON PAYLOAD void fetchAllPosts(String url, String type, Closure customFields) { List posts -> } SpeakerWPAPIPostAdapter SpeakeTalkWPAPIPostAdapter class RemoteRepositoryUseCase implements IRemoteRepository

Slide 60

Slide 60 text

PAGINATION

Slide 61

Slide 61 text

STRING INTERPOLATION

Slide 62

Slide 62 text

JAVA GROOVY

Slide 63

Slide 63 text

GROOVY WITH OPERATOR

Slide 64

Slide 64 text

AgendaSessionTimeHeader TalkCard AgendaSessionTimeHeader AgendaSessionTimeHeader TalkCard TalkCard TalkCard

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

CHRONOLOGICAL ORDER REVERSE CHRONOLOGICAL ORDER 12 Dec 2014 11 Dec 2014 13 Dec 2013 12 Dec 2013 14 Dec 2015 15 Dec 2015

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

SPOCK ON ANDROID ▸ https://github.com/pieces029/android-spock

Slide 69

Slide 69 text

No content

Slide 70

Slide 70 text

JAVA GROOVY

Slide 71

Slide 71 text

SHARED PREFERENCES

Slide 72

Slide 72 text

TRAITS

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

MAIN ACTIVITY TALK ACTIVITY

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

ASTS HTTPS://GITHUB.COM/MARIOGARCIA/MGUG-ANDROID

Slide 78

Slide 78 text

FROM:

Slide 79

Slide 79 text

TO:

Slide 80

Slide 80 text

CHALLENGES

Slide 81

Slide 81 text

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

Slide 82

Slide 82 text

ANDROID STUDIO SUPPORT

Slide 83

Slide 83 text

CALL TO ACTION

Slide 84

Slide 84 text

WORK IN PROGRESS ▸ GROOID_WPAPI (https://github.com/sdelamo/grooid-wpapi) ▸ BOTCONF (https://github.com/sdelamo/botconf)

Slide 85

Slide 85 text

CODE ANDROID PROJECTS ON GROOVY

Slide 86

Slide 86 text

GROOVYCALAMARI.COM A “weekly” curated email newsletter full of interesting, relevant links about the Groovy Ecosystem

Slide 87

Slide 87 text

?