ios launch images
BIN
asset_sources/other/ios_launch_image/campfire/LaunchImage.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
asset_sources/other/ios_launch_image/campfire/LaunchImage@2x.png
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
asset_sources/other/ios_launch_image/campfire/LaunchImage@3x.png
Normal file
After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 16 KiB |
3
ios/.gitignore
vendored
|
@ -30,3 +30,6 @@ Runner/GeneratedPluginRegistrant.*
|
|||
!default.mode2v3
|
||||
!default.pbxuser
|
||||
!default.perspectivev3
|
||||
|
||||
# app specific, handled by scripts
|
||||
Runner/Assets.xcassets/LaunchImage.imageset/*.png
|
||||
|
|
|
@ -15,3 +15,22 @@ done
|
|||
# Configure ios for Duo.
|
||||
sed -i '' "s/${APP_NAME_PLACEHOLDER}/${NEW_NAME}/g" "${APP_PROJECT_ROOT_DIR}/${IOS_TF_0}"
|
||||
sed -i '' "s/${APP_ID_PLACEHOLDER}/${NEW_APP_ID}/g" "${APP_PROJECT_ROOT_DIR}/${IOS_TF_1}"
|
||||
|
||||
# use app specific launch images
|
||||
LAUNCH_IMAGES_DIR="${APP_PROJECT_ROOT_DIR}/ios/Runner/Assets.xcassets/LaunchImage.imageset"
|
||||
for file in "${LAUNCH_IMAGES_DIR}"/*.png;
|
||||
do
|
||||
# Check if the file exists to avoid errors if no PNG files are found
|
||||
if [ -f "${file}" ]; then
|
||||
rm "${file}"
|
||||
fi
|
||||
done
|
||||
|
||||
LAUNCH_IMAGES_TEMPLATES_DIR="${APP_PROJECT_ROOT_DIR}/asset_sources/other/ios_launch_image/${NEW_BASIC_NAME}"
|
||||
for file in "${LAUNCH_IMAGES_TEMPLATES_DIR}"/*.png;
|
||||
do
|
||||
# Check if the file exists to avoid errors if no PNG files are found
|
||||
if [ -f "${file}" ]; then
|
||||
cp "${file}" "${LAUNCH_IMAGES_DIR}/"
|
||||
fi
|
||||
done
|