Skip to content
Discussion options

You must be logged in to vote

I managed to do it using custom environment variables.
I use this pre-build script to store the build_number in a variable called FLUTTER_BUILD_NUMBER.

version=$(grep -E "^version: .+\+.+" /Users/builder/clone/pubspec.yaml); buildVersion=$(echo $version | awk -F "+" '{print $2}'); echo "FLUTTER_BUILD_NUMBER=$buildVersion" >> $CM_ENV;

More info about custom environment variables here.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@DanielJaramillo94
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DanielJaramillo94
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