Config for android app.

This commit is contained in:
M 2022-01-04 18:55:11 +02:00
parent 328b378aac
commit 8fa1fe1b04
3 changed files with 11 additions and 3 deletions

View file

@ -38,13 +38,13 @@ android {
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.cakewallet.cake_wallet"
applicationId System.getenv('APP_ANDROID_ID')
minSdkVersion 21
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [APP_NAME: System.getenv('APP_ANDROID_NAME')]
externalNativeBuild {
cmake {

View file

@ -8,7 +8,7 @@
<application
android:name=".Application"
android:label="Cake Wallet"
android:label="${APP_NAME}"
android:allowBackup="false"
android:fullBackupContent="false"
android:icon="@mipmap/ic_launcher"

8
scripts/android/app_config.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
if [ -z "$APP_ANDROID_TYPE" ]; then
echo "Please set APP_ANDROID_TYPE"
exit 1
fi
sed -i '0,/version:/{s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/}' ./../../pubspec.yaml