Skip to content

Commit 5d956cf

Browse files
authored
chore: make appium-ios-remotexpc optional deps (#2600)
1 parent 7fcf3b8 commit 5d956cf

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/commands/battery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export default {
1313
async mobileGetBatteryInfo() {
1414
let batteryInfoFromShimService;
1515
if (isIos18OrNewer(this.opts) && this.isRealDevice()) {
16-
const {Services} = await import('appium-ios-remotexpc');
1716
let remoteXPCConnection;
1817
try {
18+
const {Services} = await import('appium-ios-remotexpc');
1919
let { diagnosticsService, remoteXPC } = await Services.startDiagnosticsService(this.device.udid);
2020
remoteXPCConnection = remoteXPC;
2121
batteryInfoFromShimService = await diagnosticsService.ioregistry({

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
"appium-idb": "^1.6.13",
8585
"appium-ios-device": "^2.8.0",
8686
"appium-ios-simulator": "^6.2.2",
87-
"appium-ios-remotexpc": "^0.x",
8887
"appium-remote-debugger": "^13.1.0",
8988
"appium-webdriveragent": "^9.11.0",
9089
"appium-xcode": "^5.1.4",
@@ -105,6 +104,9 @@
105104
"winston": "3.17.0",
106105
"ws": "^8.13.0"
107106
},
107+
"optionalDependencies": {
108+
"appium-ios-remotexpc": "^0.x"
109+
},
108110
"scripts": {
109111
"build": "tsc -b",
110112
"clean": "npm run build -- --clean",

0 commit comments

Comments
 (0)