Replies: 9 comments 1 reply
-
Hi. We already support that. Are you using our android plugin?
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer. |
Beta Was this translation helpful? Give feedback.
-
The plugin automatically overrides the version name and version code on build time. You shouldn't include those fields on the defaultConfig section. |
Beta Was this translation helpful? Give feedback.
-
Great, I'm going to implement these changes and let you know. |
Beta Was this translation helpful? Give feedback.
-
Works for me now, thanks for taking the time to explain. 👍 |
Beta Was this translation helpful? Give feedback.
-
I'm sorry, but I still have questions... > Configure project :
Version not specified on project [My First Built by Jenkins Applications] or its root project. Assigned v0.1.0 as default version I have the version defined in the main There is something else I haven't understood yet. I always get Version: 1.0.4-ALPHA when I use Thank you. |
Beta Was this translation helpful? Give feedback.
-
In the documentation I read:
Do we agree that I should not add a I have then a problem when I try to publish my new version on Google Play Console, as I get: Version code is too low or has already been used for app io.jenkins.mobile.example.myfirstbuiltbyjenkinsapplication It looks like when I use the Thanks. |
Beta Was this translation helpful? Give feedback.
-
I think both problems are related to the same issue. You should declare the version before applying the plugin. I am going to clarify that on the documentation |
Beta Was this translation helpful? Give feedback.
-
No, thanks for that. I could improve the documentation and plugin validations thanks to your comments. I am releasing a new version that fails if the version is not assigned before applying the plugin |
Beta Was this translation helpful? Give feedback.
-
Hello there 👋
First of all, thanks for your work. Now, without further ado, let's get to the point.
Is your feature request related to a problem? Please describe.
I have a very simple Android application, and I'd like to be able to increment the
versionCode
andversionName
which are described within the appbuild.gradle
file.The
printVersion
command gives me the output I'm looking for:Calling the
incrementVersion
changes the value ofversion
in the mainbuild.gradle
, but not in theapp/build.gradle
in thedefaultConfig
section.Describe the solution you'd like
I would like the
versionCode
andversionName
to be incremented in thedefaultConfig
section of theapp/build.gradle
file.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions