Add set_app_version_build to Fastlane (#7089)

This commit is contained in:
Elias Nahum 2023-02-07 10:59:03 +02:00 committed by GitHub
parent ab50164d34
commit c83f53abd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ lane :set_app_version do
)
if ENV['COMMIT_CHANGES_TO_GIT'] == 'true'
msg = ENV['INCREMENT_VERSION_NUMBER_MESSAGE'] || 'Bump app version number to '
msg = ENV['INCREMENT_VERSION_NUMBER_MESSAGE'] || 'Bump app version number to'
commit_message = "#{msg} #{version_number.to_s}"
build_folder_path = Dir[File.expand_path('..')].first
repo_path = (sh "git -C #{build_folder_path} rev-parse --show-toplevel").strip
@ -132,7 +132,7 @@ lane :set_app_build_number do
if ENV['COMMIT_CHANGES_TO_GIT'] == 'true'
msg = ENV['INCREMENT_BUILD_NUMBER_MESSAGE'] || 'Bump app build number to '
msg = ENV['INCREMENT_BUILD_NUMBER_MESSAGE'] || 'Bump app build number to'
commit_message = "#{msg} #{build_number.to_s}"
build_folder_path = Dir[File.expand_path('..')].first
repo_path = (sh "git -C #{build_folder_path} rev-parse --show-toplevel").strip
@ -146,6 +146,12 @@ lane :set_app_build_number do
end
end
desc 'Increments version and build number for both Android and iOS'
lane :set_app_version_build do
set_app_version
set_app_build_number
end
desc 'Configure the app before building'
lane :configure do
json = load_config_json('../dist/assets/config.json')