You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
• New release branch from #{DEFAULT_BRANCH}: release/#{new_version}
208
+
• New release branch from #{DEFAULT_BRANCH}: #{new_release_branch}
209
+
219
210
• Current release version and build code: #{release_version_current} (#{build_code_current}).
220
-
• New release version and build code: #{new_version} (#{build_code_code_freeze}).
211
+
• New release version and build code: #{new_version} (#{new_build_code}).
221
212
222
213
MESSAGE
223
214
UI.user_error!("Terminating as requested. Don't forget to run the remainder of this automation manually.")unlessskip_confirm || UI.confirm('Do you want to continue?')
224
215
225
216
# Create the release branch
226
-
new_release_branch="release/#{new_version}"
227
217
ensure_branch_does_not_exist!(new_release_branch)
228
218
229
219
UI.message('Creating release branch...')
@@ -233,8 +223,8 @@ platform :ios do
233
223
# Bump the release version and build code and write it to the `xcconfig` file
234
224
UI.message('Bumping release version and build code...')
235
225
VERSION_FILE.write(
236
-
version_short: release_version_next,
237
-
version_long: build_code_code_freeze
226
+
version_short: new_version,
227
+
version_long: new_build_code
238
228
)
239
229
commit_version_bump
240
230
UI.success("Done! New Release Version: #{release_version_current}. New Build Code: #{build_code_current}")
@@ -258,7 +248,7 @@ platform :ios do
258
248
copy_branch_protection(
259
249
repository: GITHUB_REPO,
260
250
from_branch: DEFAULT_BRANCH,
261
-
to_branch: "release/#{new_version}"
251
+
to_branch: new_release_branch
262
252
)
263
253
264
254
begin
@@ -1439,17 +1429,16 @@ def build_code_current
1439
1429
BUILD_CODE_FORMATTER.build_code(version: version)
1440
1430
end
1441
1431
1442
-
# Returns the build code of the app for the code freeze. It is the release version name plus sets the build number to 0
1432
+
# Returns the initial build code for a code freeze (e.g., "1.2.3.0" for release version "1.2.3")
1433
+
# Takes the release version and formats it as a four-part build code with the build number set to 0
1443
1434
#
1444
-
defbuild_code_code_freeze
1445
-
# Read the current build code from the .xcconfig file and parse it into an AppVersion object
1446
-
# The AppVersion is used because WCiOS uses the four part (1.2.3.4) build code format, so the version
1447
-
# calculator can be used to calculate the next four-part version
0 commit comments