リリース前に知りたいネイティブのあれこれ

C951afc0782b7d3d4800e25b4a4938a9?s=47 Yudai Shinnoki
September 13, 2018
740

 リリース前に知りたいネイティブのあれこれ

C951afc0782b7d3d4800e25b4a4938a9?s=128

Yudai Shinnoki

September 13, 2018
Tweet

Transcript

  1. ϦϦʔεલʹ஌Γ͍ͨ ωΠςΟϒͷ͋Ε͜Ε  3FBDU/BUJWF.FFUVQ :VEBJ4IJOOPLJ

  2. :VEBJ4IJOOPLJ ϓϩϑΟʔϧ FJTIJT *OD 3FBDU/BUJWF 'JSFCBTF ʜ ɹɹɹࣗࣾΞϓϦ ϑϦʔϥϯε 1)1

    -BSBWFM J04 "OESPJE ʜ 5XJUUFS!LPOPLJ@OBOOPLJ (JU)VC!TIJOOPLJ ٕज़ϒϩά CBHFMFF μΠΤοτΞϓϦ ΏΔͬ΀Δ
  3. ͸͡Ίʹ ൃදͷλʔήοτ  গਓ਺ϓϩδΣΫτͰɺωΠςΟϒ΋ؤுΒͳ͚Ε͹
 ͍͚ͳ͍3FBDUΤϯδχΞ  ϦϦʔεʹ޲͚ͯ։ൃதͷελʔτΞοϓ  ωΠςΟϒग़਎ͷਓʹ͸෺଍Γͳ͍಺༰͔΋ ࠓճͷൃදͰ͸&YQP͸࢖͍·ͤΜ

     ͨͩ͠ࠓޙ͸3FBDU/BUJWFͰ೔ຊޠόά͕मਖ਼͞Εɺ
 SFBDUOBUJWFpSFCBTFͷόϯυϧ༧ఆͰҰؾʹศརʹͳΓͦ͏
  4.  JPTɺBOESPJEσΟϨΫτϦͱ
 ஥ྑ͘ͳΖ͏  ͙͢ʹ࢖͑ΔςΫχοΫ  QSPKFDUQCYQSPKͰࠩ෼Λग़͞ͳ͍ͨΊʹ  #VJME4FUUJOHT #VJME7BSJBOUΛ


    ͔ͭͬͯΈΑ͏  #VJME4FUUJOHT #VJME7BSJBOUͱ͸  ΞϓϦ໊΍ΞΠίϯΛ੾Γସ͑ͯΈΑ͏  ࣮ࡍʹϦδΣΫτ͞Εͨྫ ໨࣍
  5. JPTɺBOESPJEσΟϨΫτϦͱ ஥ྑ͘ͳΖ͏

  6. 9DPEFɺ"OESPJE4UVEJPΛλʔϛφϧ͔Β։͘ 9DPEF $ open ios/<ϓϩδΣΫτ໊>.xcodeproj $ open ios/<ϓϩδΣΫτ໊>.xcworkspace $ studio

    android ௨ৗ $PDPB1PET࢖༻࣌ "OESPJE4UVEJP $SFBUF$PNNBOEMJOF-BVODIFSΛ ࣮ߦ͢Δ͜ͱͰίϚϯυ͕ొ࿥͞ΕΔ
  7. JPTɺBOESPJEσΟϨΫτϦͷ৺ಘ  HJUDPNNJU࣌ʹࠩ෼ʹ஫ҙ͢Δ  ͱ͘ʹQSPKFDUQCYQSPK͸ίϯϑϦΫτ͠΍͘͢ɺղফ͕໘౗  SFBDUOBUJWFHJUVQHSBEFΛ࢖͏ͱ͖΋
 ࠩ෼͕ଟ͍ͱେมʹͳΔ  SFBDUOBUJWFFKFDU͔Β࠶ݱͰ͖Δঢ়ଶ͕ཧ૝

     ઌ೔ൃച͞Εͨ
 ʮ3FBDU/BUJWF &YQPͰ͸͡ΊΔεϚϗΞϓϦ։ൃʯ
 Ͱ஌ͬͨ Ͱ͖Δ͚ͩࠩ෼͸ग़ͨ͘͠ͳ͍ʂ
  8. QSPKFDUQCYQSPKͰࠩ෼Λग़͞ͳ͍ͨΊʹ  9DPEF্ͰඞཁҎ্ʹϑΝΠϧΛҠಈ͠ͳ͍  ϑΝΠϧͷදࣔॱͳͲ΋QSPKFDUQCYQSPKʹ
 อଘ͞ΕΔͨΊɺҠಈ͢Δ͚ͩͰࠩ෼͕ग़Δ  UW04͸ফͨ͘͠ͳΔ͕ফ͞ͳ͍΄͏͕ແ೉ʁ  $PDPB1PETΛ࢖͍ͬͯΔ৔߹ɺͰ͖Δ͔͗Γ1PEpMFͰMJOL͢Δ

     MJOL͕ඞཁͳϥΠϒϥϦ͸͍͍ͩͨQPETQFDΛೖΕͯ͘Ε͍ͯΔ  ͨͩ͜͠Ε΋ҋ͕ਂ͍ʢ࣍ϖʔδͰઆ໌ʣ
  9. EFQFOEFODZb3FBDU`ͷҋ IUUQTGBDFCPPLHJUIVCJPSFBDUOBUJWFEPDTJOUFHSBUJPOXJUIFYJTUJOH BQQTDPOpHVSJOHDPDPBQPETEFQFOEFODJFT `3FBDU`ΛOPEF@NPEVMFT͔Β௥Ճ దٓඞཁͳTVCTQFDΛ௥Ճ͍ͯ͘͠ ґଘؔ܎͔Β`3FBDU`Λ࡟আ

  10. #VJME4FUUJOHT J04  #VJME7BSJBOU "OESPJE  Λ࢖ͬͯΈΑ͏

  11. Ϗϧυม਺ͷઃఆํ๏ൺֱ SFBDUOBUJWFEPUFOW SFBDUOBUJWFDPOpH #VJME4FUUJOHT J04  #VJME7BSJBOU "OESPJE +BWB4DSJQU ωΠςΟϒ

    ϝϦοτ σϝϦοτ #BCFMͷϓϥάΠϯͱͯ͠ ม਺ΛΠϯδΣΫτ  QBDLBHFKTPOʹ௥Ճ ͢Δ͚ͩͰ͍͍  ࠶ϏϧυෆཁͰ͙͢ ʹ൓өͰ͖Δ  ωΠςΟϒ͔Β͸ม ਺Λ࢖͑ͳ͍ σϝϦοτ  ൓ө͢ΔͷʹωΠςΟϒ ͷ࠶Ϗϧυ͕ඞཁ σϝϦοτ  J04ͱ"OESPJEͰͦΕͧΕ ઃఆ͢Δඞཁ͕͋Δ ϝϦοτ  ΞϓϦ໊΍ΞΠίϯͳͲ ΋੾Γସ͑ΒΕΔ  'JSFCBTFͷ؀ڥ੾Γସ ͑ʹ͸ඞਢʁ ωΠςΟϒͷιʔεʹ ม׵͠+4ʹϒϦοδ ϓϥοτϑΥʔϜଆͰ Ϗϧυ࣌ʹॲཧ ϝϦοτ  ωΠςΟϒ͔Β΋ม਺ Λ࢖͏͜ͱ͕Ͱ͖Δ
  12. #VJME4FUUJOHT J04 ͷ։͖ํ

  13. 6TFS%FpOFE4FUUJOHͷ௥Ճ  #6/%-&@*%&/5*'*&3@46''*9  #6/%-&@/".&@13&'*9 Λ௥Ճͯ͠ɺ%FCVHͷΈઃఆΛ௥Ճ

  14. #VOEMF*EFOUJpFSͷ੾Γସ͑  1SPEVDU#VOEMF*EFOUJpFSΛฤू  #6/%-&@*%&/5*'*&3@46''*9 ͱॻ͘ͱ
 6TFS%FpOFE4FUUJOH͕ల։͞ΕΔʂ

  15. ΞϓϦ໊ɺΞΠίϯͷ੾Γସ͑ J04  ΞϓϦ໊͸*OGPQMJTU಺Ͱઃఆ  ΞΠίϯ͸"TTFU$BUBMPH"QQ*DPO4FU/BNFͰઃఆ

  16.  %FCVHͱ3FMFBTF͕ผʑʹදࣔ͞ΕΔʂ  ࣮ࡍͷӡ༻Ͱ͸'JSFCBTFͷϓϩδΣΫτ΋
 %FCVHͱ3FMFBTFͰ੾Γସ͍͑ͯΔ ୺຤্Ͱͷදࣔ

  17. ิ଍%FCVHͷઃఆͰ3FMFBTFϏϧυ͍ͨ͠  %FCVH 3FMFBTFҎ֎ͷ#VJME$POpHVSBUJPOΛ
 ௥Ճ͢Δඞཁ͕͋Δʢ࣌ؒͷ౎߹্ׂѪʣ  3FBDU/BUJWF9DPEFϓϩδΣΫτʹTUBHJOHQSPEVDUJPOϏϧυ༻ઃఆΛ௥ Ճ͢Δ2JJUB
 IUUQTRJJUBDPNKBOVT@XFMJUFNTFGCEGD 

    %J⒎FSFOUJ04CVJMEDPOpHVSBUJPOTUIBO%FCVHBOE3FMFBTFJO3FBDU /BUJWFc#SJHIU*OWFOUJPOT
 IUUQTCSJHIUJOWFOUJPOTQMCMPHSFBDUOBUJWFDVTUPNJPTCVJME DPOpHVSBUJPOT
  18. #VJME7BSJBOU "OESPJE EFCVH SFMFBTF debug release #VJME5ZQF 1SPEVDU'MBWPS #VJME7BSJBOU 

    º  #VJME5ZQFͷσϑΥϧτ͸EFCVHɺSFMFBTF  1SPEVDU'MBWPS͸σϑΥϧτͰઃఆͳ͠ 1PJOU
  19. #VJME7BSJBOU "OESPJE EFCVH SFMFBTF debug release EFCVH SFMFBTF EFWFMPQ developDebug

    developRelease QSPEVD UJPO productionDebug productionRelease EFWFMPQɺQSPEVDUJPOͱ͍͏ ໊લͰ1SPEVDU'MBWPSΛ௥Ճ #VJME5ZQF 1SPEVDU'MBWPS #VJME7BSJBOU  º  #VJME5ZQFͷσϑΥϧτ͸EFCVHɺSFMFBTF  1SPEVDU'MBWPS͸σϑΥϧτͰઃఆͳ͠ 1PJOU
  20. 1SPEVDU'MBWPSͷઃఆํ๏ BQQCVJMEHSBEMFʹઃఆΛ௥Ճʂ EFWFMPQ'MBWPSͷͱ͖ͷΈ BQQMJDBUJPO*EͷޙΖʹ EFWΛ͚ͭΔઃఆ

  21. ΞϓϦ໊ɺΞΠίϯͷ੾Γସ͑ "OESPJE EFWFMPQ'MBWPSͷͱ͖ͷΈ TSDNBJOʹϚʔδ͞ΕΔ  TUSJOHTYNMΛ্ॻ͖ͯ͠
 ΞϓϦ໊ͷ੾Γସ͕͑Մೳ  JD@MBVODIFSQOHΛ্ॻ͖ͯ͠
 ΞΠίϯͷ੾Γସ͕͑Մೳ

     HPPHMFTFSWJDFKTPO͸
 ֊૚͕ҧ͏͕ಡΈʹߦͬͯ͘ΕΔ
  22. ิ଍SFBDUOBUJWFSVOBOESPJE  1SPEVDU'MBWPS BQQMJDBUJPO*E4V⒏YΛઃఆ͢Δͱ
 SFBDUOBUJWFSVOBOESPJE͕͏·͘ಈ͔ͳ͘ͳΔ  ҎԼͷΑ͏ʹWBSJBOUͱBQQ*E4V⒏YΛࢦఆ͢Δඞཁ͕͋Δ  QBDLBHFKTPOͷTDSJQUʹొ࿥͓͍ͯͯ͠
 ZBSOBOESPJEͰ࣮ߦͰ͖ΔΑ͏ʹ͓ͯ͘͠ͱָ

     SODMJDPOpHKTͰ΋ઃఆͰ͖ͦ͏ʢະ֬ೝʣ $ react-native run-android \ --variant=developDebug \ —-appIdSuffix=dev
  23. ࣮ࡍʹϦδΣΫτ͞Εͨྫ

  24. ࣮ࡍʹϦδΣΫτ͞Εͨྫ  λʔήοτΛJ1IPOFʹͨ͠ͷʹJ1BEͰϦδΣΫτΛ͘Βͬͨ  J1BEʹ͸J1IPOFઐ༻ͷΞϓϦͰ΋ແཧ΍Γදࣔ͢ΔϞʔυ͕͋Γɺ
 ༨ܭʹσβΠϯ่͕ΕΔՄೳੑ͕͋Δ  J1BEͷσβΠϯ͸ଟগద౰Ͱ΋ɺ࠷ॳ͔Β6OJWFSTBMͰ։ൃͨ͠΄͏͕͍͍  SFBDUOBUJWFQFSNJTTJPOTΛMJOLͨ͠

     ࣮ࡍʹ͸࢖Θͳ͍ύʔϛογϣϯͰ΋ίʔυ෼ੳͰͻ͔͔ͬΔ  QMJTU಺ʹ͢΂ͯͷ6TBHF%FTDSJQUJPOΛهड़͓ͯ͘͠ඞཁ͕͋Δ  7P*1 SFBDUOBUJWFQKTJQ Λ࢖ͬͨΒ৹͕ࠪݫ͔ͬͨ͠
  25. ϑϩϯτΤϯυΛ
 ۃΊ͍ͨΤϯδχΞ FJTIJTͰ͸
 ΤϯδχΞΛ ืू͍ͯ͠·͢ʂʂ ৽͍ٕ͠ज़ʹ௅ઓ͍ͨ͠
 αʔόʔαΠυΤϯδχΞ 8FC73 "3ΤϯδχΞ

  26. &OKPZ3FBDU/BUJWF