Skip to content

Commit d937eaa

Browse files
Update Fastfile for better build numbering
Remove temporary override and restore the new better numbering
1 parent 42ff783 commit d937eaa

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

fastlane/Fastfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,16 @@ platform :ios do
9090
end
9191

9292
def get_build_number(bundle_id:, version:)
93-
7894
93+
testflight_latest = latest_testflight_build_number(
94+
app_identifier: bundle_id,
95+
version: version
96+
) || 0
97+
98+
appstore_latest = app_store_build_number(
99+
app_identifier: bundle_id
100+
) || 0
101+
102+
git_count = sh("git rev-list --count HEAD").to_i
103+
104+
[testflight_latest + 1, appstore_latest + 1, git_count].max
94105
end

0 commit comments

Comments
 (0)