2019-03-25 15:43:55 +00:00
|
|
|
ENV["FASTLANE_SKIP_UPDATE_CHECK"] = "1"
|
|
|
|
opt_out_usage
|
|
|
|
|
2019-01-15 13:31:59 +00:00
|
|
|
default_platform(:ios)
|
|
|
|
|
|
|
|
platform :ios do
|
|
|
|
desc "Push a new beta build to TestFlight"
|
2019-03-25 15:43:55 +00:00
|
|
|
lane :deploy do
|
2019-03-25 15:49:49 +00:00
|
|
|
# Make sure we are on a clean tree
|
|
|
|
ensure_git_status_clean
|
|
|
|
|
2019-01-15 13:31:59 +00:00
|
|
|
# Set the app identifier
|
|
|
|
update_app_identifier(
|
|
|
|
xcodeproj: "app/app.xcodeproj",
|
|
|
|
plist_path: "src/Info.plist",
|
|
|
|
app_identifier: "com.atlassian.JitsiMeet.ios"
|
|
|
|
)
|
|
|
|
|
|
|
|
# Inrement the build number by 1
|
|
|
|
increment_build_number(
|
|
|
|
build_number: latest_testflight_build_number + 1,
|
|
|
|
xcodeproj: "app/app.xcodeproj"
|
|
|
|
)
|
|
|
|
|
|
|
|
# Actually build the app
|
|
|
|
build_app(scheme: "jitsi-meet", include_bitcode: false)
|
|
|
|
|
|
|
|
# Upload the build to TestFlight (but don't distribute it)
|
|
|
|
upload_to_testflight(skip_submission: true, skip_waiting_for_build_processing: true)
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
clean_build_artifacts
|
2019-03-25 15:49:49 +00:00
|
|
|
reset_git_repo(skip_clean: true)
|
2019-01-15 13:31:59 +00:00
|
|
|
end
|
|
|
|
end
|