Change how we process the splash images for cordova (fixes #11555):

- Fixes iOS check.
This commit is contained in:
Matheus Castro
2021-12-06 09:15:57 -03:00
parent 931a31c74f
commit bf404dfd5c

View File

@@ -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.");