From c83f53abd9628b19d85a27852e58cd9bd7adb6db Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Tue, 7 Feb 2023 10:59:03 +0200 Subject: [PATCH] Add set_app_version_build to Fastlane (#7089) --- fastlane/Fastfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index fad38e746..a37047199 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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')