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

Project開始後に導入するAssetsの自動共有

188abc8954f5a349f8df86c8586a9b1d?s=47 yudoufu
October 14, 2017

 Project開始後に導入するAssetsの自動共有

188abc8954f5a349f8df86c8586a9b1d?s=128

yudoufu

October 14, 2017
Tweet

Transcript

  1. Project։࢝ޙʹಋೖ͢Δ Assetsͷࣗಈڞ༗ Souzoh iOS Talk @ 2017/10/11

  2. ࣗݾ঺հ ! ϝϧΧϦ Χ΢ϧ ্ཱͪ͛ ◦ iOSத৺ʹɺνʔϜ಺ͷτϥϒϧγϡʔτͳͲ ! ΞΠίϯ͸౾෗(ϩϯάγϟυ΢) @yudoufu

    ُຊɹେ஍ 2
  3. ࠓ೔ͷ࿩ ϝϧΧϦ Χ΢ϧͰߦͬͨɺBPW(Be Professional Week) ͱ͍͏΋ͷͷ੒ՌΛ࿩͠·͢ ! ϝϧΧϦ Χ΢ϧͰAssetsͷࣗಈڞ༗ͷ࢓૊ΈΛಋೖͨ͠ͷͰɺͦͷ঺հ ◦

    چདྷͷ΍Γํͱ৽͍͠΍Γํ ◦ ϕΫλʔը૾(PDF)ͷରॲ ◦ ϋϚΓͲ͜ΖͱɺطଘϓϩδΣΫτ΁ͷಋೖϙΠϯτ 3
  4. BPWͱ͸ʁ ! ϝϧΧϦͰ͸ఆظతʹɺBPD(Be Professional Day) ͱ͍͏΋ͷ͕͋Δ ◦ ීஈͷࢪࡦʹͱΒΘΕͣɺத௕ظతࢹ఺Ͱͷٕज़վળ΍৽͍͠ࢼΈΛߦ͏̎೔ؒ ! ϝϧΧϦ

    Χ΢ϧ͸ͳ͔ͳ͔ͦͷ༨༟͕ͳ͔ͬͨ ! ࠓ·ͰͰ͖ͳ͔ͬͨ෼ɺΨπϯͱ̍िؒվળͷ೔Λͱͬͨ ! ͦΕ͕ Be Professional Week ! ͦͷதͰAssetsڞ༗ͷࣗಈԽͷ࢓૊Έ(=Karakuri)ΛೖΕͨ࿩ 4
  5. Assetsڞ༗ͷ࢓૊Έ 5

  6. چདྷͷAssetsͷ΍ΓͱΓ 6 ਖ਼௚͍ͨ΁Μ

  7. Կ͕ྑ͘ͳ͍ʁ ! ड͚౉͠ɾ൓ө͕Blocking ◦ σβΠφʔ͕ॻ͖ग़ͯ͠౉͢ ◦ ΤϯδχΞ͕ΞϓϦʹ૊ΈࠐΉ ◦ GitHubʹPushͯ͠ɺ΍ͬͱνʔϜશମ΁ ◦

    όέπϦϨʔํࣜ ! ड͚౉͠͞ΕͨΞΠίϯͷঢ়ଶ؅ཧ͕ਓྗ ◦ ʮ͜Εͱ͜Εɺ౉ͨ͠ΑͶʁʯ ◦ ʮ͋Ε୅ΘΓʹॻ͖ग़͠ͱ͖·͢Ͷʯ ◦ ʮࠓճ͜Εͬͯॻ͖ग़ͯ͠࢖͏ͷʁʯ ◦ ਓͷϝϞϦͰঢ়ଶ؅ཧ 7
  8. IOSDCʹͯ 8 http://konifar.hatenablog.com/entry/2017/09/17/231704

  9. ʂ 9

  10. ૣ଎࡞ͬͨ 10 ྑ͍ & Contents.json

  11. ؆୯ʹ·ͱΊΔͱɾɾɾ ! Travis্Ͱsketchͷॻ͖ग़͠ ◦ iOSϓϩδΣΫτɾσβΠϯͷϦϙδτϦ΁PRΛग़͢ ◦ ࡞ۀbranch͸΍Γͨ͘ͳ͍ͷͰɺmaster΁ ! iOSଆʹ௥Ճ͢ΔࡍʹContents.jsonΛੜ੒ ◦

    Project্ͰखΛՃ͑Δ͜ͱ΋͋ΔͷͰɺଘࡏ͢Δ৔߹͸৮Εͳ͍ ! ௚઀ίϛοτͤͣɺPull Requestͷܗʹ͢Δ ◦ Կ͕มߋ͞Εͨͷ͔͕ϦετͰΘ͔Δঢ়ଶʹͯ͠ͱΓ͜Ή ▪ ը૾Λར༻͢Δࡍʹ௚ۙͷ௥ՃΛ஌͓͖͍ͬͯͨ 11
  12. ࣮ࡍͷPRɾɾɾ 12

  13. ɾɾɾ͓΍ʁ 13

  14. Diffଟ͗͢͡ΌͶʁ 14

  15. PDF͕શ෦ࠩ෼ग़Δ໰୊ ! MacͷPDFॻ͖ग़͠(Quartz)ʹىҼ͢Δ΋ͷ ◦ sketchͷॻ͖ग़͕͠಺෦తʹ࢖ͬͯΔͬΆ͍ ! ͜ͷ··ͩͱɺมߋͯ͠ͳ͍ը૾͕Pull Request͞Ε͖ͯͯ͠·͏ ◦ ຊ౰ʹมΘͬͨɾ௥Ճ͞Εͨը૾͕ͲΕ͔ͩΘ͔Βͳ͘ͳΔ

    → Ͳ͏ʹ͔ͯࠩ͠෼͕ͳ͍৔߹Λ೺Ѳɾআ֎͢Δඞཁ͕͋Δ 15
  16. ͦ͜Ͱ 16

  17. PDFͷࠩ෼໰୊΁ͷରॲ ! SVGΛಉ࣌ʹॻ͖ग़͠ɺͦͪΒͷࠩ෼ΛݩʹมߋΛνΣοΫ ◦ SVGʹࠩ෼͕ͳ͍΋ͷ͸ɺPDFͷࠩ෼Λແࢹ͢Δ ! iOSͷϦϙδτϦଆ΁͸PDFͷΈPRΛૹΔ ◦ σβΠϯͷϦϙδτϦʹ͸SVG͝ͱPRʹؚΊΔ 17

  18. ϓϩδΣΫτ΁ͷ૊ΈࠐΈͱϋϚΓͲ͜Ζ 18

  19. ϑΝΠϧͷ੔ཧ 19 ! ࣗಈԽ͢ΔλΠϛϯάͰ੔͍͑ͨ͋Δ͋Δ ◦ ໋໊نଇΛҰఆʹἧ͑௚͍ͨ͠ཉ ◦ XcodeͷAssetsʹొ࿥͢Δ࣌ʹ໊લม͑ͯ͠·ͬͨ΍ͭ ◦ etc…

    ! มߋͷରরදΛ࡞ΓɺProject಺ͰҰׅஔ׵(sedͳͲͰ) ◦ جຊతʹProject಺Ͱ͸Assets͸໊લͰࢀর͞Ε͍ͯΔͷͰɺจࣈྻஔ׵Ͱ͍͚Δ ! ͱ͸͍͑ɺAssetsதΛ͝Γͬͱ੔ཧɾ֬ೝ͢Δ೔Λ͖ͪΜͱΔ΂͖ ! ͔ͭɺͦͷͨΊ͚ͩʹϦϦʔεΛ͢Δ ◦ ଞͷϒϥϯνͱࠞ͟ΔͱࠞཚΛੜΉ
  20. TravisͷλΠϛϯά 20 ! ʮϦϙδτϦ΁ͷPRΛग़͢ʯͱ͍͏ॲཧ͕͋Δ͜ͱΛ೦಄ʹ͓͍͓ͯ͘ ◦ PRΛτϦΨʔʹ͍ͯ͠Δͱɺ༨ܭͳBuild͕૸Γ͕ͪ ! ಛʹPRτϦΨʔͷϏϧυ͸masterͰ૸ΔͷͰɺSketchͷ͋ΔϦϙδτϦଆ Ͱ॥؀Ϗϧυ͕૸ͬͯ͠·͏ɻ ◦

    masterҎ֎ͷbranchʹ͢Δ͔ɺ`Build pull request updates` Λ੾Δ
  21. ·ͱΊ ! Be Professional WeekͰAssetsͷࣗಈڞ༗ͷ࢓૊ΈΛ࡞ͬͨΑ ! SketchͷPDFॻ͖ग़͠͸ৗʹࠩ෼͕ग़ΔͷͰSVGΛ׆༻ͯ͠ςΩετࠩ෼Ͱ ΈΔͱ͍͍Α ! ϓϩδΣΫτ΁ͷ૊ΈࠐΈλΠϛϯά͸஫ҙͯ͠ɺϦϦʔε·ͰܾΊͯ͠·

    ͏ͱ͍͍Α 21
  22. ͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠ 22