Skip to content

Commit

Permalink
ci: updated Fastfile to bump versionCode to highest+1 of all tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 5, 2023
1 parent 7a712ba commit 6d3b06d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@ platform :android do

desc "Update versionCode to be one higher than the latest on Play Store"
lane :update_version do
gp = google_play_track_version_codes(track: 'production')
gb = google_play_track_version_codes(track: 'beta')
ga = google_play_track_version_codes(track: 'alpha')
gi = google_play_track_version_codes(track: 'internal')
max_value = [gp[0].to_i, gb[0].to_i, ga[0].to_i, gi[0].to_i].max
version_updated = max_value + 1

increment_version_code(
gradle_file_path: "mobile/build.gradle",
version_code: google_play_track_version_codes.max + 1
version_code: version_updated
)
end

Expand Down

0 comments on commit 6d3b06d

Please sign in to comment.