nativescript 9.0.6-dev.2 → 9.0.6-dev.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.
|
@@ -865,6 +865,7 @@ interface IAddExtensionsFromPathOptions extends IAddTargetFromPathOptions {
|
|
|
865
865
|
|
|
866
866
|
interface IAddWatchAppFromPathOptions extends IAddTargetFromPathOptions {
|
|
867
867
|
watchAppFolderPath: string;
|
|
868
|
+
disableStubBinary?: boolean;
|
|
868
869
|
}
|
|
869
870
|
|
|
870
871
|
interface IRemoveExtensionsOptions {
|
|
@@ -96,6 +96,7 @@ class BundlerCompilerService extends events_1.EventEmitter {
|
|
|
96
96
|
console.log("Vite first build completed, resolving compileWithWatch");
|
|
97
97
|
}
|
|
98
98
|
resolve(childProcess);
|
|
99
|
+
return;
|
|
99
100
|
}
|
|
100
101
|
// Transform Vite message to match webpack format
|
|
101
102
|
const files = message.emittedFiles.map((file) => path.join(platformData.appDestinationDirectoryPath, this.$options.hostProjectModuleName, file));
|
|
@@ -69,7 +69,7 @@ class IOSWatchAppService {
|
|
|
69
69
|
const file = project.addSourceFile(path, opt, group);
|
|
70
70
|
project.addToResourcesPbxGroup(file, group);
|
|
71
71
|
}
|
|
72
|
-
async addWatchAppFromPath({ watchAppFolderPath, projectData, platformData, pbxProjPath, }) {
|
|
72
|
+
async addWatchAppFromPath({ watchAppFolderPath, projectData, platformData, pbxProjPath, disableStubBinary = false, }) {
|
|
73
73
|
var _a, _b;
|
|
74
74
|
const targetUuids = [];
|
|
75
75
|
const targetNames = [];
|
|
@@ -119,6 +119,9 @@ class IOSWatchAppService {
|
|
|
119
119
|
await this.applySPMPackagesToTargets(targetNames, platformData, projectData.projectDir, watchSPMPackages);
|
|
120
120
|
// nothing done after we dont need to reload project
|
|
121
121
|
this.$iOSNativeTargetService.prepareSigning(targetUuids, projectData, pbxProjPath);
|
|
122
|
+
if (disableStubBinary) {
|
|
123
|
+
this.applyWatchAppStubBinaryOverrides(appFolder, pbxProjPath);
|
|
124
|
+
}
|
|
122
125
|
return true;
|
|
123
126
|
}
|
|
124
127
|
addTarget(targetRootPath, targetFolder, targetType, project, platformData, parentTarget, productTargetType) {
|
|
@@ -295,6 +298,15 @@ class IOSWatchAppService {
|
|
|
295
298
|
await this.processWatchAppConfiguration(config, basedir, targetName, target, project, projectData, platformData, pbxProjPath, srcExclude, resourcesExclude);
|
|
296
299
|
}
|
|
297
300
|
}
|
|
301
|
+
applyWatchAppStubBinaryOverrides(targetName, pbxProjPath) {
|
|
302
|
+
const project = new this.$xcode.project(pbxProjPath);
|
|
303
|
+
project.parseSync();
|
|
304
|
+
this.$iOSNativeTargetService.setXcodeTargetBuildConfigurationProperties([
|
|
305
|
+
{ name: "PRODUCT_BINARY_SOURCE_PATH", value: '""' },
|
|
306
|
+
{ name: "PRODUCT_TYPE_HAS_STUB_BINARY", value: "NO" },
|
|
307
|
+
], targetName, project);
|
|
308
|
+
this.$fs.writeFile(pbxProjPath, project.writeSync({ omitEmptyValues: true }));
|
|
309
|
+
}
|
|
298
310
|
async processWatchAppConfiguration(config, basedir, targetName, target, project, projectData, platformData, pbxProjPath, srcExclude, resourcesExclude) {
|
|
299
311
|
this.$logger.debug(`processWatchAppConfiguration ${JSON.stringify(config)}`);
|
|
300
312
|
// Handle custom resources
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativescript",
|
|
3
3
|
"main": "./lib/nativescript-cli-lib.js",
|
|
4
|
-
"version": "9.0.6-dev.
|
|
4
|
+
"version": "9.0.6-dev.3",
|
|
5
5
|
"author": "NativeScript <oss@nativescript.org>",
|
|
6
6
|
"description": "Command-line interface for building NativeScript projects",
|
|
7
7
|
"bin": {
|