ios template files

This commit is contained in:
julian 2024-05-23 17:21:11 -06:00
parent 933bfd9efd
commit 3e91bd7191
4 changed files with 20 additions and 2 deletions

4
.gitignore vendored
View file

@ -76,3 +76,7 @@ secp256k1.dll
/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
/ios/Runner/Info.plist
/ios/Runner.xcodeproj/project.pbxproj
/ios/Runner/Assets.xcassets/AppIcon.appiconset

View file

@ -2,6 +2,20 @@
set -x -e
F0="ios/Runner/Info.plist"
F1="ios/Runner.xcodeproj/project.pbxproj"
TEMPLATES="${APP_PROJECT_ROOT_DIR}/scripts/app_config/templates"
for (( i=0; i<=1; i++ )); do
VAR="F${i}"
FILE="${APP_PROJECT_ROOT_DIR}/${!VAR}"
if [ -f "${FILE}" ]; then
rm "${FILE}"
fi
cp "${TEMPLATES}/${!VAR}" "${FILE}"
done
# Configure ios for Duo.
sed -i '' "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/ios/Runner/Info.plist"
sed -i '' "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/ios/Runner.xcodeproj/project.pbxproj"
sed -i '' "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/${F0}"
sed -i '' "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${F1}"