ios launch images

This commit is contained in:
Julian 2024-07-09 09:31:04 -06:00
parent 77f4eff913
commit 5b0c4ce322
11 changed files with 22 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

3
ios/.gitignore vendored
View file

@ -30,3 +30,6 @@ Runner/GeneratedPluginRegistrant.*
!default.mode2v3
!default.pbxuser
!default.perspectivev3
# app specific, handled by scripts
Runner/Assets.xcassets/LaunchImage.imageset/*.png

View file

@ -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