2018-10-11 07:13:19 +00:00
|
|
|
# This file contains the fastlane.tools configuration
|
|
|
|
# You can find the documentation at https://docs.fastlane.tools
|
|
|
|
#
|
|
|
|
# For a list of all available actions, check out
|
|
|
|
#
|
|
|
|
# https://docs.fastlane.tools/actions
|
|
|
|
#
|
|
|
|
# For a list of all available plugins, check out
|
|
|
|
#
|
|
|
|
# https://docs.fastlane.tools/plugins/available-plugins
|
|
|
|
#
|
|
|
|
|
|
|
|
# Uncomment the line if you want fastlane to automatically update itself
|
|
|
|
# update_fastlane
|
|
|
|
|
|
|
|
default_platform(:ios)
|
|
|
|
|
|
|
|
platform :ios do
|
|
|
|
desc "Archive a new build"
|
|
|
|
lane :create_archive do
|
|
|
|
ensure_git_status_clean
|
|
|
|
cocoapods
|
|
|
|
get_build_number
|
|
|
|
base_build_number = lane_context[SharedValues::BUILD_NUMBER].to_i
|
|
|
|
increment_build_number(
|
|
|
|
build_number: base_build_number + number_of_commits
|
|
|
|
)
|
|
|
|
match
|
|
|
|
gym
|
|
|
|
end
|
|
|
|
|
|
|
|
desc "Set build changelog"
|
|
|
|
lane :set_build_changelog do
|
|
|
|
lane_context[SharedValues::FL_CHANGELOG] = File.read("../#{ENV["BUILD_CHANGELOG_PATH"]}")
|
|
|
|
end
|
|
|
|
|
2019-03-21 17:14:08 +00:00
|
|
|
desc "Submit a build to App Center"
|
2018-10-11 07:13:19 +00:00
|
|
|
lane :dev_deploy do
|
|
|
|
set_build_changelog
|
2019-03-21 17:14:08 +00:00
|
|
|
appcenter_upload
|
2018-10-11 07:13:19 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
desc "Submit a build to TestFlight"
|
|
|
|
lane :beta_deploy do
|
|
|
|
set_build_changelog
|
|
|
|
pilot(
|
2018-10-23 17:20:01 +00:00
|
|
|
beta_app_description: File.read("../#{ENV["BUILD_DESCRIPTION_PATH"]}")
|
2018-10-11 07:13:19 +00:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
desc "Update App Store metadata"
|
|
|
|
lane :update_metadata do
|
|
|
|
deliver(
|
|
|
|
skip_screenshots: true
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
desc "Update App Store screenshots"
|
|
|
|
lane :update_screenshots do
|
|
|
|
deliver(
|
|
|
|
skip_metadata: true
|
|
|
|
)
|
|
|
|
end
|
2019-03-05 20:43:22 +00:00
|
|
|
|
|
|
|
desc "Update provisioning profiles"
|
|
|
|
lane :update_provisioning do |options|
|
|
|
|
match(options)
|
|
|
|
end
|
2018-10-11 07:13:19 +00:00
|
|
|
end
|