nativescript 8.6.2-embed.0 → 8.6.2-vision.8
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.
- package/lib/bootstrap.js +4 -0
- package/lib/commands/add-platform.js +1 -1
- package/lib/commands/create-project.js +69 -9
- package/lib/commands/run.js +21 -4
- package/lib/common/definitions/mobile.d.ts +11 -0
- package/lib/common/mobile/device-platforms-constants.js +10 -0
- package/lib/common/mobile/ios/simulator/ios-emulator-services.js +8 -1
- package/lib/common/mobile/log-filter.js +3 -1
- package/lib/common/mobile/mobile-core/devices-service.js +18 -5
- package/lib/common/mobile/mobile-core/ios-device-discovery.js +7 -2
- package/lib/common/mobile/mobile-helper.js +12 -0
- package/lib/constants.js +11 -4
- package/lib/controllers/prepare-controller.js +1 -2
- package/lib/data/build-data.js +1 -2
- package/lib/data/prepare-data.js +0 -1
- package/lib/declarations.d.ts +9 -9
- package/lib/definitions/build.d.ts +1 -0
- package/lib/definitions/platform.d.ts +0 -1
- package/lib/definitions/project.d.ts +5 -0
- package/lib/device-path-provider.js +2 -2
- package/lib/helpers/livesync-command-helper.js +3 -3
- package/lib/helpers/platform-command-helper.js +3 -7
- package/lib/options.js +5 -1
- package/lib/package-installation-manager.js +15 -3
- package/lib/project-data.js +6 -0
- package/lib/resolvers/livesync-service-resolver.js +1 -1
- package/lib/services/android-project-service.js +4 -7
- package/lib/services/assets-generation/assets-generation-service.js +1 -8
- package/lib/services/build-data-service.js +1 -1
- package/lib/services/ios/spm-service.js +7 -7
- package/lib/services/ios/xcodebuild-args-service.js +16 -5
- package/lib/services/ios-project-service.js +43 -36
- package/lib/services/platform/add-platform-service.js +2 -8
- package/lib/services/platform/prepare-native-platform-service.js +3 -6
- package/lib/services/platforms-data-service.js +6 -1
- package/lib/services/plugins-service.js +6 -1
- package/lib/services/prepare-data-service.js +1 -1
- package/lib/services/project-changes-service.js +6 -1
- package/lib/services/project-data-service.js +9 -0
- package/lib/services/webpack/webpack-compiler-service.js +2 -9
- package/lib/services/xcproj-service.js +0 -12
- package/package.json +6 -6
- package/vendor/gradle-plugin/build.gradle +6 -21
- package/vendor/gradle-plugin/settings.gradle +3 -13
- package/node_modules/@npmcli/move-file/node_modules/mkdirp/CHANGELOG.md +0 -15
- package/node_modules/rimraf/CHANGELOG.md +0 -65
- package/node_modules/stringify-package/CHANGELOG.md +0 -16
|
@@ -382,6 +382,9 @@ class ProjectDataService {
|
|
|
382
382
|
constants.TNS_ANDROID_RUNTIME_NAME,
|
|
383
383
|
].includes(d.name);
|
|
384
384
|
}
|
|
385
|
+
else if (platform === "visionos") {
|
|
386
|
+
return d.name === constants.SCOPED_VISIONOS_RUNTIME_NAME;
|
|
387
|
+
}
|
|
385
388
|
});
|
|
386
389
|
if (runtimePackage) {
|
|
387
390
|
const coerced = semver.coerce(runtimePackage.version);
|
|
@@ -422,6 +425,12 @@ class ProjectDataService {
|
|
|
422
425
|
version: null,
|
|
423
426
|
};
|
|
424
427
|
}
|
|
428
|
+
else if (platform === "visionos") {
|
|
429
|
+
return {
|
|
430
|
+
name: constants.SCOPED_VISIONOS_RUNTIME_NAME,
|
|
431
|
+
version: null,
|
|
432
|
+
};
|
|
433
|
+
}
|
|
425
434
|
}
|
|
426
435
|
getNsConfigDefaultContent(data) {
|
|
427
436
|
const config = this.getNsConfigDefaultObject(data);
|
|
@@ -214,17 +214,10 @@ class WebpackCompilerService extends events_1.EventEmitter {
|
|
|
214
214
|
args.push("--watch");
|
|
215
215
|
}
|
|
216
216
|
const stdio = prepareData.watch ? ["ipc"] : "inherit";
|
|
217
|
-
const
|
|
217
|
+
const childProcess = this.$childProcess.spawn(process.execPath, args, {
|
|
218
218
|
cwd: projectData.projectDir,
|
|
219
219
|
stdio,
|
|
220
|
-
};
|
|
221
|
-
if (this.$options.nativeHost) {
|
|
222
|
-
options.env = {
|
|
223
|
-
USER_PROJECT_PLATFORMS_ANDROID: this.$options.nativeHost,
|
|
224
|
-
USER_PROJECT_PLATFORMS_IOS: this.$options.nativeHost,
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
const childProcess = this.$childProcess.spawn(process.execPath, args, options);
|
|
220
|
+
});
|
|
228
221
|
this.webpackProcesses[platformData.platformNameLowerCase] = childProcess;
|
|
229
222
|
yield this.$cleanupService.addKillProcess(childProcess.pid.toString());
|
|
230
223
|
return childProcess;
|
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const path = require("path");
|
|
4
|
-
const fs = require("fs");
|
|
5
4
|
const constants_1 = require("../constants");
|
|
6
5
|
const yok_1 = require("../common/yok");
|
|
7
6
|
class XcprojService {
|
|
8
7
|
getXcodeprojPath(projectData, projectRoot) {
|
|
9
8
|
return path.join(projectRoot, projectData.projectName + constants_1.IosProjectConstants.XcodeProjExtName);
|
|
10
9
|
}
|
|
11
|
-
findXcodeProject(dir) {
|
|
12
|
-
const filesAndDirs = fs.readdirSync(dir);
|
|
13
|
-
for (let i = 0; i < filesAndDirs.length; i++) {
|
|
14
|
-
const fullPath = path.join(dir, filesAndDirs[i]);
|
|
15
|
-
if (fs.statSync(fullPath).isDirectory() &&
|
|
16
|
-
filesAndDirs[i].endsWith(".xcodeproj")) {
|
|
17
|
-
return fullPath;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return null;
|
|
21
|
-
}
|
|
22
10
|
}
|
|
23
11
|
yok_1.injector.register("xcprojService", XcprojService);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativescript",
|
|
3
3
|
"preferGlobal": true,
|
|
4
|
-
"version": "8.6.2-
|
|
4
|
+
"version": "8.6.2-vision.8",
|
|
5
5
|
"author": "NativeScript <support@nativescript.org>",
|
|
6
6
|
"description": "Command-line interface for building NativeScript projects",
|
|
7
7
|
"bin": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"preuninstall.js"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
|
-
"clean": "npx rimraf node_modules package-lock.json && npm run setup",
|
|
32
|
+
"clean": "npx rimraf node_modules package-lock.json yarn.lock && npm run setup",
|
|
33
33
|
"build": "grunt",
|
|
34
34
|
"build.all": "grunt test",
|
|
35
35
|
"dev": "tsc --watch",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@npmcli/move-file": "^2.0.0",
|
|
62
62
|
"@rigor789/resolve-package-path": "1.0.7",
|
|
63
63
|
"@rigor789/trapezedev-project": "7.1.1",
|
|
64
|
-
|
|
64
|
+
"ansi-colors": "^4.1.3",
|
|
65
65
|
"archiver": "^5.3.1",
|
|
66
66
|
"axios": "1.3.5",
|
|
67
67
|
"byline": "5.0.0",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"esprima": "4.0.1",
|
|
76
76
|
"font-finder": "1.1.0",
|
|
77
77
|
"glob": "9.3.4",
|
|
78
|
-
"ios-device-lib": "0.9.
|
|
78
|
+
"ios-device-lib": "0.9.2",
|
|
79
79
|
"ios-mobileprovision-finder": "1.1.0",
|
|
80
|
-
"ios-sim-portable": "4.4.
|
|
80
|
+
"ios-sim-portable": "4.4.2",
|
|
81
81
|
"jimp": "0.22.7",
|
|
82
82
|
"lodash": "4.17.21",
|
|
83
83
|
"log4js": "6.9.1",
|
|
@@ -185,4 +185,4 @@
|
|
|
185
185
|
"@npmcli/move-file",
|
|
186
186
|
"stringify-package"
|
|
187
187
|
]
|
|
188
|
-
}
|
|
188
|
+
}
|
|
@@ -8,27 +8,8 @@ apply plugin: 'kotlin-android'
|
|
|
8
8
|
apply plugin: 'kotlin-parcelize'
|
|
9
9
|
|
|
10
10
|
buildscript {
|
|
11
|
-
// project.ext.USER_PROJECT_ROOT = "$rootDir/../../.."
|
|
12
|
-
project.ext.PLATFORMS_ANDROID = "platforms/android"
|
|
13
|
-
project.ext.PLUGIN_NAME = "{{pluginName}}"
|
|
14
|
-
|
|
15
|
-
def USER_PROJECT_ROOT_FROM_ENV = System.getenv('USER_PROJECT_ROOT');
|
|
16
|
-
if (USER_PROJECT_ROOT_FROM_ENV != null && !USER_PROJECT_ROOT_FROM_ENV.equals("")) {
|
|
17
|
-
project.ext.USER_PROJECT_ROOT = USER_PROJECT_ROOT_FROM_ENV;
|
|
18
|
-
} else {
|
|
19
|
-
project.ext.USER_PROJECT_ROOT = "$rootDir/../../../"
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
def USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV = System.getenv('USER_PROJECT_PLATFORMS_ANDROID');
|
|
23
|
-
if (USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV != null && !USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV.equals("")) {
|
|
24
|
-
project.ext.USER_PROJECT_PLATFORMS_ANDROID = USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV;
|
|
25
|
-
} else {
|
|
26
|
-
project.ext.USER_PROJECT_PLATFORMS_ANDROID = project.ext.USER_PROJECT_ROOT + PLATFORMS_ANDROID
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
11
|
def getDepPlatformDir = { dep ->
|
|
31
|
-
file("${project.ext.
|
|
12
|
+
file("${project.ext.USER_PROJECT_ROOT}/${project.ext.PLATFORMS_ANDROID}/${dep.directory}/$PLATFORMS_ANDROID")
|
|
32
13
|
}
|
|
33
14
|
def computeKotlinVersion = { -> project.hasProperty("kotlinVersion") ? kotlinVersion : "1.8.20" }
|
|
34
15
|
def kotlinVersion = computeKotlinVersion()
|
|
@@ -48,8 +29,12 @@ buildscript {
|
|
|
48
29
|
project.ext.getDepPlatformDir = getDepPlatformDir
|
|
49
30
|
project.ext.outLogger = services.get(StyledTextOutputFactory).create("colouredOutputLogger")
|
|
50
31
|
|
|
32
|
+
project.ext.USER_PROJECT_ROOT = "$rootDir/../../.."
|
|
33
|
+
project.ext.PLATFORMS_ANDROID = "platforms/android"
|
|
34
|
+
project.ext.PLUGIN_NAME = "{{pluginName}}"
|
|
35
|
+
|
|
51
36
|
// the build script will not work with previous versions of the CLI (3.1 or earlier)
|
|
52
|
-
def dependenciesJson = file("${project.ext.
|
|
37
|
+
def dependenciesJson = file("${project.ext.USER_PROJECT_ROOT}/${project.ext.PLATFORMS_ANDROID}/dependencies.json")
|
|
53
38
|
def appDependencies = new JsonSlurper().parseText(dependenciesJson.text)
|
|
54
39
|
def pluginData = appDependencies.find { it.name == project.ext.PLUGIN_NAME }
|
|
55
40
|
project.ext.nativescriptDependencies = appDependencies.findAll{pluginData.dependencies.contains(it.name)}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
1
|
import groovy.json.JsonSlurper
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
def USER_PROJECT_ROOT = "$rootDir/../../../"
|
|
4
4
|
def PLATFORMS_ANDROID = "platforms/android"
|
|
5
5
|
def PLUGIN_NAME = "{{pluginName}}"
|
|
6
6
|
|
|
7
|
-
def
|
|
8
|
-
def USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV = System.getenv('USER_PROJECT_PLATFORMS_ANDROID');
|
|
9
|
-
if (USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV != null && !USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV.equals("")) {
|
|
10
|
-
USER_PROJECT_PLATFORMS_ANDROID = USER_PROJECT_PLATFORMS_ANDROID_FROM_ENV;
|
|
11
|
-
} else {
|
|
12
|
-
USER_PROJECT_PLATFORMS_ANDROID = "$rootDir/../../../platforms/android"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
System.out.println("!!!!! VM: USER_PROJECT_PLATFORMS_ANDROID: " + USER_PROJECT_PLATFORMS_ANDROID);
|
|
16
|
-
|
|
17
|
-
def dependenciesJson = file("${USER_PROJECT_PLATFORMS_ANDROID}/dependencies.json")
|
|
7
|
+
def dependenciesJson = file("${USER_PROJECT_ROOT}/${PLATFORMS_ANDROID}/dependencies.json")
|
|
18
8
|
def appDependencies = new JsonSlurper().parseText(dependenciesJson.text)
|
|
19
9
|
def pluginData = appDependencies.find { it.name == PLUGIN_NAME }
|
|
20
10
|
def nativescriptDependencies = appDependencies.findAll{pluginData.name == it.name}
|
|
21
11
|
|
|
22
12
|
def getDepPlatformDir = { dep ->
|
|
23
|
-
file("$
|
|
13
|
+
file("$USER_PROJECT_ROOT/$PLATFORMS_ANDROID/${dep.directory}/$PLATFORMS_ANDROID")
|
|
24
14
|
}
|
|
25
15
|
|
|
26
16
|
def applyIncludeSettingsGradlePlugin = {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Changers Lorgs!
|
|
2
|
-
|
|
3
|
-
## 1.0
|
|
4
|
-
|
|
5
|
-
Full rewrite. Essentially a brand new module.
|
|
6
|
-
|
|
7
|
-
- Return a promise instead of taking a callback.
|
|
8
|
-
- Use native `fs.mkdir(path, { recursive: true })` when available.
|
|
9
|
-
- Drop support for outdated Node.js versions. (Technically still works on
|
|
10
|
-
Node.js v8, but only 10 and above are officially supported.)
|
|
11
|
-
|
|
12
|
-
## 0.x
|
|
13
|
-
|
|
14
|
-
Original and most widely used recursive directory creation implementation
|
|
15
|
-
in JavaScript, dating back to 2010.
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# v3.0
|
|
2
|
-
|
|
3
|
-
- Add `--preserve-root` option to executable (default true)
|
|
4
|
-
- Drop support for Node.js below version 6
|
|
5
|
-
|
|
6
|
-
# v2.7
|
|
7
|
-
|
|
8
|
-
- Make `glob` an optional dependency
|
|
9
|
-
|
|
10
|
-
# 2.6
|
|
11
|
-
|
|
12
|
-
- Retry on EBUSY on non-windows platforms as well
|
|
13
|
-
- Make `rimraf.sync` 10000% more reliable on Windows
|
|
14
|
-
|
|
15
|
-
# 2.5
|
|
16
|
-
|
|
17
|
-
- Handle Windows EPERM when lstat-ing read-only dirs
|
|
18
|
-
- Add glob option to pass options to glob
|
|
19
|
-
|
|
20
|
-
# 2.4
|
|
21
|
-
|
|
22
|
-
- Add EPERM to delay/retry loop
|
|
23
|
-
- Add `disableGlob` option
|
|
24
|
-
|
|
25
|
-
# 2.3
|
|
26
|
-
|
|
27
|
-
- Make maxBusyTries and emfileWait configurable
|
|
28
|
-
- Handle weird SunOS unlink-dir issue
|
|
29
|
-
- Glob the CLI arg for better Windows support
|
|
30
|
-
|
|
31
|
-
# 2.2
|
|
32
|
-
|
|
33
|
-
- Handle ENOENT properly on Windows
|
|
34
|
-
- Allow overriding fs methods
|
|
35
|
-
- Treat EPERM as indicative of non-empty dir
|
|
36
|
-
- Remove optional graceful-fs dep
|
|
37
|
-
- Consistently return null error instead of undefined on success
|
|
38
|
-
- win32: Treat ENOTEMPTY the same as EBUSY
|
|
39
|
-
- Add `rimraf` binary
|
|
40
|
-
|
|
41
|
-
# 2.1
|
|
42
|
-
|
|
43
|
-
- Fix SunOS error code for a non-empty directory
|
|
44
|
-
- Try rmdir before readdir
|
|
45
|
-
- Treat EISDIR like EPERM
|
|
46
|
-
- Remove chmod
|
|
47
|
-
- Remove lstat polyfill, node 0.7 is not supported
|
|
48
|
-
|
|
49
|
-
# 2.0
|
|
50
|
-
|
|
51
|
-
- Fix myGid call to check process.getgid
|
|
52
|
-
- Simplify the EBUSY backoff logic.
|
|
53
|
-
- Use fs.lstat in node >= 0.7.9
|
|
54
|
-
- Remove gently option
|
|
55
|
-
- remove fiber implementation
|
|
56
|
-
- Delete files that are marked read-only
|
|
57
|
-
|
|
58
|
-
# 1.0
|
|
59
|
-
|
|
60
|
-
- Allow ENOENT in sync method
|
|
61
|
-
- Throw when no callback is provided
|
|
62
|
-
- Make opts.gently an absolute path
|
|
63
|
-
- use 'stat' if 'lstat' is not available
|
|
64
|
-
- Consistent error naming, and rethrow non-ENOENT stat errors
|
|
65
|
-
- add fiber implementation
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
<a name="1.0.1"></a>
|
|
6
|
-
## [1.0.1](https://github.com/npm/stringify-package/compare/v1.0.0...v1.0.1) (2019-09-30)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bug Fixes
|
|
10
|
-
|
|
11
|
-
* strict comparison ([0c5675f](https://github.com/npm/stringify-package/commit/0c5675f)), closes [#2](https://github.com/npm/stringify-package/issues/2)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<a name="1.0.0"></a>
|
|
16
|
-
# 1.0.0 (2018-07-18)
|