add option to skip automatic build increase

This commit is contained in:
Gergely Hegedus 2023-10-11 10:41:57 +03:00
parent df4dbfa09b
commit 7d09e90a78
6 changed files with 22 additions and 9 deletions

View file

@ -74,13 +74,13 @@ platform :android do
desc "By Default it sets the version_code to last from PlayStore + 1."
desc ">Optionally version code increase can be skipped via:"
desc "```sh"
desc "[bundle exec] fastlane deployProdToPlayStore skip_build_number_increase:1"
desc "[bundle exec] fastlane deployProdToPlayStore skip_build_number_increase:true"
desc "```"
lane :deployProdToPlayStore do |options|
skip_build_number_increase = options[:skip_build_number_increase] # optional, if not set, it gets the last from PlayStore then adds + 1
package_name = PROD_APP_IDENTIFIER
if skip_build_number_increase.nil?
if skip_build_number_increase.nil? || !skip_build_number_increase
last_version_codes = google_play_track_version_codes(
track: 'internal',
json_key: PLAY_STORE_AUTH_FILE,

View file

@ -41,6 +41,14 @@ Create new Release APK
Find it under app/build/outputs/apk/release
### android testprop
```sh
[bundle exec] fastlane android testprop
```
### android deployProdToPlayStore
```sh
@ -55,7 +63,7 @@ By Default it sets the version_code to last from PlayStore + 1.
```sh
[bundle exec] fastlane deployProdToPlayStore skip_build_number_increase:1
[bundle exec] fastlane deployProdToPlayStore skip_build_number_increase:true
```