chore: variable rename

This commit is contained in:
Martin Guillon
2021-01-05 15:46:35 +01:00
parent 0de6451b9f
commit 79537d9c0c
6 changed files with 7 additions and 7 deletions

View File

@ -132,7 +132,7 @@ declare const __DEV__: string;
declare const __CSS_PARSER__: string;
declare const __NS_WEBPACK__: boolean;
declare const __UI_CUSTOM_FLAVOR__: boolean;
declare const __UI_XML_PARSER__: boolean;
declare const __UI_USE_XML_PARSER__: boolean;
declare const __ANDROID__: boolean;
declare const __IOS__: boolean;

View File

@ -223,7 +223,7 @@ export function getExports(instance: ViewBase): any {
}
function parseInternal(value: string, context: any, xmlModule?: string, moduleName?: string): ComponentModule {
if (__UI_XML_PARSER__) {
if (__UI_USE_XML_PARSER__) {
let start: xml2ui.XmlStringParser;
let ui: xml2ui.ComponentParser;

View File

@ -46,7 +46,7 @@ export namespace xml2ui {
}
public parse(value: ParseInputData) {
if (__UI_XML_PARSER__) {
if (__UI_USE_XML_PARSER__) {
const xmlParser = new xml.XmlParser(
(args: xml.ParserEvent) => {
try {
@ -264,7 +264,7 @@ export namespace xml2ui {
}
public buildTemplate(): Template {
if (__UI_XML_PARSER__) {
if (__UI_USE_XML_PARSER__) {
const context = this._context;
const errorFormat = this._templateProperty.errorFormat;
const sourceTracker = this._templateProperty.sourceTracker;

View File

@ -195,7 +195,7 @@ export const itemTemplatesProperty = new Property<ListViewBase, string | Array<K
name: 'itemTemplates',
valueConverter: (value) => {
if (typeof value === 'string') {
if (__UI_XML_PARSER__) {
if (__UI_USE_XML_PARSER__) {
return Builder.parseMultipleTemplates(value, null);
} else {
return null;

View File

@ -223,7 +223,7 @@ export const itemTemplatesProperty = new Property<Repeater, string | Array<Keyed
affectsLayout: true,
valueConverter: (value) => {
if (typeof value === 'string') {
if (__UI_XML_PARSER__) {
if (__UI_USE_XML_PARSER__) {
return Builder.parseMultipleTemplates(value, null);
} else {
return null;

View File

@ -242,7 +242,7 @@ export default function (config: Config, env: IWebpackEnv): Config {
{
__DEV__: mode === 'development',
__NS_WEBPACK__: true,
__UI_XML_PARSER__: true,
__UI_USE_XML_PARSER__: true,
__UI_CUSTOM_FLAVOR__: projectUsesCustomFlavor(),
__CSS_PARSER__: JSON.stringify(getValue('cssParser')), // todo: replace from config value
__ANDROID__: platform === 'android',