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
|
|
|
|
# ENV["SLACK_URL"] = "https://hooks.slack.com/services/..."
|
|
|
|
# cocoapods
|
|
|
|
# carthage
|
2019-07-15 17:24:48 +00:00
|
|
|
setup_circle_ci
|
2017-11-06 23:45:48 +00:00
|
|
|
create_keychain(
|
|
|
|
name: ENV["MATCH_KEYCHAIN_NAME"],
|
|
|
|
password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
|
|
|
timeout: 1200
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
desc "Runs all the tests"
|
|
|
|
lane :test do
|
|
|
|
scan
|
|
|
|
end
|
|
|
|
|
|
|
|
desc "Submit a new Beta Build to Apple TestFlight"
|
|
|
|
lane :beta do
|
2019-09-03 19:27:57 +00:00
|
|
|
pilot(ipa: 'ios/RocketChatRN.ipa')
|
2017-11-06 23:45:48 +00:00
|
|
|
end
|
|
|
|
|
2018-01-10 02:35:31 +00:00
|
|
|
desc "Build App for release"
|
2017-11-06 23:45:48 +00:00
|
|
|
lane :release do
|
|
|
|
# match(type: "appstore")
|
|
|
|
# snapshot
|
|
|
|
match(
|
2018-03-15 14:47:18 +00:00
|
|
|
type: "appstore"
|
2017-11-06 23:45:48 +00:00
|
|
|
) # more information: https://codesigning.guide
|
2019-07-29 20:44:39 +00:00
|
|
|
get_provisioning_profile(app_identifier: "chat.rocket.reactnative.ShareExtension")
|
2017-11-21 14:09:29 +00:00
|
|
|
pem()
|
2018-07-26 14:23:06 +00:00
|
|
|
gym(scheme: "RocketChatRN", workspace: "RocketChatRN.xcworkspace") # Build your app - more options available
|
2017-11-06 23:45:48 +00:00
|
|
|
# frameit
|
|
|
|
end
|
|
|
|
|
2018-01-10 02:35:31 +00:00
|
|
|
desc "Build App for development"
|
|
|
|
lane :build do |options|
|
|
|
|
xcodebuild(
|
2018-07-26 14:23:06 +00:00
|
|
|
workspace: "RocketChatRN.xcworkspace",
|
2018-01-10 02:35:31 +00:00
|
|
|
scheme: "RocketChatRN",
|
|
|
|
configuration: "Debug",
|
|
|
|
clean: options[:clean],
|
|
|
|
build: true,
|
|
|
|
destination: "generic/platform=iOS",
|
|
|
|
build_settings: {
|
|
|
|
"CODE_SIGNING_REQUIRED" => "NO",
|
|
|
|
"CODE_SIGN_IDENTITY" => ""
|
|
|
|
}
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
2017-11-06 23:45:48 +00:00
|
|
|
# You can define as many lanes as you want
|
|
|
|
|
|
|
|
after_all do |lane|
|
|
|
|
# This block is called, only if the executed lane was successful
|
|
|
|
|
|
|
|
# slack(
|
|
|
|
# message: "Successfully deployed new App Update."
|
|
|
|
# )
|
|
|
|
delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])
|
|
|
|
end
|
|
|
|
|
|
|
|
error do |lane, exception|
|
|
|
|
# slack(
|
|
|
|
# message: exception.message,
|
|
|
|
# success: false
|
|
|
|
# )
|
|
|
|
delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"])
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
|
|
|
|
# All available actions: https://docs.fastlane.tools/actions
|
|
|
|
|
|
|
|
# fastlane reports which actions are used. No personal data is recorded.
|
|
|
|
# Learn more at https://docs.fastlane.tools/#metrics
|