Skip to content
Snippets Groups Projects
Commit 9944d125 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Merge branch '83-fix-build-process' into 'master'

Resolve "Fix build process"

Closes #83

See merge request !80
parents 9151f6ff 23c1eb81
No related branches found
Tags Release_1.0.62_63
1 merge request!80Resolve "Fix build process"
Pipeline #6185 canceled
......@@ -66,10 +66,10 @@ import com.android.build.OutputFile
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
def baseAbiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
def perAbiVersionCodeIncrement = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
if (baseAbiVersionCode != null) {
output.versionCodeOverride = baseAbiVersionCode * 1000 + variant.versionCode
if (perAbiVersionCodeIncrement != null) {
output.versionCodeOverride = variant.versionCode * 1000 + perAbiVersionCodeIncrement
}
}
}
......
......@@ -3,7 +3,7 @@ description: A random application, for testing purpose only.
publish_to: "none"
version: 1.0.61+62
version: 1.0.62+63
environment:
sdk: "^3.0.0"
......
#!/bin/bash -i
BASE_APK_FOLDER="build/app/outputs/flutter-apk"
VERSION_NAME="$(grep '^version:' pubspec.yaml | cut -d' ' -f2 | cut -d'+' -f1)"
VERSION_CODE="$(grep '^version:' pubspec.yaml | cut -d' ' -f2 | cut -d'+' -f2)"
APP_NAME="$(grep 'namespace' android/app/build.gradle | cut -d'"' -f2)"
if [ "$(find "${BASE_APK_FOLDER}" -name "*.apk")" != "" ]; then
for APK in ${BASE_APK_FOLDER}/*.apk; do
mv -v "${APK}" "$(echo "${APK}" | sed "s|\.apk|_${VERSION_CODE}.apk|" | sed "s|/app-|/${APP_NAME}-|")"
done
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment