Skip to content

Commit

Permalink
Fix android api build
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-pratik-k committed Jan 17, 2024
1 parent 12f26c7 commit 5c38bb4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
run: |
cd app
file='VERSION'
fileData=`cat $file`
fileData=$(cat $file)
IFS='.'
read -a versionValue <<< "$fileData"
buildNumber=$(expr `expr ${versionValue[0]} \* 1000000` + `expr ${versionValue[1]} \* 10000` + ${CI_PIPELINE_IID})
buildNumber=$(( ${versionValue[0]} * 1000000 + ${versionValue[1]} * 10000 + CI_PIPELINE_IID ))
IFS=''
buildName="${versionValue[0]}.${versionValue[1]}.$CI_PIPELINE_IID"
echo "Generating android build $buildName $buildNumber"
flutter build apk --flavor prod --release --build-number=$buildNumber --build-name=$buildName
flutter build apk --release --build-number=$buildNumber --build-name=$buildName
mv build/app/outputs/apk/release/*.apk .
cd ..

0 comments on commit 5c38bb4

Please sign in to comment.