Rocket.Chat.ReactNative/ios/fastlane/Fastfile

80 lines
2.5 KiB
Ruby

# 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
setup_circle_ci
create_keychain(
name: ENV["MATCH_KEYCHAIN_NAME"],
password: ENV["MATCH_KEYCHAIN_PASSWORD"],
timeout: 1200
)
end
desc "Submit a new Beta Build to Apple TestFlight"
lane :beta do |options|
api_key = app_store_connect_api_key(
key_id: ENV["APP_STORE_CONNECT_API_KEY_ID"],
issuer_id: ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"],
key_filepath: 'fastlane/app_store_connect_api_key.p8',
in_house: false
)
pilot(
ipa: 'ios/Rocket.Chat.ipa',
skip_waiting_for_build_processing: true
)
upload_symbols_to_crashlytics(dsym_path: "./ios/Rocket.Chat.app.dSYM.zip")
upload_symbols_to_bugsnag(
config_file: "./RocketChatRN/Info.plist",
dsym_path: "./ios/Rocket.Chat.app.dSYM.zip",
api_key: ENV["BUGSNAG_KEY_OFFICIAL"]
)
end
desc "Build app"
lane :build_official do
api_key = app_store_connect_api_key(
key_id: ENV["APP_STORE_CONNECT_API_KEY_ID"],
issuer_id: ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"],
key_filepath: 'fastlane/app_store_connect_api_key.p8',
in_house: false
)
match(type: "appstore")
get_provisioning_profile(app_identifier: "chat.rocket.ios.Rocket-Chat-ShareExtension")
get_provisioning_profile(app_identifier: "chat.rocket.ios.NotificationService")
# pem(api_key: api_key) # still uses Spaceship http://docs.fastlane.tools/actions/pem/#how-does-it-work
gym(
scheme: "RocketChat",
workspace: "RocketChatRN.xcworkspace",
output_name: "Rocket.Chat"
)
end
desc "Build fork app"
lane :build_fork do
gym(scheme: "RocketChatRN", workspace: "RocketChatRN.xcworkspace", skip_codesigning: true, skip_archive: true)
end
after_all do |lane|
delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])
end
error do |lane, exception|
delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])
end
end