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. iOS ͕ fastlane ͳΒ
    Android ΋ fastlane
    ʹ৐ͬͯΈͯ͸ʁ
    potatotips #39

    View Slide

  2. ࣗݾ঺հ
    • Twitter: @star__hoshi
    • GitHub: starhoshi
    • Classiגࣜձࣾ
    • iOS ΤϯδχΞ

    View Slide

  3. iOS Ͱ
    ܧଓతσϦόϦʔΛ
    ΍Δʹ͸ʁ

    View Slide

  4. Ͱ͢ΑͶ

    View Slide

  5. fastlane Ͱग़དྷΔ͜ͱ(ۃҰ෦)
    • Apple ͷূ໌ॻ؅ཧ΍ iTunes Connect,
    Google Play ΁ͷఏग़ͳͲ໘౗ͳ࡞ۀΛࣗಈԽ
    • beta ൛ͷ഑෍ɺ versionCode ͷߋ৽ͳͲ΋
    • ਓ͕ؒ΍ͬͯͨࡶ຿ΛࣗಈԽͰ͖Δ
    • ܧଓతσϦόϦʔʹඞཁͳπʔϧ͕ἧ͍ͬͯΔ

    View Slide

  6. Ͱ΋ Gradle Ͱ
    ͍͍Μ͡Όͳ͍ͷʁ

    View Slide

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

    View Slide

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

    View Slide

  9. lane Λ૊ΜͰ͍͘

    View Slide

  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

    View Slide

  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

    View Slide

  12. ͍͍ͩͨҰॹͰ͸ʁ

    View Slide

  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

    View Slide

  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

    View Slide

  15. ͍͍ͩͨҰॹʂ

    View Slide

  16. ϝϦοτ
    • iOS Ͱͷࢿ࢈͕࢖͑Δ
    • ࢲ͸ iOS ΤϯδχΞͰ Android ͸શવΘ͔Βͳ͍
    • Ͱ΋ fastlane͸Θ͔Δ
    • Ͳͷ task Λ࣮ߦ͢Δ͔͚ͩ Android ͷਓʹฉ͍ͨ
    • 2 ͭͷ lane Λ૊Ήͷʹ൒೔͘Β͍Ͱग़དྷͨ

    View Slide

  17. σϝϦοτ
    • fastlane ॳΊͯͷਓ͸ֶशίετ͋Γ
    • gradle ͚ͩͰ׬݁͠ͳ͍
    • Ruby ΛೖΕͯ bundle install ͳͲ͕ඞཁ
    • iOS ΄Ͳ Action ͷ Plugin ͕ॆ࣮ͯ͠ͳ͍
    • ࣗ෼ͷ৔߹͸༗Γ΋ͷͰ໰୊ͳ͔ͬͨ

    View Slide

  18. iOS Ͱ fastlane ΍ͬͯΔͳΒ
    ͓ޓ͍ڠྗͯ͠
    Android ΋ fastlane ʹ
    ৐ΔͷΦεεϝ!

    View Slide

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

    View Slide

  20. ͓ΘΓ

    View Slide