Skip to content

Commit

Permalink
Increment build number on publish
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanrashid52 committed May 25, 2024
1 parent 167d880 commit 64415d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>2</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
Expand Down
7 changes: 7 additions & 0 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ platform :ios do
desc "Push a new beta build to TestFlight"
lane :beta do
match(app_identifier: "burhanrashid52.whattodo", type: "appstore")
updated_version_number = bump_build_number()
increment_build_number(build_number: updated_version_number)
build_app(workspace: "Runner.xcworkspace", scheme: "Runner")
pilot(api_key_path: "fastlane/store.json", skip_waiting_for_build_processing: true)
end

def bump_build_number()
latest_build_number = latest_testflight_build_number(initial_build_number: 0)
return (latest_build_number + 1)
end
end

0 comments on commit 64415d4

Please sign in to comment.