Skip to content

Commit 46ae12e

Browse files
Expose API for getting installed applications (#3233)
Expose API for getting installed applications for a specific device when CLI is required as library. Add the new method to `devicesService`. Add required tests for exposing methods from `devicesService`.
1 parent 7a9998d commit 46ae12e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

test/nativescript-cli-lib.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,20 @@ describe("nativescript-cli-lib", () => {
2222
extensibilityService: ["loadExtensions", "loadExtension", "getInstalledExtensions", "installExtension", "uninstallExtension"],
2323
liveSyncService: ["liveSync", "stopLiveSync", "enableDebugging", "disableDebugging", "attachDebugger"],
2424
debugService: ["debug"],
25-
analyticsSettingsService: ["getClientId"]
25+
analyticsSettingsService: ["getClientId"],
26+
devicesService: [
27+
"addDeviceDiscovery",
28+
"deployOnDevices",
29+
"getDebuggableApps",
30+
"getDebuggableViews",
31+
"getDevices",
32+
"getInstalledApplications",
33+
"initialize",
34+
"isAppInstalledOnDevices",
35+
"isCompanionAppInstalledOnDevices",
36+
"mapAbstractToTcpPort",
37+
"setLogLevel"
38+
]
2639
};
2740

2841
const pathToEntryPoint = path.join(__dirname, "..", "lib", "nativescript-cli-lib.js").replace(/\\/g, "\\\\");

0 commit comments

Comments
 (0)