From 32b7b0153ce729ce29e49657948f558f206a158e Mon Sep 17 00:00:00 2001 From: "Dat H. Pham" Date: Thu, 5 Mar 2026 11:53:52 +0700 Subject: [PATCH] Stript suffix for tag --- android/fastlane/Fastfile | 2 +- ios/fastlane/Fastfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index 187896bae..cb2a06447 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -30,7 +30,7 @@ platform :android do track: track, json_key_data: ENV["PLAY_STORE_CONFIG_JSON"] )[0].to_i - build_name = last_git_tag.gsub("v", "") + build_name = last_git_tag.gsub("v", "").split("-").first sh "flutter build appbundle --verbose --release --dart-define=SERVER_URL=$SERVER_URL --build-number=#{latest_build_number+1} --build-name=#{build_name}" upload_to_play_store( json_key_data: ENV["PLAY_STORE_CONFIG_JSON"], diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index c3e65e5fd..c83b883da 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -48,7 +48,7 @@ platform :ios do build_number: latest_testflight_build_number + 1 ) increment_version_number( - version_number: last_git_tag.gsub("v", "") + version_number: last_git_tag.gsub("v", "").split("-").first ) build_app( scheme: "Runner",