Android versioning in flutter using codemagic #2359
-
How to update the version code and version name of the app? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
hello @Navaneet00, If you are building a Flutter app, your build command in your yaml file would look like this;
If you want to use the latest version from the Google Play Store, your build command would look like this:
You will also need to make changes in the build.gradle file so that the code dynamically adjusts the
But please check this documentation for more information regarding automatic versioning. If you encounter any road blocks, let me know, share the build ID, and I'll assist you through the process |
Beta Was this translation helpful? Give feedback.
-
I am closing the thread due to inactivity. Let me know if you have any questions by replying to this thread or opening a new one. |
Beta Was this translation helpful? Give feedback.
hello @Navaneet00,
There are several approaches you can use for build versioning on Codemagic. One of the easiest ways to increment the application version on every build is by using the built-in environment variables that Codemagic exports during the build, such as the
PROJECT_BUILD_NUMBER
variable. This variable represents the current build number of your project and is automatically incremented with each new build of your app.If you are building a Flutter app, your build command in your yaml file would look like this;