nativescript 8.5.2 → 8.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -307,7 +307,11 @@ class HooksService {
|
|
|
307
307
|
}
|
|
308
308
|
HooksService.HOOKS_DIRECTORY_NAME = "hooks";
|
|
309
309
|
__decorate([
|
|
310
|
-
(0, decorators_1.
|
|
310
|
+
(0, decorators_1.memoize)({
|
|
311
|
+
shouldCache() {
|
|
312
|
+
return !!this.hooksDirectories.length;
|
|
313
|
+
},
|
|
314
|
+
})
|
|
311
315
|
], HooksService.prototype, "initialize", null);
|
|
312
316
|
exports.HooksService = HooksService;
|
|
313
317
|
yok_1.injector.register("hooksService", HooksService);
|
|
@@ -22,9 +22,9 @@ class ProjectCleanupService {
|
|
|
22
22
|
clean(pathsToClean, options) {
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
this.spinner = this.$terminalSpinnerService.createSpinner({
|
|
25
|
-
isSilent: options.silent,
|
|
25
|
+
isSilent: options === null || options === void 0 ? void 0 : options.silent,
|
|
26
26
|
});
|
|
27
|
-
let stats = options.stats ? new Map() : false;
|
|
27
|
+
let stats = (options === null || options === void 0 ? void 0 : options.stats) ? new Map() : false;
|
|
28
28
|
let success = true;
|
|
29
29
|
for (const pathToClean of pathsToClean) {
|
|
30
30
|
const cleanRes = yield this.cleanPath(pathToClean, options).catch((error) => {
|
|
@@ -37,7 +37,13 @@ class XcconfigService {
|
|
|
37
37
|
}
|
|
38
38
|
const escapedDestinationFile = destinationFile.replace(/'/g, "\\'");
|
|
39
39
|
const escapedSourceFile = sourceFile.replace(/'/g, "\\'");
|
|
40
|
-
const mergeScript = `require 'xcodeproj';
|
|
40
|
+
const mergeScript = `require 'xcodeproj';
|
|
41
|
+
sourceConfig = Xcodeproj::Config.new('${escapedDestinationFile}')
|
|
42
|
+
targetConfig = Xcodeproj::Config.new('${escapedSourceFile}')
|
|
43
|
+
if(sourceConfig.attributes.key?('IPHONEOS_DEPLOYMENT_TARGET') && targetConfig.attributes.key?('IPHONEOS_DEPLOYMENT_TARGET'))
|
|
44
|
+
sourceConfig.attributes.delete('IPHONEOS_DEPLOYMENT_TARGET')
|
|
45
|
+
end
|
|
46
|
+
sourceConfig.merge(targetConfig).save_as(Pathname.new('${escapedDestinationFile}'))`;
|
|
41
47
|
yield this.$childProcess.exec(`ruby -e "${mergeScript}"`);
|
|
42
48
|
});
|
|
43
49
|
}
|
package/package.json
CHANGED