nativescript 9.1.1-dev.1 → 9.1.2-dev.2026-09-24-36031892256
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/README.md +13 -8
- package/config/test-deps-versions-generated.json +1 -1
- package/docs/man_pages/project/testing/build-windows.md +64 -0
- package/docs/man_pages/project/testing/build.md +4 -2
- package/docs/man_pages/project/testing/debug-windows.md +69 -0
- package/docs/man_pages/project/testing/debug.md +5 -2
- package/docs/man_pages/project/testing/run-windows.md +63 -0
- package/docs/man_pages/project/testing/run.md +5 -2
- package/lib/bootstrap.js +5 -0
- package/lib/commands/build.d.ts +10 -0
- package/lib/commands/build.js +41 -1
- package/lib/commands/debug.d.ts +12 -0
- package/lib/commands/debug.js +28 -1
- package/lib/commands/run.d.ts +14 -0
- package/lib/commands/run.js +35 -1
- package/lib/commands/typings.d.ts +1 -0
- package/lib/commands/typings.js +55 -0
- package/lib/common/bootstrap.js +1 -0
- package/lib/common/commands/doctor.d.ts +7 -0
- package/lib/common/commands/doctor.js +18 -1
- package/lib/common/definitions/mobile.d.ts +9 -0
- package/lib/common/file-system.js +34 -6
- package/lib/common/http-client.js +9 -2
- package/lib/common/mobile/device-platforms-constants.d.ts +2 -0
- package/lib/common/mobile/device-platforms-constants.js +4 -0
- package/lib/common/mobile/mobile-core/devices-service.d.ts +2 -1
- package/lib/common/mobile/mobile-core/devices-service.js +7 -1
- package/lib/common/mobile/mobile-helper.d.ts +1 -0
- package/lib/common/mobile/mobile-helper.js +9 -0
- package/lib/common/mobile/windows/windows-application-manager.d.ts +25 -0
- package/lib/common/mobile/windows/windows-application-manager.js +237 -0
- package/lib/common/mobile/windows/windows-device-discovery.d.ts +9 -0
- package/lib/common/mobile/windows/windows-device-discovery.js +27 -0
- package/lib/common/mobile/windows/windows-device-file-system.d.ts +15 -0
- package/lib/common/mobile/windows/windows-device-file-system.js +74 -0
- package/lib/common/mobile/windows/windows-device.d.ts +13 -0
- package/lib/common/mobile/windows/windows-device.js +110 -0
- package/lib/constants.d.ts +12 -2
- package/lib/constants.js +15 -4
- package/lib/controllers/prepare-controller.js +3 -0
- package/lib/controllers/run-controller.js +1 -0
- package/lib/data/build-data.d.ts +11 -0
- package/lib/data/build-data.js +18 -1
- package/lib/data/prepare-data.d.ts +4 -0
- package/lib/data/prepare-data.js +8 -1
- package/lib/declarations.d.ts +9 -0
- package/lib/definitions/livesync.d.ts +3 -0
- package/lib/definitions/project.d.ts +10 -0
- package/lib/device-path-provider.d.ts +3 -1
- package/lib/device-path-provider.js +13 -1
- package/lib/options.js +19 -0
- package/lib/project-data.js +5 -0
- package/lib/resolvers/livesync-service-resolver.js +3 -0
- package/lib/services/apple-portal/apple-portal-session-service.d.ts +1 -0
- package/lib/services/apple-portal/apple-portal-session-service.js +34 -0
- package/lib/services/build-data-service.d.ts +2 -2
- package/lib/services/build-data-service.js +3 -0
- package/lib/services/build-info-file-service.js +1 -0
- package/lib/services/bundler/bundler-compiler-service.js +1 -0
- package/lib/services/livesync/windows-device-livesync-service.d.ts +14 -0
- package/lib/services/livesync/windows-device-livesync-service.js +47 -0
- package/lib/services/livesync/windows-livesync-service.d.ts +13 -0
- package/lib/services/livesync/windows-livesync-service.js +19 -0
- package/lib/services/platform/add-platform-service.js +9 -1
- package/lib/services/platforms-data-service.d.ts +1 -1
- package/lib/services/platforms-data-service.js +2 -1
- package/lib/services/prepare-data-service.d.ts +2 -2
- package/lib/services/prepare-data-service.js +4 -1
- package/lib/services/project-cleanup-service.d.ts +1 -0
- package/lib/services/project-cleanup-service.js +30 -1
- package/lib/services/project-data-service.js +18 -0
- package/lib/services/windows-project-service.d.ts +42 -0
- package/lib/services/windows-project-service.js +907 -0
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WindowsDeviceDiscovery = void 0;
|
|
4
|
+
const device_discovery_1 = require("../mobile-core/device-discovery");
|
|
5
|
+
const windows_device_1 = require("./windows-device");
|
|
6
|
+
const yok_1 = require("../../yok");
|
|
7
|
+
class WindowsDeviceDiscovery extends device_discovery_1.DeviceDiscovery {
|
|
8
|
+
constructor($injector, $mobileHelper) {
|
|
9
|
+
super();
|
|
10
|
+
this.$injector = $injector;
|
|
11
|
+
this.$mobileHelper = $mobileHelper;
|
|
12
|
+
this._deviceAdded = false;
|
|
13
|
+
}
|
|
14
|
+
async startLookingForDevices(options) {
|
|
15
|
+
if ((options === null || options === void 0 ? void 0 : options.platform) &&
|
|
16
|
+
!this.$mobileHelper.isWindowsPlatform(options.platform)) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (!this._deviceAdded) {
|
|
20
|
+
this._deviceAdded = true;
|
|
21
|
+
const device = this.$injector.resolve(windows_device_1.WindowsDevice);
|
|
22
|
+
this.addDevice(device);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.WindowsDeviceDiscovery = WindowsDeviceDiscovery;
|
|
27
|
+
yok_1.injector.register("windowsDeviceDiscovery", WindowsDeviceDiscovery);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IStringDictionary } from "../../declarations";
|
|
2
|
+
export declare class WindowsDeviceFileSystem implements Mobile.IDeviceFileSystem {
|
|
3
|
+
listFiles(_devicePath: string): Promise<void>;
|
|
4
|
+
getFile(deviceFilePath: string, _appIdentifier: string, outputFilePath?: string): Promise<void>;
|
|
5
|
+
getFileContent(deviceFilePath: string, _appIdentifier: string): Promise<string>;
|
|
6
|
+
putFile(localFilePath: string, deviceFilePath: string, _appIdentifier: string): Promise<void>;
|
|
7
|
+
deleteFile(deviceFilePath: string, _appIdentifier: string): Promise<void>;
|
|
8
|
+
transferFiles(_deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[]): Promise<Mobile.ILocalToDevicePathData[]>;
|
|
9
|
+
transferDirectory(_deviceAppData: Mobile.IDeviceAppData, localToDevicePaths: Mobile.ILocalToDevicePathData[], _projectFilesPath: string): Promise<Mobile.ILocalToDevicePathData[]>;
|
|
10
|
+
private _syncPaths;
|
|
11
|
+
transferFile(localFilePath: string, deviceFilePath: string): Promise<void>;
|
|
12
|
+
createFileOnDevice(deviceFilePath: string, fileContent: string): Promise<void>;
|
|
13
|
+
updateHashesOnDevice(_hashes: IStringDictionary, _appIdentifier: string): Promise<void>;
|
|
14
|
+
getDeviceHashService(_appIdentifier: string): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WindowsDeviceFileSystem = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
class WindowsDeviceFileSystem {
|
|
7
|
+
async listFiles(_devicePath) {
|
|
8
|
+
}
|
|
9
|
+
async getFile(deviceFilePath, _appIdentifier, outputFilePath) {
|
|
10
|
+
if (outputFilePath) {
|
|
11
|
+
fs.copyFileSync(deviceFilePath, outputFilePath);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
async getFileContent(deviceFilePath, _appIdentifier) {
|
|
15
|
+
return fs.existsSync(deviceFilePath)
|
|
16
|
+
? fs.readFileSync(deviceFilePath, "utf8")
|
|
17
|
+
: null;
|
|
18
|
+
}
|
|
19
|
+
async putFile(localFilePath, deviceFilePath, _appIdentifier) {
|
|
20
|
+
fs.mkdirSync(path.dirname(deviceFilePath), { recursive: true });
|
|
21
|
+
fs.copyFileSync(localFilePath, deviceFilePath);
|
|
22
|
+
}
|
|
23
|
+
async deleteFile(deviceFilePath, _appIdentifier) {
|
|
24
|
+
if (fs.existsSync(deviceFilePath)) {
|
|
25
|
+
fs.unlinkSync(deviceFilePath);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
async transferFiles(_deviceAppData, localToDevicePaths) {
|
|
29
|
+
this._syncPaths(localToDevicePaths);
|
|
30
|
+
return localToDevicePaths;
|
|
31
|
+
}
|
|
32
|
+
async transferDirectory(_deviceAppData, localToDevicePaths, _projectFilesPath) {
|
|
33
|
+
this._syncPaths(localToDevicePaths);
|
|
34
|
+
return localToDevicePaths;
|
|
35
|
+
}
|
|
36
|
+
_syncPaths(localToDevicePaths) {
|
|
37
|
+
for (const pathData of localToDevicePaths) {
|
|
38
|
+
const src = pathData.getLocalPath();
|
|
39
|
+
const dest = pathData.getDevicePath();
|
|
40
|
+
if (src === dest) {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
const stat = fs.statSync(src);
|
|
45
|
+
if (stat.isDirectory()) {
|
|
46
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
50
|
+
fs.copyFileSync(src, dest);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
catch (_a) {
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
async transferFile(localFilePath, deviceFilePath) {
|
|
58
|
+
fs.mkdirSync(path.dirname(deviceFilePath), { recursive: true });
|
|
59
|
+
fs.copyFileSync(localFilePath, deviceFilePath);
|
|
60
|
+
}
|
|
61
|
+
async createFileOnDevice(deviceFilePath, fileContent) {
|
|
62
|
+
fs.mkdirSync(path.dirname(deviceFilePath), { recursive: true });
|
|
63
|
+
fs.writeFileSync(deviceFilePath, fileContent, "utf8");
|
|
64
|
+
}
|
|
65
|
+
async updateHashesOnDevice(_hashes, _appIdentifier) {
|
|
66
|
+
}
|
|
67
|
+
getDeviceHashService(_appIdentifier) {
|
|
68
|
+
return {
|
|
69
|
+
generateHashesFromLocalToDevicePaths: async (_paths) => ({}),
|
|
70
|
+
removeHashes: async (_paths) => { },
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.WindowsDeviceFileSystem = WindowsDeviceFileSystem;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IHooksService, IChildProcess } from "../../declarations";
|
|
2
|
+
export declare class WindowsDevice implements Mobile.IDevice {
|
|
3
|
+
private $deviceLogProvider;
|
|
4
|
+
applicationManager: Mobile.IDeviceApplicationManager;
|
|
5
|
+
fileSystem: Mobile.IDeviceFileSystem;
|
|
6
|
+
readonly isEmulator = false;
|
|
7
|
+
readonly isOnlyWiFiConnected = false;
|
|
8
|
+
readonly deviceInfo: Mobile.IDeviceInfo;
|
|
9
|
+
private _logTailInterval;
|
|
10
|
+
private _crashLogTailInterval;
|
|
11
|
+
constructor($logger: ILogger, $hooksService: IHooksService, $deviceLogProvider: Mobile.IDeviceLogProvider, $childProcess: IChildProcess);
|
|
12
|
+
openDeviceLogStream(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WindowsDevice = void 0;
|
|
4
|
+
const os = require("os");
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
const constants_2 = require("../../constants");
|
|
8
|
+
const windows_application_manager_1 = require("./windows-application-manager");
|
|
9
|
+
const windows_device_file_system_1 = require("./windows-device-file-system");
|
|
10
|
+
class WindowsDevice {
|
|
11
|
+
constructor($logger, $hooksService, $deviceLogProvider, $childProcess) {
|
|
12
|
+
this.$deviceLogProvider = $deviceLogProvider;
|
|
13
|
+
this.isEmulator = false;
|
|
14
|
+
this.isOnlyWiFiConnected = false;
|
|
15
|
+
this.deviceInfo = {
|
|
16
|
+
identifier: os.hostname(),
|
|
17
|
+
displayName: `${os.hostname()} (Windows ${os.release()})`,
|
|
18
|
+
model: "PC",
|
|
19
|
+
version: os.release(),
|
|
20
|
+
vendor: "Microsoft",
|
|
21
|
+
status: constants_2.CONNECTED_STATUS,
|
|
22
|
+
errorHelp: null,
|
|
23
|
+
isTablet: false,
|
|
24
|
+
type: constants_2.DeviceTypes.Device,
|
|
25
|
+
platform: "Windows",
|
|
26
|
+
connectionTypes: [constants_1.DeviceConnectionType.Local],
|
|
27
|
+
};
|
|
28
|
+
this._logTailInterval = null;
|
|
29
|
+
this._crashLogTailInterval = null;
|
|
30
|
+
this.applicationManager = new windows_application_manager_1.WindowsApplicationManager($logger, $hooksService, $deviceLogProvider, $childProcess, () => this.openDeviceLogStream());
|
|
31
|
+
this.fileSystem = new windows_device_file_system_1.WindowsDeviceFileSystem();
|
|
32
|
+
}
|
|
33
|
+
async openDeviceLogStream() {
|
|
34
|
+
if (this._logTailInterval) {
|
|
35
|
+
clearInterval(this._logTailInterval);
|
|
36
|
+
this._logTailInterval = null;
|
|
37
|
+
}
|
|
38
|
+
if (this._crashLogTailInterval) {
|
|
39
|
+
clearInterval(this._crashLogTailInterval);
|
|
40
|
+
this._crashLogTailInterval = null;
|
|
41
|
+
}
|
|
42
|
+
const manager = this.applicationManager;
|
|
43
|
+
const logPath = manager.getLogFilePath();
|
|
44
|
+
const crashLogPath = manager.getCrashLogPath();
|
|
45
|
+
const deviceId = this.deviceInfo.identifier;
|
|
46
|
+
let offset = 0;
|
|
47
|
+
const MAX_LOG_BYTES = 10 * 1024 * 1024;
|
|
48
|
+
const INTERNAL_PREFIXES = [
|
|
49
|
+
"[NativeScript] init_console:",
|
|
50
|
+
"[NativeScript] log file:",
|
|
51
|
+
"[NativeScript] delegate ctor:",
|
|
52
|
+
];
|
|
53
|
+
const isInternalTrace = (line) => INTERNAL_PREFIXES.some((p) => line.startsWith(p));
|
|
54
|
+
this._logTailInterval = setInterval(() => {
|
|
55
|
+
try {
|
|
56
|
+
const stat = fs.statSync(logPath);
|
|
57
|
+
if (stat.size <= offset)
|
|
58
|
+
return;
|
|
59
|
+
const toRead = stat.size - offset;
|
|
60
|
+
const buf = Buffer.alloc(toRead);
|
|
61
|
+
const fd = fs.openSync(logPath, "r");
|
|
62
|
+
fs.readSync(fd, buf, 0, toRead, offset);
|
|
63
|
+
fs.closeSync(fd);
|
|
64
|
+
offset = stat.size;
|
|
65
|
+
const lines = buf.toString("utf8").split(/\r?\n/);
|
|
66
|
+
for (const line of lines) {
|
|
67
|
+
if (line.trim() && !isInternalTrace(line)) {
|
|
68
|
+
this.$deviceLogProvider.logData(line, "Windows", deviceId);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (stat.size > MAX_LOG_BYTES) {
|
|
72
|
+
try {
|
|
73
|
+
fs.writeFileSync(logPath, "", "utf8");
|
|
74
|
+
offset = 0;
|
|
75
|
+
}
|
|
76
|
+
catch (_a) { }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch (_b) { }
|
|
80
|
+
}, 50);
|
|
81
|
+
if (crashLogPath) {
|
|
82
|
+
try {
|
|
83
|
+
fs.writeFileSync(crashLogPath, "", "utf8");
|
|
84
|
+
}
|
|
85
|
+
catch (_a) { }
|
|
86
|
+
let crashOffset = 0;
|
|
87
|
+
this._crashLogTailInterval = setInterval(() => {
|
|
88
|
+
try {
|
|
89
|
+
const stat = fs.statSync(crashLogPath);
|
|
90
|
+
if (stat.size <= crashOffset)
|
|
91
|
+
return;
|
|
92
|
+
const toRead = stat.size - crashOffset;
|
|
93
|
+
const buf = Buffer.alloc(toRead);
|
|
94
|
+
const fd = fs.openSync(crashLogPath, "r");
|
|
95
|
+
fs.readSync(fd, buf, 0, toRead, crashOffset);
|
|
96
|
+
fs.closeSync(fd);
|
|
97
|
+
crashOffset = stat.size;
|
|
98
|
+
const lines = buf.toString("utf8").split(/\r?\n/);
|
|
99
|
+
for (const line of lines) {
|
|
100
|
+
if (line.trim()) {
|
|
101
|
+
this.$deviceLogProvider.logData(`[crash] ${line}`, "Windows", deviceId);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
catch (_a) { }
|
|
106
|
+
}, 50);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
exports.WindowsDevice = WindowsDevice;
|
package/lib/constants.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ export declare const TNS_IOS_RUNTIME_NAME = "tns-ios";
|
|
|
20
20
|
export declare const SCOPED_ANDROID_RUNTIME_NAME = "@nativescript/android";
|
|
21
21
|
export declare const SCOPED_IOS_RUNTIME_NAME = "@nativescript/ios";
|
|
22
22
|
export declare const SCOPED_VISIONOS_RUNTIME_NAME = "@nativescript/visionos";
|
|
23
|
+
export declare const SCOPED_WINDOWS_RUNTIME_NAME = "@nativescript/windows";
|
|
24
|
+
export declare const SCOPED_WINDOWS_HERMES_RUNTIME_NAME = "@nativescript/windows-hermes";
|
|
25
|
+
export declare const SCOPED_WINDOWS_V8_RUNTIME_NAME = "@nativescript/windows-v8";
|
|
26
|
+
export declare const SCOPED_WINDOWS_QUICKJS_RUNTIME_NAME = "@nativescript/windows-quickjs";
|
|
27
|
+
export declare const SCOPED_WINDOWS_JSC_RUNTIME_NAME = "@nativescript/windows-jsc";
|
|
23
28
|
export declare const PACKAGE_JSON_FILE_NAME = "package.json";
|
|
24
29
|
export declare const PACKAGE_LOCK_JSON_FILE_NAME = "package-lock.json";
|
|
25
30
|
export declare const ANDROID_DEVICE_APP_ROOT_TEMPLATE = "/data/data/%s/files";
|
|
@@ -162,6 +167,10 @@ export declare const BUNDLETOOL_PATH_ENV_VAR = "NS_BUNDLETOOL_PATH";
|
|
|
162
167
|
export declare const POST_INSTALL_COMMAND_NAME = "post-install-cli";
|
|
163
168
|
export declare const ANDROID_RELEASE_BUILD_ERROR_MESSAGE = "When producing a release build, you need to specify all --key-store-* options.";
|
|
164
169
|
export declare const ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE = "When producing Android App Bundle, you need to specify all --key-store-* options.";
|
|
170
|
+
export declare const WINDOWS_RELEASE_UNSIGNED_MESSAGE = "Producing an unsigned Windows release package. The resulting .msix cannot be installed directly until it is signed. Pass --certificate (and --certificate-password) or --certificate-thumbprint to produce a signed, sideloadable package, or use --store-upload to produce a package for submission to the Microsoft Store.";
|
|
171
|
+
export declare class WindowsAppPackageMessages {
|
|
172
|
+
static STORE_UPLOAD_DOCS_MESSAGE: string;
|
|
173
|
+
}
|
|
165
174
|
export declare const CACACHE_DIRECTORY_NAME = "_cacache";
|
|
166
175
|
export declare const FILES_CHANGE_EVENT_NAME = "filesChangeEvent";
|
|
167
176
|
export declare const INITIAL_SYNC_EVENT_NAME = "initialSyncEvent";
|
|
@@ -248,9 +257,10 @@ export declare const PLUGINS_BUILD_DATA_FILENAME = ".ns-plugins-build-data.json"
|
|
|
248
257
|
export declare const enum PlatformTypes {
|
|
249
258
|
ios = "ios",
|
|
250
259
|
android = "android",
|
|
251
|
-
visionos = "visionos"
|
|
260
|
+
visionos = "visionos",
|
|
261
|
+
windows = "windows"
|
|
252
262
|
}
|
|
253
|
-
export type SupportedPlatform = PlatformTypes.ios | PlatformTypes.android | PlatformTypes.visionos;
|
|
263
|
+
export type SupportedPlatform = PlatformTypes.ios | PlatformTypes.android | PlatformTypes.visionos | PlatformTypes.windows;
|
|
254
264
|
export declare const PODFILE_NAME = "Podfile";
|
|
255
265
|
export declare const EXTENSION_PROVISIONING_FILENAME = "provisioning.json";
|
|
256
266
|
export declare class IosProjectConstants {
|
package/lib/constants.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.BuildNames = exports.PackageManagers = exports.EMIT_APPENDER_EVENT_NAME = exports.LoggerConfigData = exports.LoggerLevel = exports.DeviceConnectionType = exports.LoggerAppenders = exports.IOSNativeTargetTypes = exports.IOSNativeTargetProductTypes = void 0;
|
|
3
|
+
exports.ANDROID_ANALYTICS_DATA_DIR = exports.FONTS_DIR = exports.ASSETS_DIR = exports.MAIN_DIR = exports.SRC_DIR = exports.AWAIT_NOTIFICATION_TIMEOUT_SECONDS = exports.CODE_SIGN_ENTITLEMENTS = exports.LIB_DIR_NAME = exports.KARMA_CONFIG_NAME = exports.TSCCONFIG_TNS_JSON_NAME = exports.RSPACK_CONFIG_NAME = exports.WEBPACK_CONFIG_NAME = exports.HOOKS_DIR_NAME = exports.PLATFORMS_DIR_NAME = exports.XML_FILE_EXTENSION = exports.LIVESYNC_EXCLUDED_FILE_PATTERNS = exports.TEST_RUNNER_NAME = exports.TESTING_FRAMEWORKS = exports.LIVESYNC_EXCLUDED_DIRECTORIES = exports.DEFAULT_APP_IDENTIFIER_PREFIX = exports.NODE_MODULE_CACHE_PATH_KEY_NAME = exports.ANDROID_DEVICE_APP_ROOT_TEMPLATE = exports.PACKAGE_LOCK_JSON_FILE_NAME = exports.PACKAGE_JSON_FILE_NAME = exports.SCOPED_WINDOWS_JSC_RUNTIME_NAME = exports.SCOPED_WINDOWS_QUICKJS_RUNTIME_NAME = exports.SCOPED_WINDOWS_V8_RUNTIME_NAME = exports.SCOPED_WINDOWS_HERMES_RUNTIME_NAME = exports.SCOPED_WINDOWS_RUNTIME_NAME = exports.SCOPED_VISIONOS_RUNTIME_NAME = exports.SCOPED_IOS_RUNTIME_NAME = exports.SCOPED_ANDROID_RUNTIME_NAME = exports.TNS_IOS_RUNTIME_NAME = exports.TNS_ANDROID_RUNTIME_NAME = exports.UI_MOBILE_BASE_NAME = exports.TNS_CORE_MODULES_WIDGETS_NAME = exports.VITE_DIST_FOLDER_NAME = exports.RSPACK_PLUGIN_NAME = exports.WEBPACK_PLUGIN_NAME = exports.SCOPED_TNS_CORE_THEME_NAME = exports.TNS_CORE_THEME_NAME = exports.SCOPED_TNS_CORE_MODULES = exports.TNS_CORE_MODULES_NAME = exports.TNS_MODULES_FOLDER_NAME = exports.NODE_MODULES_FOLDER_NAME = exports.NATIVESCRIPT_KEY_NAME = exports.NS_BASE_PODFILE = exports.PROJECT_FRAMEWORK_FOLDER_NAME = exports.APP_RESOURCES_FOLDER_NAME = exports.APP_FOLDER_NAME = void 0;
|
|
4
|
+
exports.NgFlavorName = exports.SVELTE_NAME = exports.SOLID_NAME = exports.REACT_NAME = exports.TYPESCRIPT_NAME = exports.JAVASCRIPT_NAME = exports.ANGULAR_NAME = exports.VUE_NAME = exports.ItunesConnectApplicationTypes = exports.androidAppResourcesFolderName = exports.iOSAppResourcesFolderName = exports.ITMSConstants = exports.ANALYTICS_LOCAL_TEMPLATE_PREFIX = exports.RESERVED_TEMPLATE_NAMES = exports.ReleaseType = exports.SaveOptions = exports.TemplatesV2PackageJsonKeysToRemove = exports.PackageJsonKeysToKeep = exports.LiveSyncTrackActionNames = exports.PackageVersion = exports.MetadataFilteringConstants = exports.IOS_WATCHAPP_EXTENSION_FOLDER = exports.IOS_WATCHAPP_FOLDER = exports.NATIVE_EXTENSION_FOLDER = exports.APPLICATION_RESPONSE_TIMEOUT_SECONDS = exports.NATIVE_SOURCE_FOLDER = exports.TNS_NATIVE_SOURCE_GROUP_NAME = exports.HASHES_FILE_NAME = exports.APKS_EXTENSION_NAME = exports.AAB_EXTENSION_NAME = exports.APK_EXTENSION_NAME = exports.DEPENDENCIES_JSON_NAME = exports.CONFIG_FILE_NAME_TS = exports.CONFIG_FILE_NAME_JS = exports.CONFIG_FILE_NAME_DISPLAY = exports.CONFIG_NS_APP_ENTRY = exports.CONFIG_NS_BUILD_ENTRY = exports.CONFIG_NS_APP_RESOURCES_ENTRY = exports.CONFIG_NS_FILE_NAME = exports.RESOURCES_DIR = exports.BUNDLE_DIR = exports.APK_DIR = exports.OUTPUTS_DIR = exports.BUILD_DIR = exports.BUILD_XCCONFIG_FILE_NAME = exports.INCLUDE_GRADLE_NAME = exports.INFO_PLIST_FILE_NAME = exports.APP_GRADLE_FILE_NAME = exports.MANIFEST_FILE_NAME = exports.ANDROID_ANALYTICS_DATA_FILE = void 0;
|
|
5
|
+
exports.PODFILE_NAME = exports.PlatformTypes = exports.PLUGINS_BUILD_DATA_FILENAME = exports.PLUGIN_BUILD_DATA_FILENAME = exports.AddPlaformErrors = exports.PACKAGE_PLACEHOLDER_NAME = exports.AndroidBuildDefaults = exports.Hooks = exports.XcodeDeprecationStringFormat = exports.MacOSDeprecationStringFormat = exports.MacOSVersions = exports.AssetConstants = exports.CLI_RESOURCES_DIR_NAME = exports.NATIVESCRIPT_PROPS_INTERNAL_DELIMITER = exports.BuildStates = exports.AnalyticsEventLabelDelimiter = exports.TrackActionNames = exports.DebugTools = exports.NativePlatformStatus = exports.ShouldMigrate = exports.DebugCommandErrors = exports.BUNDLER_COMPILATION_COMPLETE = exports.PREPARE_READY_EVENT_NAME = exports.INITIAL_SYNC_EVENT_NAME = exports.FILES_CHANGE_EVENT_NAME = exports.CACACHE_DIRECTORY_NAME = exports.WindowsAppPackageMessages = exports.WINDOWS_RELEASE_UNSIGNED_MESSAGE = exports.ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE = exports.ANDROID_RELEASE_BUILD_ERROR_MESSAGE = exports.POST_INSTALL_COMMAND_NAME = exports.BUNDLETOOL_PATH_ENV_VAR = exports.BUNDLETOOL_RELEASES_URL = exports.BUNDLETOOL_SHA256 = exports.BUNDLETOOL_VERSION = exports.BUNDLETOOL_CACHE_DIRNAME = exports.INSPECTOR_CACHE_DIRNAME = exports.VERSION_STRING = exports.DEBUGGER_DETACHED_EVENT_NAME = exports.DEBUGGER_ATTACHED_EVENT_NAME = exports.USER_INTERACTION_NEEDED_EVENT_NAME = exports.CONNECTION_ERROR_EVENT_NAME = exports.BUILD_OUTPUT_EVENT_NAME = exports.ProjectTypes = exports.JsFlavorName = exports.TsFlavorName = exports.SvelteFlavorName = exports.SolidFlavorName = exports.ReactFlavorName = exports.VueFlavorName = void 0;
|
|
6
|
+
exports.BuildNames = exports.PackageManagers = exports.EMIT_APPENDER_EVENT_NAME = exports.LoggerConfigData = exports.LoggerLevel = exports.DeviceConnectionType = exports.LoggerAppenders = exports.IOSNativeTargetTypes = exports.IOSNativeTargetProductTypes = exports.IOSDeviceTargets = exports.RunOnDeviceEvents = exports.AndroidAppBundleMessages = exports.AndroidBundleValidatorMessages = exports.BundleValidatorMessages = exports.IosProjectConstants = exports.EXTENSION_PROVISIONING_FILENAME = void 0;
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
exports.APP_FOLDER_NAME = "app";
|
|
9
9
|
exports.APP_RESOURCES_FOLDER_NAME = "App_Resources";
|
|
@@ -26,6 +26,11 @@ exports.TNS_IOS_RUNTIME_NAME = "tns-ios";
|
|
|
26
26
|
exports.SCOPED_ANDROID_RUNTIME_NAME = "@nativescript/android";
|
|
27
27
|
exports.SCOPED_IOS_RUNTIME_NAME = "@nativescript/ios";
|
|
28
28
|
exports.SCOPED_VISIONOS_RUNTIME_NAME = "@nativescript/visionos";
|
|
29
|
+
exports.SCOPED_WINDOWS_RUNTIME_NAME = "@nativescript/windows";
|
|
30
|
+
exports.SCOPED_WINDOWS_HERMES_RUNTIME_NAME = "@nativescript/windows-hermes";
|
|
31
|
+
exports.SCOPED_WINDOWS_V8_RUNTIME_NAME = "@nativescript/windows-v8";
|
|
32
|
+
exports.SCOPED_WINDOWS_QUICKJS_RUNTIME_NAME = "@nativescript/windows-quickjs";
|
|
33
|
+
exports.SCOPED_WINDOWS_JSC_RUNTIME_NAME = "@nativescript/windows-jsc";
|
|
29
34
|
exports.PACKAGE_JSON_FILE_NAME = "package.json";
|
|
30
35
|
exports.PACKAGE_LOCK_JSON_FILE_NAME = "package-lock.json";
|
|
31
36
|
exports.ANDROID_DEVICE_APP_ROOT_TEMPLATE = `/data/data/%s/files`;
|
|
@@ -220,6 +225,11 @@ exports.POST_INSTALL_COMMAND_NAME = "post-install-cli";
|
|
|
220
225
|
const ANDROID_SIGNING_REQUIRED_MESSAGE = "you need to specify all --key-store-* options.";
|
|
221
226
|
exports.ANDROID_RELEASE_BUILD_ERROR_MESSAGE = `When producing a release build, ${ANDROID_SIGNING_REQUIRED_MESSAGE}`;
|
|
222
227
|
exports.ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE = `When producing Android App Bundle, ${ANDROID_SIGNING_REQUIRED_MESSAGE}`;
|
|
228
|
+
exports.WINDOWS_RELEASE_UNSIGNED_MESSAGE = "Producing an unsigned Windows release package. The resulting .msix cannot be installed directly until it is signed. Pass --certificate (and --certificate-password) or --certificate-thumbprint to produce a signed, sideloadable package, or use --store-upload to produce a package for submission to the Microsoft Store.";
|
|
229
|
+
class WindowsAppPackageMessages {
|
|
230
|
+
}
|
|
231
|
+
exports.WindowsAppPackageMessages = WindowsAppPackageMessages;
|
|
232
|
+
WindowsAppPackageMessages.STORE_UPLOAD_DOCS_MESSAGE = "Built a Microsoft Store upload package (.msixupload). Submit it to your app via Partner Center: https://partner.microsoft.com/dashboard";
|
|
223
233
|
exports.CACACHE_DIRECTORY_NAME = "_cacache";
|
|
224
234
|
exports.FILES_CHANGE_EVENT_NAME = "filesChangeEvent";
|
|
225
235
|
exports.INITIAL_SYNC_EVENT_NAME = "initialSyncEvent";
|
|
@@ -319,6 +329,7 @@ var PlatformTypes;
|
|
|
319
329
|
PlatformTypes["ios"] = "ios";
|
|
320
330
|
PlatformTypes["android"] = "android";
|
|
321
331
|
PlatformTypes["visionos"] = "visionos";
|
|
332
|
+
PlatformTypes["windows"] = "windows";
|
|
322
333
|
})(PlatformTypes || (exports.PlatformTypes = PlatformTypes = {}));
|
|
323
334
|
exports.PODFILE_NAME = "Podfile";
|
|
324
335
|
exports.EXTENSION_PROVISIONING_FILENAME = "provisioning.json";
|
|
@@ -287,6 +287,9 @@ class PrepareController extends events_1.EventEmitter {
|
|
|
287
287
|
if (this.$mobileHelper.isApplePlatform(platformData.platformNameLowerCase)) {
|
|
288
288
|
packagePath = path.join(platformData.projectRoot, projectData.projectName, "app", "package.json");
|
|
289
289
|
}
|
|
290
|
+
else if (this.$mobileHelper.isWindowsPlatform(platformData.platformNameLowerCase)) {
|
|
291
|
+
packagePath = path.join(platformData.appDestinationDirectoryPath, constants_1.APP_FOLDER_NAME, "package.json");
|
|
292
|
+
}
|
|
290
293
|
else {
|
|
291
294
|
packagePath = path.join(platformData.projectRoot, this.$options.hostProjectModuleName, "src", this.$options.hostProjectPath ? "nativescript" : "main", "assets", "app", "package.json");
|
|
292
295
|
}
|
|
@@ -155,6 +155,7 @@ class RunController extends events_1.EventEmitter {
|
|
|
155
155
|
async refreshApplicationWithDebug(projectData, liveSyncResultInfo, filesChangeEventData, deviceDescriptor) {
|
|
156
156
|
const debugOptions = deviceDescriptor.debugOptions || {};
|
|
157
157
|
liveSyncResultInfo.waitForDebugger = !!debugOptions.debugBrk;
|
|
158
|
+
liveSyncResultInfo.debugMode = true;
|
|
158
159
|
liveSyncResultInfo.forceRefreshWithSocket = true;
|
|
159
160
|
const refreshInfo = await this.refreshApplicationWithoutDebug(projectData, liveSyncResultInfo, filesChangeEventData, deviceDescriptor, {
|
|
160
161
|
shouldSkipEmitLiveSyncNotification: true,
|
package/lib/data/build-data.d.ts
CHANGED
|
@@ -20,6 +20,17 @@ export declare class IOSBuildData extends BuildData implements IiOSBuildData {
|
|
|
20
20
|
hostProjectPath: string;
|
|
21
21
|
constructor(projectDir: string, platform: string, data: any);
|
|
22
22
|
}
|
|
23
|
+
export declare class WindowsBuildData extends BuildData {
|
|
24
|
+
certificate: string;
|
|
25
|
+
certificatePassword: string;
|
|
26
|
+
certificateThumbprint: string;
|
|
27
|
+
storeUpload: boolean;
|
|
28
|
+
msixBundle: boolean;
|
|
29
|
+
architectures: string[];
|
|
30
|
+
sourceProtect: boolean;
|
|
31
|
+
sourceProtectKeyHex: string;
|
|
32
|
+
constructor(projectDir: string, platform: string, data: any);
|
|
33
|
+
}
|
|
23
34
|
export declare class AndroidBuildData extends BuildData {
|
|
24
35
|
keyStoreAlias: string;
|
|
25
36
|
keyStorePath: string;
|
package/lib/data/build-data.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AndroidBuildData = exports.IOSBuildData = exports.BuildData = void 0;
|
|
3
|
+
exports.AndroidBuildData = exports.WindowsBuildData = exports.IOSBuildData = exports.BuildData = void 0;
|
|
4
4
|
const prepare_data_1 = require("./prepare-data");
|
|
5
5
|
class BuildData extends prepare_data_1.PrepareData {
|
|
6
6
|
constructor(projectDir, platform, data) {
|
|
@@ -28,6 +28,23 @@ class IOSBuildData extends BuildData {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
exports.IOSBuildData = IOSBuildData;
|
|
31
|
+
class WindowsBuildData extends BuildData {
|
|
32
|
+
constructor(projectDir, platform, data) {
|
|
33
|
+
var _a;
|
|
34
|
+
super(projectDir, platform, data);
|
|
35
|
+
this.certificate = data.certificate;
|
|
36
|
+
this.certificatePassword = data.certificatePassword;
|
|
37
|
+
this.certificateThumbprint = data.certificateThumbprint;
|
|
38
|
+
this.storeUpload = data.storeUpload;
|
|
39
|
+
this.msixBundle = data.msixBundle || data.msixbundle;
|
|
40
|
+
this.architectures = data.arch
|
|
41
|
+
? [data.arch]
|
|
42
|
+
: (_a = data.architectures) !== null && _a !== void 0 ? _a : ["x64"];
|
|
43
|
+
this.sourceProtect = data.sourceProtect;
|
|
44
|
+
this.sourceProtectKeyHex = data.sourceProtectKeyHex;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.WindowsBuildData = WindowsBuildData;
|
|
31
48
|
class AndroidBuildData extends BuildData {
|
|
32
49
|
constructor(projectDir, platform, data) {
|
|
33
50
|
super(projectDir, platform, data);
|
|
@@ -20,3 +20,7 @@ export declare class IOSPrepareData extends PrepareData {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class AndroidPrepareData extends PrepareData {
|
|
22
22
|
}
|
|
23
|
+
export declare class WindowsPrepareData extends PrepareData {
|
|
24
|
+
packageFamilyName?: string;
|
|
25
|
+
constructor(projectDir: string, platform: string, data: IOptions);
|
|
26
|
+
}
|
package/lib/data/prepare-data.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AndroidPrepareData = exports.IOSPrepareData = exports.PrepareData = void 0;
|
|
3
|
+
exports.WindowsPrepareData = exports.AndroidPrepareData = exports.IOSPrepareData = exports.PrepareData = void 0;
|
|
4
4
|
const controller_data_base_1 = require("./controller-data-base");
|
|
5
5
|
const _ = require("lodash");
|
|
6
6
|
class PrepareData extends controller_data_base_1.ControllerDataBase {
|
|
@@ -53,3 +53,10 @@ exports.IOSPrepareData = IOSPrepareData;
|
|
|
53
53
|
class AndroidPrepareData extends PrepareData {
|
|
54
54
|
}
|
|
55
55
|
exports.AndroidPrepareData = AndroidPrepareData;
|
|
56
|
+
class WindowsPrepareData extends PrepareData {
|
|
57
|
+
constructor(projectDir, platform, data) {
|
|
58
|
+
super(projectDir, platform, data);
|
|
59
|
+
this.packageFamilyName = data.packageFamilyName;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.WindowsPrepareData = WindowsPrepareData;
|
package/lib/declarations.d.ts
CHANGED
|
@@ -587,6 +587,11 @@ interface ITypingsOptions {
|
|
|
587
587
|
jar: string;
|
|
588
588
|
aar: string;
|
|
589
589
|
filter: string;
|
|
590
|
+
root: string;
|
|
591
|
+
roots: string;
|
|
592
|
+
input: string;
|
|
593
|
+
lib: string;
|
|
594
|
+
libs: string;
|
|
590
595
|
}
|
|
591
596
|
|
|
592
597
|
interface IOptions
|
|
@@ -650,6 +655,10 @@ interface IOptions
|
|
|
650
655
|
template: string;
|
|
651
656
|
certificate: string;
|
|
652
657
|
certificatePassword: string;
|
|
658
|
+
certificateThumbprint: string;
|
|
659
|
+
storeUpload: boolean;
|
|
660
|
+
msixbundle: boolean;
|
|
661
|
+
arch: string;
|
|
653
662
|
var: Object;
|
|
654
663
|
default: Boolean;
|
|
655
664
|
count: number;
|
|
@@ -252,6 +252,8 @@ declare global {
|
|
|
252
252
|
modifiedFilesData: Mobile.ILocalToDevicePathData[];
|
|
253
253
|
isFullSync: boolean;
|
|
254
254
|
waitForDebugger?: boolean;
|
|
255
|
+
/** True for any `ns debug` session (attach or --debug-brk); drives the Windows inspector start. */
|
|
256
|
+
debugMode?: boolean;
|
|
255
257
|
deviceAppData: Mobile.IDeviceAppData;
|
|
256
258
|
didRecover?: boolean;
|
|
257
259
|
forceRefreshWithSocket?: boolean;
|
|
@@ -508,6 +510,7 @@ declare global {
|
|
|
508
510
|
appIdentifier: string;
|
|
509
511
|
getDirname?: boolean;
|
|
510
512
|
watch?: boolean;
|
|
513
|
+
projectData?: IProjectData;
|
|
511
514
|
}
|
|
512
515
|
|
|
513
516
|
interface IDevicePathProvider {
|
|
@@ -140,6 +140,15 @@ interface INsConfigIOS extends INsConfigPlaform {
|
|
|
140
140
|
|
|
141
141
|
interface INSConfigVisionOS extends INsConfigIOS {}
|
|
142
142
|
|
|
143
|
+
interface INsConfigWindows extends INsConfigPlaform {
|
|
144
|
+
/**
|
|
145
|
+
* Seal the app's webpack output into an encrypted app.nsbundle instead of shipping it as
|
|
146
|
+
* plaintext. Only takes effect on release builds; overridable per-invocation with
|
|
147
|
+
* --source-protect / --no-source-protect.
|
|
148
|
+
*/
|
|
149
|
+
sourceProtect?: boolean;
|
|
150
|
+
}
|
|
151
|
+
|
|
143
152
|
interface INsConfigAndroid extends INsConfigPlaform {
|
|
144
153
|
v8Flags?: string;
|
|
145
154
|
|
|
@@ -204,6 +213,7 @@ interface INsConfig {
|
|
|
204
213
|
ios?: INsConfigIOS;
|
|
205
214
|
android?: INsConfigAndroid;
|
|
206
215
|
visionos?: INSConfigVisionOS;
|
|
216
|
+
windows?: INsConfigWindows;
|
|
207
217
|
ignoredNativeDependencies?: string[];
|
|
208
218
|
hooks?: INsConfigHooks[];
|
|
209
219
|
projectName?: string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { IErrors } from "./common/declarations";
|
|
2
|
+
import { IPlatformsDataService } from "./definitions/platform";
|
|
2
3
|
export declare class DevicePathProvider implements IDevicePathProvider {
|
|
3
4
|
private $mobileHelper;
|
|
4
5
|
private $iOSSimResolver;
|
|
5
6
|
private $errors;
|
|
6
|
-
|
|
7
|
+
private $platformsDataService;
|
|
8
|
+
constructor($mobileHelper: Mobile.IMobileHelper, $iOSSimResolver: Mobile.IiOSSimResolver, $errors: IErrors, $platformsDataService: IPlatformsDataService);
|
|
7
9
|
getDeviceProjectRootPath(device: Mobile.IDevice, options: IDeviceProjectRootOptions): Promise<string>;
|
|
8
10
|
getDeviceSyncZipPath(device: Mobile.IDevice): string;
|
|
9
11
|
}
|
|
@@ -7,10 +7,11 @@ const constants_2 = require("./common/constants");
|
|
|
7
7
|
const path = require("path");
|
|
8
8
|
const yok_1 = require("./common/yok");
|
|
9
9
|
class DevicePathProvider {
|
|
10
|
-
constructor($mobileHelper, $iOSSimResolver, $errors) {
|
|
10
|
+
constructor($mobileHelper, $iOSSimResolver, $errors, $platformsDataService) {
|
|
11
11
|
this.$mobileHelper = $mobileHelper;
|
|
12
12
|
this.$iOSSimResolver = $iOSSimResolver;
|
|
13
13
|
this.$errors = $errors;
|
|
14
|
+
this.$platformsDataService = $platformsDataService;
|
|
14
15
|
}
|
|
15
16
|
async getDeviceProjectRootPath(device, options) {
|
|
16
17
|
let projectRoot = "";
|
|
@@ -36,6 +37,17 @@ class DevicePathProvider {
|
|
|
36
37
|
projectRoot = path.join(projectRoot, syncFolderName);
|
|
37
38
|
}
|
|
38
39
|
}
|
|
40
|
+
else if (this.$mobileHelper.isWindowsPlatform(device.deviceInfo.platform)) {
|
|
41
|
+
const projectData = options.projectData;
|
|
42
|
+
if (projectData) {
|
|
43
|
+
const platformData = this.$platformsDataService.getPlatformData(device.deviceInfo.platform, projectData);
|
|
44
|
+
const buildOutputPath = platformData.getBuildOutputPath({});
|
|
45
|
+
if (options.getDirname) {
|
|
46
|
+
return buildOutputPath;
|
|
47
|
+
}
|
|
48
|
+
return path.join(buildOutputPath, constants_1.APP_FOLDER_NAME);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
39
51
|
return (0, helpers_1.fromWindowsRelativePathToUnix)(projectRoot);
|
|
40
52
|
}
|
|
41
53
|
getDeviceSyncZipPath(device) {
|
package/lib/options.js
CHANGED
|
@@ -169,6 +169,15 @@ class Options {
|
|
|
169
169
|
template: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
170
170
|
certificate: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
171
171
|
certificatePassword: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
172
|
+
certificateThumbprint: {
|
|
173
|
+
type: enums_1.OptionType.String,
|
|
174
|
+
hasSensitiveValue: true,
|
|
175
|
+
},
|
|
176
|
+
storeUpload: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
177
|
+
msixbundle: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
178
|
+
sourceProtect: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
179
|
+
sourceProtectKeyHex: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
180
|
+
arch: { type: enums_1.OptionType.String, hasSensitiveValue: false },
|
|
172
181
|
release: {
|
|
173
182
|
type: enums_1.OptionType.Boolean,
|
|
174
183
|
alias: "r",
|
|
@@ -200,6 +209,11 @@ class Options {
|
|
|
200
209
|
hasSensitiveValue: false,
|
|
201
210
|
default: constants_1.APP_FOLDER_NAME,
|
|
202
211
|
},
|
|
212
|
+
phoneProductId: { type: enums_1.OptionType.String, hasSensitiveValue: false },
|
|
213
|
+
phonePublisherId: { type: enums_1.OptionType.String, hasSensitiveValue: false },
|
|
214
|
+
regenGuid: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
215
|
+
noAutoGuid: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
216
|
+
allowZeroGuid: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
203
217
|
aab: { type: enums_1.OptionType.Boolean, hasSensitiveValue: false },
|
|
204
218
|
performance: { type: enums_1.OptionType.Object, hasSensitiveValue: true },
|
|
205
219
|
appleApplicationSpecificPassword: {
|
|
@@ -210,6 +224,11 @@ class Options {
|
|
|
210
224
|
jar: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
211
225
|
aar: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
212
226
|
filter: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
227
|
+
root: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
228
|
+
roots: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
229
|
+
input: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
230
|
+
lib: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
231
|
+
libs: { type: enums_1.OptionType.String, hasSensitiveValue: true },
|
|
213
232
|
git: {
|
|
214
233
|
type: enums_1.OptionType.Boolean,
|
|
215
234
|
hasSensitiveValue: false,
|
package/lib/project-data.js
CHANGED
|
@@ -173,12 +173,14 @@ class ProjectData {
|
|
|
173
173
|
ios: "",
|
|
174
174
|
android: "",
|
|
175
175
|
visionos: "",
|
|
176
|
+
windows: "",
|
|
176
177
|
};
|
|
177
178
|
}
|
|
178
179
|
const identifier = {
|
|
179
180
|
ios: config.id,
|
|
180
181
|
android: config.id,
|
|
181
182
|
visionos: config.id,
|
|
183
|
+
windows: config.id,
|
|
182
184
|
};
|
|
183
185
|
if (config.ios && config.ios.id) {
|
|
184
186
|
identifier.ios = config.ios.id;
|
|
@@ -189,6 +191,9 @@ class ProjectData {
|
|
|
189
191
|
if (config.visionos && config.visionos.id) {
|
|
190
192
|
identifier.visionos = config.visionos.id;
|
|
191
193
|
}
|
|
194
|
+
if (config.windows && config.windows.id) {
|
|
195
|
+
identifier.windows = config.windows.id;
|
|
196
|
+
}
|
|
192
197
|
return identifier;
|
|
193
198
|
}
|
|
194
199
|
getProjectType() {
|
|
@@ -15,6 +15,9 @@ class LiveSyncServiceResolver {
|
|
|
15
15
|
else if (this.$mobileHelper.isAndroidPlatform(platform)) {
|
|
16
16
|
return this.$injector.resolve("androidLiveSyncService");
|
|
17
17
|
}
|
|
18
|
+
else if (this.$mobileHelper.isWindowsPlatform(platform)) {
|
|
19
|
+
return this.$injector.resolve("windowsLiveSyncService");
|
|
20
|
+
}
|
|
18
21
|
this.$errors.fail(`Invalid platform ${platform}. Supported platforms are: ${this.$mobileHelper.platformNames.join(", ")}`);
|
|
19
22
|
}
|
|
20
23
|
}
|
|
@@ -6,6 +6,7 @@ export declare class ApplePortalSessionService implements IApplePortalSessionSer
|
|
|
6
6
|
private $httpClient;
|
|
7
7
|
private $logger;
|
|
8
8
|
private $prompter;
|
|
9
|
+
private logoutEndpoint;
|
|
9
10
|
private loginConfigEndpoint;
|
|
10
11
|
private defaultLoginConfig;
|
|
11
12
|
constructor($applePortalCookieService: IApplePortalCookieService, $errors: IErrors, $httpClient: Server.IHttpClient, $logger: ILogger, $prompter: IPrompter);
|