2022-01-11 18:20:44 +00:00
|
|
|
#!/bin/bash
|
2024-11-25 14:08:30 +00:00
|
|
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)/universal_sed.sh"
|
2022-01-11 18:20:44 +00:00
|
|
|
if [ -z "$APP_ANDROID_TYPE" ]; then
|
|
|
|
echo "Please set APP_ANDROID_TYPE"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd ../..
|
2024-11-25 19:05:36 +00:00
|
|
|
set -x
|
2024-11-25 18:55:05 +00:00
|
|
|
universal_sed "1,/version:/ {s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/;}" ./pubspec.yaml
|
|
|
|
universal_sed "1,/version:/ {s/__APP_PACKAGE__/${APP_ANDROID_PACKAGE}/;}" ./android/app/src/main/AndroidManifest.xml
|
|
|
|
universal_sed "1,/__APP_SCHEME__/ {s/__APP_SCHEME__/${APP_ANDROID_SCHEME}/;}" ./android/app/src/main/AndroidManifest.xml
|
|
|
|
universal_sed "1,/version:/ {s/__versionCode__/${APP_ANDROID_BUILD_NUMBER}/;}" ./android/app/src/main/AndroidManifest.xml
|
|
|
|
universal_sed "1,/version:/ {s/__versionName__/${APP_ANDROID_VERSION}/;}" ./android/app/src/main/AndroidManifest.xml
|
2023-08-04 17:02:05 +00:00
|
|
|
cd scripts/android
|