diff --git a/CHANGELOG.md b/CHANGELOG.md index 270596d5a7..148b04bbfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ This is the log of notable changes to Expo CLI and related packages. ### 🐛 Bug fixes +- [xdl] On Android remove default template splash image when no splash image is specified in the app manifest ([#2883](https://github.com/expo/expo-cli/pull/2883)) + ## [Mon, 9 Nov 2020 13:44:59 -0800](https://github.com/expo/expo-cli/commit/d5b8759b32d5a7747067a969728d9ba732926824) ### 🛠 Breaking changes diff --git a/packages/xdl/src/detach/AndroidShellApp.js b/packages/xdl/src/detach/AndroidShellApp.js index 9a11e972c1..b74d648430 100644 --- a/packages/xdl/src/detach/AndroidShellApp.js +++ b/packages/xdl/src/detach/AndroidShellApp.js @@ -1065,18 +1065,18 @@ export async function runShellAppModificationsAsync(context, sdkVersion, buildMo path.join(shellPath, 'app', 'src', 'main', 'res', 'values', 'colors.xml') ); - // Splash Background - if (backgroundImages && backgroundImages.length > 0) { - // Delete the placeholder images - const splashImageFilename = - majorSdkVersion >= 39 ? 'splashscreen_image.png' : 'shell_launch_background_image.png'; - globSync(`**/${splashImageFilename}'`, { - cwd: path.join(shellPath, 'app', 'src', 'main', 'res'), - absolute: true, - }).forEach(filePath => { - fs.removeSync(filePath); - }); + // Delete the placeholder splash images + const splashImageFilename = + majorSdkVersion >= 39 ? 'splashscreen_image.png' : 'shell_launch_background_image.png'; + globSync(`**/${splashImageFilename}`, { + cwd: path.join(shellPath, 'app', 'src', 'main', 'res'), + absolute: true, + }).forEach(filePath => { + fs.removeSync(filePath); + }); + // Use the splash images provided by the user + if (backgroundImages && backgroundImages.length > 0) { await Promise.all( backgroundImages.map(async image => { if (isRunningInUserContext) {