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

Eight iOSを支えるアーキテクチャ / Architecture to support...

Sansan
June 15, 2019

Eight iOSを支えるアーキテクチャ / Architecture to support Eight iOS

■イベント
Developers Boost KANSAI
https://event.shoeisha.jp/devboost/20190615

■登壇概要
タイトル:
Eight iOSを支えるアーキテクチャ

登壇者:
Eight事業部 Engineering Group 河辺 雅史

▼Sansan Builders Box
https://buildersbox.corp-sansan.com/

Sansan

June 15, 2019
Tweet

More Decks by Sansan

Other Decks in Technology

Transcript

  1. 2018/04 2018/07 2018/12 2019/02 2019/04 2019/06 Sansanגࣜձࣾ ৽ଔೖࣾ / Eightࣄۀ෦഑ଐ

    ϝϯγϣϯػೳͷ࣮૷ Eight iOS v9.0.0 ϦϦʔε Sansanࣄۀ෦ҟಈ Sansan iOS v5.0.0 ϦϦʔε / Eightࣄۀ෦ҟಈ ೋஈ֊ೝূػೳͷ࣮૷
  2. 2018/04 2018/07 2018/12 2019/02 2019/04 2019/06 Sansanגࣜձࣾ ৽ଔೖࣾ / Eightࣄۀ෦഑ଐ

    ϝϯγϣϯػೳͷ࣮૷ Eight iOS v9.0.0 ϦϦʔε Sansanࣄۀ෦ҟಈ Sansan iOS v5.0.0 ϦϦʔε / Eightࣄۀ෦ҟಈ ೋஈ֊ೝূػೳͷ࣮૷
  3. 2018/04 2018/07 2018/12 2019/02 2019/04 2019/06 Sansanגࣜձࣾ ৽ଔೖࣾ / Eightࣄۀ෦഑ଐ

    ϝϯγϣϯػೳͷ࣮૷ Eight iOS v9.0.0 ϦϦʔε Sansanࣄۀ෦ҟಈ Sansan iOS v5.0.0 ϦϦʔε / Eightࣄۀ෦ҟಈ ೋஈ֊ೝূػೳͷ࣮૷
  4. 2018/04 2018/07 2018/12 2019/02 2019/04 2019/06 Sansanגࣜձࣾ ৽ଔೖࣾ / Eightࣄۀ෦഑ଐ

    ϝϯγϣϯػೳͷ࣮૷ Eight iOS v9.0.0 ϦϦʔε Sansanࣄۀ෦ҟಈ Sansan iOS v5.0.0 ϦϦʔε / Eightࣄۀ෦ҟಈ ೋஈ֊ೝূػೳͷ࣮૷
  5. 2018/04 2018/07 2018/12 2019/02 2019/04 2019/06 Sansanגࣜձࣾ ৽ଔೖࣾ / Eightࣄۀ෦഑ଐ

    ϝϯγϣϯػೳͷ࣮૷ Eight iOS v9.0.0 ϦϦʔε Sansanࣄۀ෦ҟಈ Sansan iOS v5.0.0 ϦϦʔε / Eightࣄۀ෦ҟಈ ೋஈ֊ೝূػೳͷ࣮૷
  6. 2018/04 2018/07 2018/12 2019/02 2019/04 2019/06 Sansanגࣜձࣾ ৽ଔೖࣾ / Eightࣄۀ෦഑ଐ

    ϝϯγϣϯػೳͷ࣮૷ Eight iOS v9.0.0 ϦϦʔε Sansanࣄۀ෦ҟಈ Sansan iOS v5.0.0 ϦϦʔε / Eightࣄۀ෦ҟಈ ೋஈ֊ೝূػೳͷ࣮૷
  7. MVVM ύλʔϯ 7JFX 7JFX$POUSPMMFS 7JFX.PEFM .PEFM 6*&WFOUT 3FRVFTUT %BUB %BUB#JEJOH

    "QQMF͕ఏڙ͢Δ6*,JUʹ͸6*7JFX$POUSPMMFSͱ͍͏7JFXΛ؅ཧ͢ΔΫϥε͕͋Γɺ
 ը໘ͷϥΠϑαΠΫϧͱը໘ભҠΛ୲͏
  8. 7JFX - " ͢΂͖͜ͱ - UI Λఆٛ͢Δ - ViewModel ʹ

    UI Events Λ఻͑Δ - ViewModel ͔Βड͚औͬͨσʔλΛ൓ө͢Δ - # ͢΂͖Ͱͳ͍͜ͱ - ϓϨθϯςʔγϣϯϩδοΫΛఆٛ͢Δ - ௨৴΍σʔλૢ࡞Λߦ͏
  9. 7JFX.PEFM - " ͢΂͖͜ͱ - UI Events Λ؂ࢹ͠ɺModel ʹॲཧΛґཔ͢Δ -

    Model ͔Βड͚औͬͨσʔλΛ View Ͱར༻͢Δͷʹ
 ࠷దͳܗʹՃ޻͢Δ - # ͢΂͖Ͱͳ͍͜ͱ - UI Λఆٛ͢Δ - ௨৴΍σʔλૢ࡞Λߦ͏
  10. .PEFM - " ͢΂͖͜ͱ - σʔλߏ଄Λఆٛ͢Δ - σʔλΛӬଓԽ͢Δ - σʔλΛૢ࡞͢Δ

    - # ͢΂͖Ͱͳ͍͜ͱ - UI Λఆٛ͢Δ - σʔλΛ View Ͱར༻͢Δͷʹ࠷దͳܗʹՃ޻͢Δ
  11. - Entity - σʔλߏ଄Λఆٛ͢Δߏ଄ମ - Repository - Entity ͷ CRUD

    ૢ࡞Λఏڙ͢Δ - SQLite ΍ UserDefaults ౳ͷ DataSource ΛӅṭ - Request - HTTP Request Λ౤͛ΔॲཧΛఆٛ͢Δ - UseCase - ϏδωεϩδοΫΛهड़͢Δ
  12. 7JFX 7JFX$POUSPMMFS 3RVFTUT %BUB 6*&WFOUT %BUB#JEJOH 7JFX.PEFM 6TF$BTF 3FRVFTU 3FQPTJUPSZ

    &OUJUZ 3FRVFTU 3FTQPOTF $36% %BUB 3FTVMU ,OPXTBCPVU ,OPXTBCPVU
  13. 7JFX 7JFX$POUSPMMFS 3RVFTUT %BUB 6*&WFOUT %BUB#JEJOH 7JFX.PEFM 6TF$BTF 3FRVFTU 3FQPTJUPSZ

    &OUJUZ 3FRVFTU 3FTQPOTF $36% %BUB 3FTVMU ,OPXTBCPVU ,OPXTBCPVU
  14. 7JFX 7JFX$POUSPMMFS 3RVFTUT %BUB 6*&WFOUT %BUB#JEJOH 7JFX.PEFM 6TF$BTF 3FRVFTU 3FQPTJUPSZ

    &OUJUZ 3FRVFTU 3FTQPOTF $36% %BUB 3FTVMU ,OPXTBCPVU ,OPXTBCPVU
  15. 7JFX 7JFX$POUSPMMFS 3RVFTUT %BUB 6*&WFOUT %BUB#JEJOH 7JFX.PEFM 6TF$BTF 3FRVFTU 3FQPTJUPSZ

    &OUJUZ 3FRVFTU 3FTQPOTF $36% %BUB 3FTVMU ,OPXTBCPVU ,OPXTBCPVU
  16. 7JFX 7JFX$POUSPMMFS 3RVFTUT %BU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