From bf404dfd5c1ca1f461f83477006a8c2b44a0b85b Mon Sep 17 00:00:00 2001 From: Matheus Castro Date: Mon, 6 Dec 2021 09:15:57 -0300 Subject: [PATCH] Change how we process the splash images for cordova (fixes #11555): - Fixes iOS check. --- tools/cordova/builder.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/cordova/builder.js b/tools/cordova/builder.js index 8115823aa6..53e60e27fd 100644 --- a/tools/cordova/builder.js +++ b/tools/cordova/builder.js @@ -348,7 +348,7 @@ export class CordovaBuilder { this._configureAndCopyIcon(iconsIosSizes, platformElement.ios); this._configureAndCopyIcon(iconsAndroidSizes, platformElement.android); - this._configureAndCopySplashImages(splashIosKeys, platformElement.ios); + this._configureAndCopySplashImages(splashIosKeys, platformElement.ios, true); this._configureAndCopySplashImages(splashAndroidKeys, platformElement.android); } @@ -403,8 +403,7 @@ export class CordovaBuilder { }) } - _configureAndCopySplashImages(allowedValues, xmlElement) { - const isIos = xmlElement.name === 'ios'; + _configureAndCopySplashImages(allowedValues, xmlElement, isIos = false) { const appendDarkMode = (stringValue , { separator = '.', withChar = '~' } = {}) => { if (!stringValue) { throw new Error("No string was passed.");