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"
|
|
|
|
)
|
|
|
|
|
2021-03-05 16:59:56 +00:00
|
|
|
# Set the broadcast extension identifier
|
|
|
|
update_app_identifier(
|
|
|
|
xcodeproj: "app/app.xcodeproj",
|
|
|
|
plist_path: "JitsiMeetBroadcast Extension/Info.plist",
|
|
|
|
app_identifier: "com.atlassian.JitsiMeet.ios.broadcast"
|
|
|
|
)
|
|
|
|
|
2019-05-02 16:12:12 +00:00
|
|
|
# Set the (watch) app identifier
|
|
|
|
update_app_identifier(
|
|
|
|
xcodeproj: "app/app.xcodeproj",
|
|
|
|
plist_path: "watchos/app/Info.plist",
|
|
|
|
app_identifier: "com.atlassian.JitsiMeet.ios.watchkit"
|
|
|
|
)
|
|
|
|
|
|
|
|
# Set the (watch) extension identifier
|
|
|
|
update_app_identifier(
|
|
|
|
xcodeproj: "app/app.xcodeproj",
|
|
|
|
plist_path: "watchos/extension/Info.plist",
|
|
|
|
app_identifier: "com.atlassian.JitsiMeet.ios.watchkit.extension"
|
|
|
|
)
|
|
|
|
|
|
|
|
update_info_plist(
|
|
|
|
xcodeproj: "app/app.xcodeproj",
|
|
|
|
plist_path: "watchos/app/Info.plist",
|
|
|
|
block: proc do |plist|
|
|
|
|
plist["WKCompanionAppBundleIdentifier"] = "com.atlassian.JitsiMeet.ios"
|
|
|
|
end
|
|
|
|
)
|
|
|
|
|
|
|
|
update_info_plist(
|
|
|
|
xcodeproj: "app/app.xcodeproj",
|
|
|
|
plist_path: "watchos/extension/Info.plist",
|
|
|
|
block: proc do |plist|
|
|
|
|
plist["NSExtension"]["NSExtensionAttributes"]["WKAppBundleIdentifier"] = "com.atlassian.JitsiMeet.ios.watchkit"
|
|
|
|
end
|
|
|
|
)
|
|
|
|
|
2019-01-15 13:31:59 +00:00
|
|
|
# Inrement the build number by 1
|
|
|
|
increment_build_number(
|
|
|
|
build_number: latest_testflight_build_number + 1,
|
|
|
|
xcodeproj: "app/app.xcodeproj"
|
|
|
|
)
|
|
|
|
|
|
|
|
# Actually build the app
|
2019-03-29 12:26:17 +00:00
|
|
|
build_app(
|
2020-12-22 12:54:49 +00:00
|
|
|
scheme: "JitsiMeet",
|
2019-05-03 13:44:05 +00:00
|
|
|
include_bitcode: true,
|
2019-04-16 10:10:24 +00:00
|
|
|
include_symbols: true,
|
2019-03-29 12:26:17 +00:00
|
|
|
export_xcargs: "-allowProvisioningUpdates"
|
|
|
|
)
|
2019-01-15 13:31:59 +00:00
|
|
|
|
|
|
|
# Upload the build to TestFlight (but don't distribute it)
|
2019-11-12 14:04:13 +00:00
|
|
|
upload_to_testflight(
|
2019-11-14 14:44:03 +00:00
|
|
|
beta_app_description: ENV["JITSI_CHANGELOG"],
|
|
|
|
beta_app_feedback_email: ENV["JITSI_REVIEW_EMAIL"],
|
|
|
|
beta_app_review_info: {
|
|
|
|
contact_email: ENV["JITSI_REVIEW_EMAIL"],
|
2020-04-23 09:34:31 +00:00
|
|
|
contact_first_name: ENV["JITSI_REVIEW_NAME"],
|
|
|
|
contact_last_name: ENV["JITSI_REVIEW_SURNAME"],
|
|
|
|
contact_phone: ENV["JITSI_REVIEW_PHONE"],
|
2019-11-14 14:44:03 +00:00
|
|
|
demo_account_name: ENV["JITSI_DEMO_ACCOUNT"],
|
|
|
|
demo_account_password: ENV["JITSI_DEMO_PASSWORD"],
|
|
|
|
},
|
2019-11-12 16:11:04 +00:00
|
|
|
changelog: ENV["JITSI_CHANGELOG"],
|
2019-11-14 14:44:03 +00:00
|
|
|
demo_account_required: false,
|
2019-11-12 14:04:13 +00:00
|
|
|
distribute_external: true,
|
2019-11-14 17:17:56 +00:00
|
|
|
groups: ENV["JITSI_BETA_TESTING_GROUPS"],
|
2019-11-14 14:58:39 +00:00
|
|
|
reject_build_waiting_for_review: true,
|
2019-11-14 14:44:03 +00:00
|
|
|
uses_non_exempt_encryption: false
|
|
|
|
)
|
2019-01-15 13:31:59 +00:00
|
|
|
|
2020-07-21 11:14:37 +00:00
|
|
|
# Upload dSYMs to Crashlytics
|
|
|
|
download_dsyms
|
|
|
|
upload_symbols_to_crashlytics
|
|
|
|
|
2019-01-15 13:31:59 +00:00
|
|
|
# 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
|