AndroidでもFastlaneやっていきたい

 AndroidでもFastlaneやっていきたい

90ec81078e4fd2b905f8ef0776887afa?s=128

Ryo Sakaguchi

August 22, 2017
Tweet

Transcript

  1. AndroidͰ΋Fastlane ΍͍͖͍ͬͯͨ @fastlaneษڧձ vol4 2017/08/22 by wakwak3125

  2. ͜Μʹͪ͸ • Wantedlyͱ͍͏ձࣾͰಇ͍͍ͯ·͢ • ࠷ۙ͸Wantedly Peopleͱ͍͏໊ࢗ؅ཧΞϓ ϦΛ࡞͍ͬͯ·͢ • CIͱ͔ͦͷล͕େ޷͖Ͱ͢ •

    Twitter/GitHub → @wakwak3125 • Θ͘Θ͘͞ΜͬͯΑ͹ΕͯͨΓ͠·͢
  3. None
  4. • ػցֶशͰ໊ࢗͷ಺༰Λଈ࣌σʔλԽ • ྦྷܭ2000ສຕͷ໊͕ࢗεΩϟϯ͞Ε͍ͯΔ • ಡΈऔ໊ͬͨࢗʹؔ࿈͢Δ࿩୊͕ಡΊΔ

  5. ͳΜ͔ͦ͢͝͏ʂ

  6. ࠓ೔࿩͍ͨ͜͠ͱ • AndroidͰ΋fastlane΍͍͖͍ͬͯͨʂ • AndroidͰ΋࢖ͬͨΒศརͩͬͨʂ • ͜Μͳ࢖͍ํ͖ͯͨ͠ʂ • ࠓޙ͜Μͳ෩ʹ΋࢖͍͖͍ͬͯͨʂ

  7. fastlane for Android

  8. supply & screengrab

  9. supply • Google Play΁ΞϓϦͷΞοϓϩʔυ • εΫϦʔϯγϣοτͷߋ৽ • Long/Short Descriptionͷߋ৽

  10. screengrab • ϩʔΧϥΠζ͞ΕͨΞϓϦͷεΫϦʔϯγϣο τΛόγόγࡱͬͯ͘ΕΔʂ • ࢓૊Έ͸UIςετΛ࣮ߦͯ͠ɺͦͷը໘Λ ࡱ͍ͬͯ͘ײ͡ • Espresso/UIAutomatorͲͬͪ΋ΠέΔ

  11. ๻Βʹ͸Gradle͕͋Δ ͡Όͳ͍͔ʂʂʂ

  12. fastlane is part of fabric

  13. fabric is part of Google

  14. ࢖Θͳ͍ख͸ͳ͍ʂ

  15. ΊͬͪΌ޾ͤͩͬͨʂ

  16. Կ͕޾͔ͤͩͬͨ • ෳ਺apkͷΞοϓϩʔυ͕ࣗಈԽͰ͖ͯ޾ͤ ͩͬͨ • εΫϦʔϯγϣοτͷΞοϓϩʔυ(100ຕ͘ Β͍)͕ࣗಈԽͰ͖ͯ޾ͤͩͬͨ • ChangeLogΛ޷͖ͳΤσΟλͰ͔͚ΔͷͰ ޾ͤͩͬͨ

  17. ෳ਺apkͷΞοϓϩʔυ • ετΞ/ΞϓϦͱ΋ʹଟݴޠରԠΛ͍ͯͨ͠ • εΫϦʔϯγϣοτΛݴޠ͝ͱʹ༻ҙͯ͠Ξο ϓϩʔυ͔ͨͬͨ͠ • ͕͢͞ʹखಈͰ΍Δͷ͸͖ͭ͗ͨ͢…

  18. fastlane supply run -p com.example.awsomeapp

  19. fastlane supply run -p com.example.awsomeapp \ -a alpha \

  20. fastlane supply run -p com.example.awsomeapp \ -a alpha \ -j

    ./app/signingConfigs/json_key.json \
  21. fastlane supply run -p com.example.awsomeapp \ -a alpha \ -j

    ./app/signingConfigs/json_key.json \ -u \ "./app/build/outputs/apk/app-production-arm64-v8a-release.apk",\ "./app/build/outputs/apk/app-production-armeabi-release.apk",\ "./app/build/outputs/apk/app-production-armeabi-v7a-release.apk",\ "./app/build/outputs/apk/app-production-mips-release.apk",\ "./app/build/outputs/apk/app-production-x86-release.apk",\ "./app/build/outputs/apk/app-production-x86_64-release.apk" \
  22. εΫϦʔϯγϣοτͷΞοϓϩʔυ • Google PlayʹଟݴޠରԠͨ͠εΫϦʔϯ γϣοτΛΞοϓϩʔυ͔ͨͬͨ͠ • ຋༁ࣗମ͸Gengoʹ͓ئ͍ͨ͠(௒ૣ͍) • ͍͍ͩͨ100ຕ͘Β͍ʹͳ͍ͬͯͨ •

    ख࡞ۀͱ͔ŵŧƄŹŏŷž….
  23. metadata ᵓᴷᴷ en-US ᴹ ᵓᴷᴷ changelogs ᴹ ᵓᴷᴷ full_description.txt ᴹ

    ᵓᴷᴷ images ᴹ ᴹ ᵓᴷᴷ icon.png ᴹ ᴹ ᵓᴷᴷ phoneScreenshots ᴹ ᴹ ᴹ ᵓᴷᴷ 1.png ᴹ ᴹ ᴹ ᵓᴷᴷ 2.png ᴹ ᴹ ᴹ ᵓᴷᴷ 3.png ᴹ ᴹ ᴹ ᵓᴷᴷ 4.png ᴹ ᴹ ᴹ ᵋᴷᴷ 5.png ᴹ ᴹ ᵓᴷᴷ sevenInchScreenshots ᴹ ᴹ ᵓᴷᴷ tenInchScreenshots ᴹ ᴹ ᵓᴷᴷ tvScreenshots ᴹ ᴹ ᵋᴷᴷ wearScreenshots
  24. metadata ᵓᴷᴷ en-US ᴹ ᵓᴷᴷ changelogs ᴹ ᵓᴷᴷ full_description.txt ᴹ

    ᵓᴷᴷ images ᴹ ᴹ ᵓᴷᴷ icon.png ᴹ ᴹ ᵓᴷᴷ phoneScreenshots ᴹ ᴹ ᴹ ᵓᴷᴷ 1.png ᴹ ᴹ ᴹ ᵓᴷᴷ 2.png ᴹ ᴹ ᴹ ᵓᴷᴷ 3.png ᴹ ᴹ ᴹ ᵓᴷᴷ 4.png ᴹ ᴹ ᴹ ᵋᴷᴷ 5.png ᴹ ᴹ ᵓᴷᴷ sevenInchScreenshots ᴹ ᴹ ᵓᴷᴷ tenInchScreenshots ᴹ ᴹ ᵓᴷᴷ tvScreenshots ᴹ ᴹ ᵋᴷᴷ wearScreenshots phoneScreenShotsʹද͍ࣔͨ͠ॱͰ໊લ Λ͚ͭͯ഑ஔͯ͠Ξοϓϩʔυ͢Ε͹OK
  25. ChangelogsͷΞοϓσʔτ • ଟݴޠରԠ, ෳ਺apkͰӡ༻͍ͯͨ͠ͷͰɺ changelogsͷߋ৽͚ͩͰ΋͹͔ʹͳΒͳ͍ ͘Β͍Թ͔Έ͕͋ͬͨɻ • ख࡞ۀͱ͔ŵŧƄŹŏŷž…. • Google

    Play ConsoleͷςΩετϘοΫε͕ ࢖͍ͮΒ͍
  26. metadata ᵓᴷᴷ en-US ᴹ ᵓᴷᴷ changelogs ᴹ ᴹ ᵓᴷᴷ 144000.txt

    ᴹ ᴹ ᵓᴷᴷ 244000.txt ᴹ ᴹ ᵓᴷᴷ 344000.txt ᴹ ᴹ ᵓᴷᴷ 444000.txt ᴹ ᴹ ᵓᴷᴷ 544000.txt ᴹ ᴹ ᵓᴷᴷ 645000.txt ᴹ ᵓᴷᴷ full_description.txt ᴹ ᵓᴷᴷ images ᴹ ᴹ ᵓᴷᴷ icon.png ᴹ ᴹ ᵓᴷᴷ phoneScreenshots ᴹ ᵓᴷᴷ short_description.txt ᴹ ᵓᴷᴷ title.txt
  27. metadata ᵓᴷᴷ en-US ᴹ ᵓᴷᴷ changelogs ᴹ ᴹ ᵓᴷᴷ 144000.txt

    ᴹ ᴹ ᵓᴷᴷ 244000.txt ᴹ ᴹ ᵓᴷᴷ 344000.txt ᴹ ᴹ ᵓᴷᴷ 444000.txt ᴹ ᴹ ᵓᴷᴷ 544000.txt ᴹ ᴹ ᵓᴷᴷ 645000.txt ᴹ ᵓᴷᴷ full_description.txt ᴹ ᵓᴷᴷ images ᴹ ᴹ ᵓᴷᴷ icon.png ᴹ ᴹ ᵓᴷᴷ phoneScreenshots ᴹ ᵓᴷᴷ short_description.txt ᴹ ᵓᴷᴷ title.txt changelogsʹΞϓϦͷόʔδϣϯίʔυ ͝ͱʹ௥Ճ͢Δ
  28. ChangelogsͷΞοϓσʔτϑϩʔ • ຋༁͸೔ӳͷΈͩͬͨͷͰɺಉ྅ͷΞϝϦΧ ਓʹ΍ͬͯ΋Β͍ͬͯͨɻ • ϑΝΠϧΛ༻ҙͯ͠ɺGitHub্Ͱ΍ΓͱΓ͠ ͯɺcommit/push·Ͱͯ͠΋Β͏ • ߋ৽͸ϦϦʔε࣌ͷΈରԠ͍ͯͨ͠

  29. metadata(ετΞܝࡌ৘ใ)ͷΈߋ৽ͨ͠ ͍࣌ɺͲ͏͍͔ͯͨ͠ • store/ ͱ͍͏prefixΛ͚ͭͨϒϥϯνΛ༻ҙ ͯ͠ɺͦ͜ʹcommit͍ͯ͘͠ • Ϛʔδ͞ΕͨΒɺmetadataͷΈΛߋ৽͢Δܗ ͰsupplyΛ࣮ߦ͢ΔΑ͏ʹCIΛઃఆ͍ͯͨ͠ •

    ྫ) store/update-screenshots
  30. ࠓޙ΍ͬͯΈ͍ͨ͜ͱ • Long/Short DescriptionΛόʔδϣϯ؅ཧ͠ ͯɺΞϓϦͷμ΢ϯϩʔυ཰ʹͲΕ͚ͩӨڹ Λ༩͔͑ͨͳͲͷݕূΛ΍ΕΔΑ͏ʹͯ͠Έ ͍ͨɻ • ্هΛGitHub্Ͱ΍ΓͱΓͰ͖ΔͷͰɺ๻ ୡΤϯδχΞʹͱͬͯ͸ͱͯ΋ॿ͔Δͱࢥ͏ɻ

  31. Thanks