2019-03-25 16:43:55 +01:00
|
|
|
ENV["FASTLANE_SKIP_UPDATE_CHECK"] = "1"
|
|
|
|
|
opt_out_usage
|
|
|
|
|
|
2019-01-15 14:31:59 +01:00
|
|
|
default_platform(:ios)
|
|
|
|
|
|
|
|
|
|
platform :ios do
|
|
|
|
|
desc "Push a new beta build to TestFlight"
|
2019-03-25 16:43:55 +01:00
|
|
|
lane :deploy do
|
2019-03-25 16:49:49 +01:00
|
|
|
# Make sure we are on a clean tree
|
|
|
|
|
ensure_git_status_clean
|
|
|
|
|
|
2021-04-14 14:05:41 +02:00
|
|
|
# Connect to Apple Store Connect
|
2021-04-13 15:10:29 +02:00
|
|
|
app_store_connect_api_key(
|
|
|
|
|
key_id: ENV["ASC_KEY_ID"],
|
|
|
|
|
issuer_id: ENV["ASC_ISSUER_ID"],
|
|
|
|
|
key_content: ENV["ASC_KEY_CONTENT"],
|
|
|
|
|
duration: 1200,
|
|
|
|
|
in_house: false
|
|
|
|
|
)
|
|
|
|
|
|
2019-01-15 14:31:59 +01: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 17:59:56 +01:00
|
|
|
# Set the broadcast extension identifier
|
|
|
|
|
update_app_identifier(
|
|
|
|
|
xcodeproj: "app/app.xcodeproj",
|
2021-03-09 09:24:27 +01:00
|
|
|
plist_path: "broadcast-extension/Info.plist",
|
2021-03-05 17:59:56 +01:00
|
|
|
app_identifier: "com.atlassian.JitsiMeet.ios.broadcast"
|
|
|
|
|
)
|
2021-03-09 09:30:52 +01:00
|
|
|
update_info_plist(
|
|
|
|
|
xcodeproj: "app/app.xcodeproj",
|
|
|
|
|
plist_path: "src/Info.plist",
|
|
|
|
|
block: proc do |plist|
|
|
|
|
|
plist["RTCScreenSharingExtension"] = "com.atlassian.JitsiMeet.ios.broadcast"
|
|
|
|
|
end
|
|
|
|
|
)
|
2021-03-05 17:59:56 +01:00
|
|
|
|
2024-12-19 13:09:42 +00:00
|
|
|
# Increment the build number by 1
|
2019-01-15 14:31:59 +01:00
|
|
|
increment_build_number(
|
2022-03-17 14:00:06 +01:00
|
|
|
build_number: Time.now.to_i,
|
2019-01-15 14:31:59 +01:00
|
|
|
xcodeproj: "app/app.xcodeproj"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Actually build the app
|
2019-03-29 13:26:17 +01:00
|
|
|
build_app(
|
2020-12-22 13:54:49 +01:00
|
|
|
scheme: "JitsiMeet",
|
2019-04-16 12:10:24 +02:00
|
|
|
include_symbols: true,
|
2024-06-06 12:52:20 +02:00
|
|
|
export_xcargs: "-allowProvisioningUpdates",
|
|
|
|
|
xcodebuild_formatter: ""
|
2019-03-29 13:26:17 +01:00
|
|
|
)
|
2019-01-15 14:31:59 +01:00
|
|
|
|
2022-11-09 07:35:47 +01:00
|
|
|
# Upload the build to TestFlight
|
2019-11-12 15:04:13 +01:00
|
|
|
upload_to_testflight(
|
2019-11-14 15:44:03 +01: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 11:34:31 +02:00
|
|
|
contact_first_name: ENV["JITSI_REVIEW_NAME"],
|
|
|
|
|
contact_last_name: ENV["JITSI_REVIEW_SURNAME"],
|
|
|
|
|
contact_phone: ENV["JITSI_REVIEW_PHONE"],
|
2019-11-14 15:44:03 +01:00
|
|
|
demo_account_name: ENV["JITSI_DEMO_ACCOUNT"],
|
|
|
|
|
demo_account_password: ENV["JITSI_DEMO_PASSWORD"],
|
|
|
|
|
},
|
2019-11-12 17:11:04 +01:00
|
|
|
changelog: ENV["JITSI_CHANGELOG"],
|
2019-11-14 15:44:03 +01:00
|
|
|
demo_account_required: false,
|
2019-11-12 15:04:13 +01:00
|
|
|
distribute_external: true,
|
2019-11-14 18:17:56 +01:00
|
|
|
groups: ENV["JITSI_BETA_TESTING_GROUPS"],
|
2019-11-14 15:44:03 +01:00
|
|
|
uses_non_exempt_encryption: false
|
|
|
|
|
)
|
2019-01-15 14:31:59 +01:00
|
|
|
|
2022-11-09 07:35:47 +01:00
|
|
|
upload_symbols_to_crashlytics
|
|
|
|
|
|
2019-01-15 14:31:59 +01:00
|
|
|
# Cleanup
|
|
|
|
|
clean_build_artifacts
|
2019-03-25 16:49:49 +01:00
|
|
|
reset_git_repo(skip_clean: true)
|
2019-01-15 14:31:59 +01:00
|
|
|
end
|
|
|
|
|
end
|