Skip to content

Commit bd4a2a9

Browse files
committed
Merge pull request #1780 from NativeScript/xml-validation
XML validation fixed
2 parents b956140 + 6f897e1 commit bd4a2a9

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

lib/services/platform-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -711,4 +711,4 @@ export class PlatformService implements IPlatformService {
711711
}).future<void>()();
712712
}
713713
}
714-
$injector.register("platformService", PlatformService);
714+
$injector.register("platformService", PlatformService);

lib/xml-validator.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export class XmlValidator implements IXmlValidator {
1818
let hasErrors = !!errorOutput;
1919
xmlHasErrors = xmlHasErrors || hasErrors;
2020
if (hasErrors) {
21-
this.$logger.warn(`${file} has syntax errors.`);
22-
this.$logger.out(errorOutput);
21+
this.$logger.info(`${file} has syntax errors.`.red.bold);
22+
this.$logger.out(errorOutput.yellow);
2323
}
2424
});
2525
return !xmlHasErrors;

test/ios-project-service.ts

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function createTestInjector(projectPath: string, projectName: string): IInjector
8282
testInjector.register("xcprojService", {});
8383
testInjector.register("pluginVariablesService", PluginVariablesService);
8484
testInjector.register("pluginVariablesHelper", PluginVariablesHelper);
85+
testInjector.register("androidProcessService", {});
8586
return testInjector;
8687
}
8788

test/platform-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,4 +348,4 @@ describe('Platform Service Tests', () => {
348348
assert.isFalse(warnings.indexOf("has errors") !== -1);
349349
});
350350
});
351-
});
351+
});

0 commit comments

Comments
 (0)