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

star__hoshi

April 13, 2017
Tweet

More Decks by star__hoshi

Other Decks in Technology

Transcript

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

    • beta ൛ͷ഑෍ɺ versionCode ͷߋ৽ͳͲ΋ • ਓ͕ؒ΍ͬͯͨࡶ຿ΛࣗಈԽͰ͖Δ • ܧଓతσϦόϦʔʹඞཁͳπʔϧ͕ἧ͍ͬͯΔ
  2. 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
  3. 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
  4. 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
  5. 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
  6. ϝϦοτ • iOS Ͱͷࢿ࢈͕࢖͑Δ • ࢲ͸ iOS ΤϯδχΞͰ Android ͸શવΘ͔Βͳ͍

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

    bundle install ͳͲ͕ඞཁ • iOS ΄Ͳ Action ͷ Plugin ͕ॆ࣮ͯ͠ͳ͍ • ࣗ෼ͷ৔߹͸༗Γ΋ͷͰ໰୊ͳ͔ͬͨ