Skip to content

Commit bf4b46b

Browse files
Expose API for getting installed applications
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 bf4b46b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

test/nativescript-cli-lib.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ 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: ["deployOnDevices", "initialize", "mapAbstractToTcpPort", "getDebuggableApps", "getDebuggableViews",
27+
"setLogLevel", "isAppInstalledOnDevices", "isCompanionAppInstalledOnDevices", "getInstalledApplications", "addDeviceDiscovery",
28+
"getDevices"]
2629
};
2730

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

0 commit comments

Comments
 (0)