Skip to content

Commit 8ed8fec

Browse files
committed
increment the version code when releasing a new version
1 parent 32ca740 commit 8ed8fec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fastlane/platforms/agnostic.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
# update Android version
2929
set_gradle_version_name(version_name: version,
3030
gradle_path: lane_context[:GRADLE_FILE])
31+
32+
current_version_code = get_gradle_version_code(gradle_path: lane_context[:GRADLE_FILE])
33+
set_gradle_version_code(version_code: current_version_code + 1,
34+
gradle_path: lane_context[:GRADLE_FILE])
3135
end
3236

3337
desc 'Build the release notes: branch, commit hash, changelog'

0 commit comments

Comments
 (0)