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

Android Architecture Blueprints で学ぶ標準的なアプリの作り方

Android Architecture Blueprints で学ぶ標準的なアプリの作り方

1f08ea77620130a61f488838c33cd141?s=128

Shigeki Yamato (Mori)

February 17, 2018
Tweet

More Decks by Shigeki Yamato (Mori)

Other Decks in Technology

Transcript

  1. Android Architecture Blueprints ͰֶͿ ඪ४తͳΞϓϦͷ࡞Γํ 2018.2.17 DroidKaigi Reject Conference Shigeki

    Yamato / @heki1224 
  2. Android Architecture Blueprints ͰֶͿ ඪ४తͳΞϓϦͷ࡞Γํ 2018.2.17 DroidKaigi Reject Conference Shigeki

    Yamato / @heki1224  ΞϓϦ։ൃͰσϑΝΫτελϯμʔυʹͳͬͯΔ πʔϧͷ࢖ΘΕํ
  3. ※஫ҙ ͪ͜Βͷൃද͸ ΞϓϦ։ൃॳ৺ऀ޲͚ 

  4. ※஫ҙ Ͱ΋͕࣌ؒ଍Γͳͯ͘ ͍ͩͿמΓࠐΈ·ͨ͠ ͝ΊΜͳ͍͞ 

  5. ࣗݾ঺հ • Shigeki Yamato / @heki1224 • גࣜձࣾΦ΢νʔϊ • Android։ൃ͸2014೥͔Β

    • Ѫ࠺Ո • ࢠ൥೰ʢ່1ࡀʣ 
  6. ΞδΣϯμ • Android Architecture Blueprints ͱ͸ • Stable samples ͷ঺հ

    • ·ͱΊ 
  7. Android Architecture Blueprints ͱ͸  IUUQTHJUIVCDPNHPPHMFTBNQMFTBOESPJEBSDIJUFDUVSF

  8. Android Architecture Blueprints ͱ͸ • ςελϏϦςΟɺอकੑɺ֦ுੑͳͲΛɹɹɹ ߟྀͨ͠ΞϓϦͷ੨ࣸਅʢBlueprintʣΛɹɹɹ ࣔͨ͢ΊͷϓϩδΣΫτ • ίϛϡχςΟϕʔεͰ։ൃʢGoogleࣾʣ

    
  9. Android Architecture Blueprints ͱ͸ • ಉ͡ΞϓϦΛҧ͏ΞʔΩςΫνϟ΍πʔϧΛɹ ࢖ͬͯߏங • ΞʔΩςΫνϟ΍πʔϧͷϝϦοτ͕ɹɹɹ ෼͔Γ΍͍͢

    
  10. Stable samples ͷ঺հ • todo-mvp • todo-mvp-clean • todo-mvp-dagger •

    todo-mvp-rxjava • todo-mvvm-databinding • todo-mvvm-live 
  11. Stable samples ͷ঺հ • todo-mvp • todo-mvp-clean • todo-mvp-dagger •

    todo-mvp-rxjava • todo-mvvm-databinding • todo-mvvm-live  ԫ৭ɿΞʔΩςΫνϟʹؔΘΔ αϯϓϧ ϐϯΫɿϥΠϒϥϦʹؔΘΔ αϯϓϧ
  12. Stable samples ͷ঺հ • todo-mvp • todo-mvp-clean • todo-mvp-dagger •

    todo-mvp-rxjava • todo-mvvm-databinding • todo-mvvm-live  MVPύλʔϯͱϥΠϒϥϦͷ ૊Έ߹Θͤ
  13. todo-mvp • ͜ͷαϯϓϧूͷجຊܗ • MVP ύλʔϯʹͯ TODO ϦετΛ࣮૷ 

  14. todo-mvp • ͜ͷαϯϓϧͷجຊܗ • MVPύλʔϯʹͯTODOϦετΛ࣮૷ 

  15. todo-mvp • ίʔυΛݟΔ 

  16. todo-mvp • Կ͕͏Ε͍͠ͷ͔ʁ • View Λߋ৽͢ΔॲཧΛ Activity ΍ Fragment ʹ௚઀ॻ͔ͳ͍

    • ςετͷ͠΍͢͞ɺίʔυͷݟ௨͠ͷΑ͞ 
  17. todo-mvp-dagger • DIϥΠϒϥϦ Dagger2 Λ࢖ͬͨαϯϓϧ • Presenter ͷੜ੒Օॴʹ஫໨ 

  18. todo-mvp-dagger • ίʔυΛݟΔ 

  19. todo-mvp-dagger • Կ͕͏Ε͍͔͠ʁ • Presenter ࣗମ͕ Activity ΍ Fragment ͔Βɹ

    ૄ݁߹ʹͳΔ • Presenter ୯ମͰͷςετͷ͠΍͢͞ • Presenter ΛೖΕସ͑΍͍͢ 
  20. todo-mvp-rxjava • Reactive Extentions ϥΠϒϥϦ RxJava2 Λɹ ࢖ͬͨαϯϓϧ • σʔλͷऔಘ͔Β

    View ͷߋ৽·ͰΛɹɹɹɹ ϦΞΫςΟϒϓϩάϥϛϯάͷख๏Ͱهड़ 
  21. todo-mvp-rxjava • ίʔυΛݟΔ 

  22. todo-mvp-rxjava • Կ͕͏Ε͍͔͠ʁ • ίʔϧόοΫ͔ΒϦΞΫςΟϒ • ΦϖϨʔλʹΑΔ֤छૢ࡞Λ؆ܿʹهड़ • ίʔυͷݟ௨͠ͷΑ͞ 

  23. ·ͱΊ • Android Architecture Blueprints Ͱ͸ΠέͯΔઃܭɺ ࣮૷αϯϓϧΛఏڙʢNo ίϐϖʣ • ಉ͡ΞϓϦΛ༷ʑͳΞʔΩςΫνϟɺϥΠϒϥϦͰ

    ࣮૷͍ͯ͠ΔͨΊɺͦΕͧΕͷҧ͍͕Α͘෼͔Δ • ৗʹߋ৽͞Ε͍ͯΔͨΊɺྲྀߦʹ͍͍͚ͭͯΔ 
  24. ࢀߟ • https://github.com/googlesamples/android-architecture • https://employment.en-japan.com/engineerhub/entry/ 2018/01/17/110000 • https://speakerdeck.com/hkurokawa/chu-xin-zhe- falsetamefalse-rxjava •

    https://qiita.com/takahirom/items/ aa9087b075cc9b7249b6 • http://konifar.hatenablog.com/entry/2015/04/17/010606 
  25. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠