Skip to content
Discussion options

You must be logged in to vote

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;

- name: Build AAB with Flutter
  script: |
     flutter build appbundle --release \
     --build-name=1.0.$PROJECT_BUILD_NUMBER \
     --build-number=$PROJECT_BUILD_NUMBER

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dtrdic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants