diff --git a/asset_sources/other/ios_launch_image/campfire/LaunchImage.png b/asset_sources/other/ios_launch_image/campfire/LaunchImage.png new file mode 100644 index 000000000..942c30fa7 Binary files /dev/null and b/asset_sources/other/ios_launch_image/campfire/LaunchImage.png differ diff --git a/asset_sources/other/ios_launch_image/campfire/LaunchImage@2x.png b/asset_sources/other/ios_launch_image/campfire/LaunchImage@2x.png new file mode 100644 index 000000000..f5d90b7e2 Binary files /dev/null and b/asset_sources/other/ios_launch_image/campfire/LaunchImage@2x.png differ diff --git a/asset_sources/other/ios_launch_image/campfire/LaunchImage@3x.png b/asset_sources/other/ios_launch_image/campfire/LaunchImage@3x.png new file mode 100644 index 000000000..c7441db43 Binary files /dev/null and b/asset_sources/other/ios_launch_image/campfire/LaunchImage@3x.png differ diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png b/asset_sources/other/ios_launch_image/stack_duo/LaunchImage.png similarity index 100% rename from ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png rename to asset_sources/other/ios_launch_image/stack_duo/LaunchImage.png diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png b/asset_sources/other/ios_launch_image/stack_duo/LaunchImage@2x.png similarity index 100% rename from ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png rename to asset_sources/other/ios_launch_image/stack_duo/LaunchImage@2x.png diff --git a/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png b/asset_sources/other/ios_launch_image/stack_duo/LaunchImage@3x.png similarity index 100% rename from ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png rename to asset_sources/other/ios_launch_image/stack_duo/LaunchImage@3x.png diff --git a/asset_sources/other/ios_launch_image/stack_wallet/LaunchImage.png b/asset_sources/other/ios_launch_image/stack_wallet/LaunchImage.png new file mode 100644 index 000000000..47903b909 Binary files /dev/null and b/asset_sources/other/ios_launch_image/stack_wallet/LaunchImage.png differ diff --git a/asset_sources/other/ios_launch_image/stack_wallet/LaunchImage@2x.png b/asset_sources/other/ios_launch_image/stack_wallet/LaunchImage@2x.png new file mode 100644 index 000000000..863332e3c Binary files /dev/null and b/asset_sources/other/ios_launch_image/stack_wallet/LaunchImage@2x.png differ diff --git a/asset_sources/other/ios_launch_image/stack_wallet/LaunchImage@3x.png b/asset_sources/other/ios_launch_image/stack_wallet/LaunchImage@3x.png new file mode 100644 index 000000000..17c2de611 Binary files /dev/null and b/asset_sources/other/ios_launch_image/stack_wallet/LaunchImage@3x.png differ diff --git a/ios/.gitignore b/ios/.gitignore index e96ef602b..cb9c21eb6 100644 --- a/ios/.gitignore +++ b/ios/.gitignore @@ -30,3 +30,6 @@ Runner/GeneratedPluginRegistrant.* !default.mode2v3 !default.pbxuser !default.perspectivev3 + +# app specific, handled by scripts +Runner/Assets.xcassets/LaunchImage.imageset/*.png diff --git a/scripts/app_config/platforms/ios/platform_config.sh b/scripts/app_config/platforms/ios/platform_config.sh index b60d3615c..c2842d1d5 100755 --- a/scripts/app_config/platforms/ios/platform_config.sh +++ b/scripts/app_config/platforms/ios/platform_config.sh @@ -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 \ No newline at end of file