Last active
August 11, 2019 08:22
-
-
Save katallaxie/024c6b8235fcac70b7fb15a8ed6b8e41 to your computer and use it in GitHub Desktop.
Fastfile for automatically change build number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains the fastlane.tools configuration | |
# You can find the documentation at https://docs.fastlane.tools | |
# | |
# For a list of all available actions, check out | |
# | |
# https://docs.fastlane.tools/actions | |
# | |
# For a list of all available plugins, check out | |
# | |
# https://docs.fastlane.tools/plugins/available-plugins | |
# | |
# Uncomment the line if you want fastlane to automatically update itself | |
# update_fastlane | |
default_platform(:ios) | |
platform :ios do | |
desc "Push a new beta build to TestFlight" | |
lane :beta do | |
build_number = number_of_commits() | |
Dir.chdir "../../" do | |
sh("flutter", "packages", "get") | |
sh("flutter", "clean") | |
sh("flutter", "build", "ios", "--build-number=#{build_number}") | |
end | |
build_app(workspace: "Runner.xcworkspace", scheme: "Runner") | |
upload_to_testflight | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment