How to create a conference android app with Groovy and Android

  • Published on
    23-Jan-2018

  • View
    277

  • Download
    0

Embed Size (px)

Transcript

  1. 1. HOW TO CREATE A CONFERENCE ANDROID APP WITH GROOVY AND WORDPRESS?
  2. 2. SERGIO DEL AMO ME@SERGIODELAMO.COM @SDELAMO
  3. 3. GROOVYCALAMARI.COM A weekly curated email newsletter full of interesting, relevant links about the Groovy Ecosystem
  4. 4. GR8CONFAGENDA GOOGLEPLAY
  5. 5. https://play.google.com/store/apps/details?id=com.botconf.ggx
  6. 6. https://play.google.com/store/apps/details?id=com.botconf.greach
  7. 7. AUDIENCE BACKGROUND WORDPRESS AFICIONADO? WORDPRESS DEVELOPERS? ANDROID DEVELOPERS? GROOVY DEVELOPERS?
  8. 8. SMALL ( < 20 EMPLOYEES ) MEDIUM-BIG ( > 20 EMPLOYEES )
  9. 9. WHY?
  10. 10. IS IT POSSIBLE TO HIRE GROOVY DEVELOPERS FOR A START-UP?
  11. 11. SHOPTIMIX PROFILE?
  12. 12. IS GROOVY TOO NICHE?
  13. 13. TEXT
  14. 14. TEXT
  15. 15. TEXT
  16. 16. DOES GROOVY NEED TO BE IN THE TOP 10?
  17. 17. GROOVY CAN BE ANDROID SWIFT
  18. 18. WORDPRESS
  19. 19. WHY WORDPRESS?
  20. 20. POWERS 25% OF ALL SITES ACROSS THE WEB WORDPRESS SOURCE W3TECHS
  21. 21. CHEAP HOSTING
  22. 22. PRODUCT IS USER FRIENDLY
  23. 23. PRODUCT IS FLEXIBLE
  24. 24. LOTS OF PLUGINS!
  25. 25. HOW TO CREATE A CONFERENCE APP POWERED BY WORPRESS?
  26. 26. CUSTOM POST TYPES CONGRESS SPEAKER TALK
  27. 27. HTTP://EXAMPLE.COM/WP-JSON/POSTS?TYPE=TALK
  28. 28. ANDROID
  29. 29. https://github.com/groovy/groovy-android-gradle-plugin
  30. 30. http://mariogarcia.github.io/grooid-templates/ https://github.com/rvanderwerf/grooid-templates
  31. 31. SQLite ENTITIES grooid_wpapi Activities Fragments Adapters USE CASES INTERFACE ADAPTERS BotConf grooid_wpapi
  32. 32. REFRESH BACKGROUND TASK TO DOWNLOAD JSON UPDATE LOCAL DATABASE NOTIFY UI OF CHANGES IN THE DATABASE AND DISPLAY CHANGES
  33. 33. https://github.com/Arasthel/SwissKnife
  34. 34. GROOID_WPAPI https://github.com/sdelamo/grooid-wpapi
  35. 35. ADAPTER PATTERN CONVERTS THE INTERFACE OF A CLASS INTO ANOTHER INTERFACE THE CLIENTS EXPECT. ADAPTERS LETS CLASSES WORK TOGETHER THAT COULDNT OTHERWISE BECAUSE OF INCOMPATIBLE INTERFACES SOURCE HEAD FIRST PATTERNS
  36. 36. 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
  37. 37. PAGINATION
  38. 38. STRING INTERPOLATION
  39. 39. JAVA GROOVY
  40. 40. GROOVY WITH OPERATOR
  41. 41. AgendaSessionTimeHeader TalkCard AgendaSessionTimeHeader AgendaSessionTimeHeader TalkCard TalkCard TalkCard
  42. 42. CHRONOLOGICAL ORDER REVERSE CHRONOLOGICAL ORDER 12 Dec 2014 11 Dec 2014 13 Dec 2013 12 Dec 2013 14 Dec 2015 15 Dec 2015
  43. 43. SPOCK ON ANDROID https://github.com/pieces029/android-spock
  44. 44. JAVA GROOVY
  45. 45. SHARED PREFERENCES
  46. 46. TRAITS
  47. 47. MAIN ACTIVITY TALK ACTIVITY
  48. 48. ASTSHTTPS://GITHUB.COM/MARIOGARCIA/MGUG-ANDROID
  49. 49. FROM:
  50. 50. TO:
  51. 51. CHALLENGES
  52. 52. 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
  53. 53. ANDROID STUDIO SUPPORT
  54. 54. CALL TO ACTION
  55. 55. WORK IN PROGRESS GROOID_WPAPI (https://github.com/sdelamo/grooid-wpapi) BOTCONF (https://github.com/sdelamo/botconf)
  56. 56. CODE ANDROID PROJECTS ON GROOVY
  57. 57. GROOVYCALAMARI.COM A weekly curated email newsletter full of interesting, relevant links about the Groovy Ecosystem
  58. 58. ?