mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-22 11:29:23 +00:00
android template files
This commit is contained in:
parent
a976219417
commit
933bfd9efd
13 changed files with 36 additions and 7 deletions
10
.gitignore
vendored
10
.gitignore
vendored
|
@ -66,3 +66,13 @@ flutter_libsparkmobile.dll
|
|||
secp256k1.dll
|
||||
/libisar.so
|
||||
/lib/app_config.g.dart
|
||||
|
||||
## other generated project files
|
||||
|
||||
/android/app/build.gradle
|
||||
/android/app/src/debug/AndroidManifest.xml
|
||||
/android/app/src/profile/AndroidManifest.xml
|
||||
/android/app/src/main/AndroidManifest.xml
|
||||
/android/app/src/main/profile/AndroidManifest.xml
|
||||
/android/app/src/main/kotlin/com/cypherstack/stackwallet/MainActivity.kt
|
||||
/android/app/src/main/res/**/ic_launcher.png
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.4 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.5 KiB |
|
@ -2,10 +2,29 @@
|
|||
|
||||
set -x -e
|
||||
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/android/app/build.gradle"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/android/app/src/debug/AndroidManifest.xml"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/android/app/src/profile/AndroidManifest.xml"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/android/app/src/main/AndroidManifest.xml"
|
||||
sed -i "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/android/app/src/main/AndroidManifest.xml"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/android/app/src/main/profile/AndroidManifest.xml"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/android/app/src/main/kotlin/com/cypherstack/stackwallet/MainActivity.kt"
|
||||
F0="android/app/build.gradle"
|
||||
F1="android/app/src/debug/AndroidManifest.xml"
|
||||
F2="android/app/src/profile/AndroidManifest.xml"
|
||||
F3="android/app/src/main/AndroidManifest.xml"
|
||||
F4="android/app/src/main/profile/AndroidManifest.xml"
|
||||
F5="android/app/src/main/kotlin/com/cypherstack/stackwallet/MainActivity.kt"
|
||||
|
||||
TEMPLATES="${APP_PROJECT_ROOT_DIR}/scripts/app_config/templates"
|
||||
|
||||
for (( i=0; i<=5; i++ )); do
|
||||
VAR="F${i}"
|
||||
FILE="${APP_PROJECT_ROOT_DIR}/${!VAR}"
|
||||
if [ -f "${FILE}" ]; then
|
||||
rm "${FILE}"
|
||||
fi
|
||||
cp "${TEMPLATES}/${!VAR}" "${FILE}"
|
||||
done
|
||||
|
||||
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${F0}"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${F1}"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${F2}"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${F3}"
|
||||
sed -i "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/${F3}"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${F4}"
|
||||
sed -i "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${F5}"
|
||||
|
|
Loading…
Reference in a new issue