TF-4268 Automate Sentry symbol upload for Android release builds (#4442)

This commit is contained in:
Dat Vu
2026-04-14 12:32:03 +07:00
committed by GitHub
parent 16376fccb4
commit 1d594804b5
4 changed files with 99 additions and 1 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ platform :android do
json_key_data: ENV["PLAY_STORE_CONFIG_JSON"]
)[0].to_i
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}"
# Add: --obfuscate --split-debug-info=build/app/outputs/symbols
# Note: We run `cd ..` first, so paths are relative to repository root.
sh "cd .. && flutter build appbundle --verbose --release --obfuscate --split-debug-info=build/app/outputs/symbols --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"],
track: track,