feat: apple view filtering (#10681)

[skip ci]
This commit is contained in:
Nathan Walker
2025-01-29 16:56:54 -08:00
committed by GitHub
parent f9e7088d07
commit 20fc1cc1d4
7 changed files with 14 additions and 8 deletions

View File

@ -44,9 +44,12 @@ async function parseXML(content: string): Promise<ParseResult> {
const saxParser = parser(true, { xmlns: true });
// // Register ios and android prefixes as namespaces to avoid "unbound xml namespace" errors
// // Register platform prefixes as namespaces to avoid "unbound xml namespace" errors
(saxParser as any).ns['ios'] = 'http://schemas.nativescript.org/tns.xsd';
(saxParser as any).ns['visionos'] = 'http://schemas.nativescript.org/tns.xsd';
(saxParser as any).ns['apple'] = 'http://schemas.nativescript.org/tns.xsd';
(saxParser as any).ns['macos'] = 'http://schemas.nativescript.org/tns.xsd';
(saxParser as any).ns['win'] = 'http://schemas.nativescript.org/tns.xsd';
(saxParser as any).ns['android'] = 'http://schemas.nativescript.org/tns.xsd';
(saxParser as any).ns['desktop'] = 'http://schemas.nativescript.org/tns.xsd';
(saxParser as any).ns['web'] = 'http://schemas.nativescript.org/tns.xsd';