Last active
January 3, 2022 03:22
-
-
Save victorbruce/7161e4ba94164568af31e48e74cda222 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------- Bump Android Version --------------- | |
desc "Android: Increase versionCode" | |
package = load_json(json_path: "./package.json") | |
private_lane :increase_android_version do | |
increment_version_code(gradle_file_path: './android/app/build.gradle') | |
increment_version_name(gradle_file_path: './android/app/build.gradle', version_name: package['version']) | |
end | |
# --------- Bump iOS Version --------------- | |
desc "iOS: Increment versionCode and set versionName to package.json version" | |
private_lane :increase_ios_version do | |
increment_build_number(xcodeproj: './ios/' + package['name'] + '.xcodeproj') | |
increment_version_number(xcodeproj: './ios/' + package['name'] + '.xcodeproj', version_number: package['version']) | |
end | |
desc "Bump build numbers, and set the version to match the pacakage.json version." | |
lane :bump do | |
increase_android_version | |
increase_ios_version | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment