|
|
|
@ -18,9 +18,16 @@ default_platform(:ios)
|
|
|
|
|
platform :ios do
|
|
|
|
|
desc "Push a new beta build to TestFlight"
|
|
|
|
|
lane :beta do
|
|
|
|
|
increment_build_number(xcodeproj: "Runner.xcodeproj")
|
|
|
|
|
build_app(workspace: "Runner.xcworkspace", scheme: "Runner")
|
|
|
|
|
upload_to_testflight
|
|
|
|
|
increment_build_number(
|
|
|
|
|
xcodeproj: "Runner.xcodeproj",
|
|
|
|
|
build_number: latest_testflight_build_number + 1
|
|
|
|
|
)
|
|
|
|
|
re = /version:\s([0-9]*\.[0-9]*\.[0-9]*)\+[0-9]*/i
|
|
|
|
|
config = File.read("../../pubspec.yaml")
|
|
|
|
|
version_name = config.match(re).captures[0]
|
|
|
|
|
increment_version_number(version_number: version_name)
|
|
|
|
|
#build_app(workspace: "Runner.xcworkspace", scheme: "Runner")
|
|
|
|
|
#upload_to_testflight
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|