Skip to content

Commit 0ba464b

Browse files
committed
Improve code freeze build code util method comments
1 parent ff9b7e2 commit 0ba464b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fastlane/Fastfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,15 +1429,15 @@ def build_code_current
14291429
BUILD_CODE_FORMATTER.build_code(version: version)
14301430
end
14311431

1432-
# 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
14331434
#
14341435
def build_code_code_freeze(version_short: nil)
1436+
# Use provided version or read the current release version from the .xcconfig file
14351437
version_short ||= VERSION_FILE.read_release_version
1436-
# Read the current build code from the .xcconfig file and parse it into an AppVersion object
1437-
# The AppVersion is used because WCiOS uses the four part (1.2.3.4) build code format, so the version
1438-
# calculator can be used to calculate the next four-part version
1438+
# Parse the release version string (e.g., "1.2.3") into an AppVersion object
14391439
release_version_current = VERSION_FORMATTER.parse(version_short)
1440-
# Return the formatted build code
1440+
# Format as four-part build code (e.g., "1.2.3.0")
14411441
BUILD_CODE_FORMATTER.build_code(version: release_version_current)
14421442
end
14431443

0 commit comments

Comments
 (0)