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

iOS が fastlane なら Android も fastlane に乗ってみては?

iOS が fastlane なら Android も fastlane に乗ってみては?

potatotips #39 (iOS/Android開発Tips共有会) - connpass https://potatotips.connpass.com/event/51176/

classi/fastlane-example: fastlane example by Classi Corp. https://github.com/classi/fastlane-example

71ce746e94f84be1cef8e57e8277bd6d?s=128

star__hoshi

April 13, 2017
Tweet

Transcript

  1. iOS ͕ fastlane ͳΒ Android ΋ fastlane ʹ৐ͬͯΈͯ͸ʁ potatotips #39

  2. ࣗݾ঺հ • Twitter: @star__hoshi • GitHub: starhoshi • Classiגࣜձࣾ •

    iOS ΤϯδχΞ
  3. iOS Ͱ ܧଓతσϦόϦʔΛ ΍Δʹ͸ʁ

  4. Ͱ͢ΑͶ

  5. fastlane Ͱग़དྷΔ͜ͱ(ۃҰ෦) • Apple ͷূ໌ॻ؅ཧ΍ iTunes Connect, Google Play ΁ͷఏग़ͳͲ໘౗ͳ࡞ۀΛࣗಈԽ

    • beta ൛ͷ഑෍ɺ versionCode ͷߋ৽ͳͲ΋ • ਓ͕ؒ΍ͬͯͨࡶ຿ΛࣗಈԽͰ͖Δ • ܧଓతσϦόϦʔʹඞཁͳπʔϧ͕ἧ͍ͬͯΔ
  6. Ͱ΋ Gradle Ͱ ͍͍Μ͡Όͳ͍ͷʁ

  7. Gradle Ͱ΋ग़དྷΔ͕ fastlane Ͱ΋ग़དྷΔ

  8. https://krausefx.com/blog/fastlane-is-joining-google

  9. lane Λ૊ΜͰ͍͘

  10. android Ͱ beta ൛ͷ഑෍ lane :beta do increment_version_code( version_code: Time.now.to_i)

    # => 1491161431 gradle(task: ‘assemble’, flavor: ‘staging’, build_type: ‘debug’) crashlytics(api_token: token, build_secret: secret) slack(message: “Success!”) end
  11. iOS Ͱ beta ൛ͷ഑෍ lane :beta do match(type: "development") increment_build_number(

    build_number: Time.now.strftime("%Y%m%d%H%M")) gym crashlytics(api_token: token, build_secret: secret) slack(message: “Success!”) end
  12. ͍͍ͩͨҰॹͰ͸ʁ

  13. android Ͱ Google Play ఏग़ lane :release do increment_version_code( version_code:

    Time.now.to_i) # => 1491161431 gradle(task: ‘assemble’, flavor: ‘product’, build_type: ‘release’) supply(track: ‘beta’) slack(message: “Success!”) end
  14. iOS Ͱ iTunes Connect ఏग़ lane :release do match(type: "appstore")

    increment_build_number( build_number: Time.now.strftime("%Y%m%d%H%M")) gym deliver slack(message: “Success!”) end
  15. ͍͍ͩͨҰॹʂ

  16. ϝϦοτ • iOS Ͱͷࢿ࢈͕࢖͑Δ • ࢲ͸ iOS ΤϯδχΞͰ Android ͸શવΘ͔Βͳ͍

    • Ͱ΋ fastlane͸Θ͔Δ • Ͳͷ task Λ࣮ߦ͢Δ͔͚ͩ Android ͷਓʹฉ͍ͨ • 2 ͭͷ lane Λ૊Ήͷʹ൒೔͘Β͍Ͱग़དྷͨ
  17. σϝϦοτ • fastlane ॳΊͯͷਓ͸ֶशίετ͋Γ • gradle ͚ͩͰ׬݁͠ͳ͍ • Ruby ΛೖΕͯ

    bundle install ͳͲ͕ඞཁ • iOS ΄Ͳ Action ͷ Plugin ͕ॆ࣮ͯ͠ͳ͍ • ࣗ෼ͷ৔߹͸༗Γ΋ͷͰ໰୊ͳ͔ͬͨ
  18. iOS Ͱ fastlane ΍ͬͯΔͳΒ ͓ޓ͍ڠྗͯ͠ Android ΋ fastlane ʹ ৐ΔͷΦεεϝ!

  19. iOS / Android ͷ fastlane ؔ࿈ϑΝΠϧΛެ։͍ͯ͠·͢ https://github.com/classi/fastlane-example

  20. ͓ΘΓ