2017-11-06 23:45:48 +00:00
|
|
|
# Customize this file, documentation can be found here:
|
|
|
|
# https://docs.fastlane.tools/actions/
|
|
|
|
# All available actions: https://docs.fastlane.tools/actions
|
|
|
|
# can also be listed using the `fastlane actions` command
|
|
|
|
|
|
|
|
# Change the syntax highlighting to Ruby
|
|
|
|
# All lines starting with a # are ignored when running `fastlane`
|
|
|
|
|
|
|
|
# If you want to automatically update fastlane if a new version is available:
|
|
|
|
# update_fastlane
|
|
|
|
|
|
|
|
# This is the minimum version number required.
|
|
|
|
# Update this, if you use features of a newer version
|
|
|
|
fastlane_version "2.63.0"
|
|
|
|
|
|
|
|
default_platform :ios
|
|
|
|
|
|
|
|
platform :ios do
|
|
|
|
before_all do
|
2020-10-13 20:44:59 +00:00
|
|
|
setup_circle_ci
|
|
|
|
create_keychain(
|
|
|
|
name: ENV["MATCH_KEYCHAIN_NAME"],
|
|
|
|
password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
|
|
|
timeout: 1200
|
|
|
|
)
|
2017-11-06 23:45:48 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
desc "Submit a new Beta Build to Apple TestFlight"
|
2020-12-14 16:20:32 +00:00
|
|
|
lane :beta do |options|
|
2020-10-13 20:44:59 +00:00
|
|
|
api_key = app_store_connect_api_key(
|
|
|
|
key_id: "F296L2294Y",
|
|
|
|
issuer_id: "69a6de8e-75cf-47e3-e053-5b8c7c11a4d1",
|
|
|
|
key_filepath: 'fastlane/app_store_connect_api_key.p8',
|
|
|
|
in_house: false
|
|
|
|
)
|
2020-07-22 21:05:24 +00:00
|
|
|
pilot(
|
2020-12-14 16:20:32 +00:00
|
|
|
ipa: 'ios/Rocket.Chat.ipa',
|
|
|
|
app_identifier: options[:official] ? 'chat.rocket.ios' : 'chat.rocket.reactnative',
|
2020-07-22 21:05:24 +00:00
|
|
|
skip_waiting_for_build_processing: true
|
|
|
|
)
|
2020-12-14 16:20:32 +00:00
|
|
|
upload_symbols_to_crashlytics(dsym_path: "./ios/Rocket.Chat.app.dSYM.zip")
|
2017-11-06 23:45:48 +00:00
|
|
|
end
|
|
|
|
|
2020-12-14 16:20:32 +00:00
|
|
|
desc "Build Experimental app"
|
2017-11-06 23:45:48 +00:00
|
|
|
lane :release do
|
2020-10-13 20:44:59 +00:00
|
|
|
api_key = app_store_connect_api_key(
|
|
|
|
key_id: "F296L2294Y",
|
|
|
|
issuer_id: "69a6de8e-75cf-47e3-e053-5b8c7c11a4d1",
|
|
|
|
key_filepath: 'fastlane/app_store_connect_api_key.p8',
|
|
|
|
in_house: false
|
|
|
|
)
|
|
|
|
match(type: "appstore")
|
2019-07-18 21:15:49 +00:00
|
|
|
get_provisioning_profile(app_identifier: "chat.rocket.reactnative.ShareExtension")
|
2020-07-28 13:43:43 +00:00
|
|
|
get_provisioning_profile(app_identifier: "chat.rocket.reactnative.NotificationService")
|
2020-10-13 20:44:59 +00:00
|
|
|
# pem(api_key: api_key) # still uses Spaceship http://docs.fastlane.tools/actions/pem/#how-does-it-work
|
2020-12-14 16:20:32 +00:00
|
|
|
gym(
|
|
|
|
scheme: "RocketChatRN",
|
|
|
|
workspace: "RocketChatRN.xcworkspace",
|
|
|
|
output_name: "Rocket.Chat"
|
|
|
|
)
|
2017-11-06 23:45:48 +00:00
|
|
|
end
|
|
|
|
|
2020-10-15 13:43:12 +00:00
|
|
|
desc "Build fork app"
|
|
|
|
lane :build_fork do
|
|
|
|
gym(scheme: "RocketChatRN", workspace: "RocketChatRN.xcworkspace", skip_codesigning: true, skip_archive: true)
|
2018-01-10 02:35:31 +00:00
|
|
|
end
|
|
|
|
|
2020-12-14 16:20:32 +00:00
|
|
|
desc "Build Official app"
|
|
|
|
lane :build_official do
|
|
|
|
sh "../../scripts/prepare_ios_official.sh"
|
|
|
|
|
|
|
|
match(
|
|
|
|
type: "appstore",
|
|
|
|
app_identifier: ["chat.rocket.ios", "chat.rocket.ios.NotificationService", "chat.rocket.ios.Rocket-Chat-ShareExtension"],
|
|
|
|
readonly: true,
|
|
|
|
output_path: './'
|
|
|
|
)
|
|
|
|
|
|
|
|
update_project_provisioning(
|
|
|
|
xcodeproj: 'RocketChatRN.xcodeproj',
|
|
|
|
profile: "AppStore_chat.rocket.ios.NotificationService.mobileprovision",
|
|
|
|
target_filter: "NotificationService",
|
|
|
|
build_configuration: 'Release',
|
|
|
|
code_signing_identity: 'iPhone Distribution'
|
|
|
|
)
|
|
|
|
|
|
|
|
update_project_provisioning(
|
|
|
|
xcodeproj: 'RocketChatRN.xcodeproj',
|
|
|
|
profile: "AppStore_chat.rocket.ios.Rocket-Chat-ShareExtension.mobileprovision",
|
|
|
|
target_filter: "ShareRocketChatRN",
|
|
|
|
build_configuration: 'Release',
|
|
|
|
code_signing_identity: 'iPhone Distribution'
|
|
|
|
)
|
|
|
|
|
|
|
|
gym(
|
|
|
|
scheme: "RocketChat",
|
|
|
|
workspace: "RocketChatRN.xcworkspace",
|
|
|
|
xcargs: "-allowProvisioningUpdates",
|
|
|
|
output_name: "Rocket.Chat"
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
2017-11-06 23:45:48 +00:00
|
|
|
after_all do |lane|
|
2020-10-13 20:44:59 +00:00
|
|
|
delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])
|
|
|
|
end
|
2017-11-06 23:45:48 +00:00
|
|
|
|
|
|
|
error do |lane, exception|
|
2020-10-13 20:44:59 +00:00
|
|
|
delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])
|
2017-11-06 23:45:48 +00:00
|
|
|
end
|
|
|
|
end
|