-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AUTO_INCREMENT_ONE_STEP not saving to version.properties file #5
Comments
According to documentation AUTO_INCREMENT_ONE_STEP only increases when you are releasing your app. if you want it to change every time (I mean on every task you want) you can set for example: advancedVersioning {
codeOptions {
versionCodeType org.moallemi.gradle.internal.VersionCodeType.AUTO_INCREMENT_ONE_STEP
dependsOnTasks 'debug', 'release', 'assemble'
}
} |
I know, but when I create a release build, the versionCode is always at 1. Even if I (release) build it many times. |
What is your release task name? did you add it to |
I haven't added dependsOnTasks so I guess it's by default "release". |
I mean witch task name do you use to publish the release version of your app? if you use ./gradlew TASK_NAME to make the release version then you should add it to I will add an option to use build Variants instead of task names in later version. |
Oh, I do a |
Indeed specifying The following works:
while the following does not work:
|
Using AUTO_INCREMENT_ONE_STEP as a codeOption doesn't update the version.properties file.
The text was updated successfully, but these errors were encountered: