appium-ios-remotexpc 0.10.1 → 0.11.0

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/src/services.ts CHANGED
@@ -5,6 +5,7 @@ import { TunnelManager } from './lib/tunnel/index.js';
5
5
  import { TunnelApiClient } from './lib/tunnel/tunnel-api-client.js';
6
6
  import type {
7
7
  DiagnosticsServiceWithConnection,
8
+ MisagentServiceWithConnection,
8
9
  MobileConfigServiceWithConnection,
9
10
  MobileImageMounterServiceWithConnection,
10
11
  NotificationProxyServiceWithConnection,
@@ -15,6 +16,7 @@ import type {
15
16
  } from './lib/types.js';
16
17
  import AfcService from './services/ios/afc/index.js';
17
18
  import DiagnosticsService from './services/ios/diagnostic-service/index.js';
19
+ import { MisagentService } from './services/ios/misagent/index.js';
18
20
  import { MobileConfigService } from './services/ios/mobile-config/index.js';
19
21
  import MobileImageMounterService from './services/ios/mobile-image-mounter/index.js';
20
22
  import { NotificationProxyService } from './services/ios/notification-proxy/index.js';
@@ -106,6 +108,22 @@ export async function startSpringboardService(
106
108
  };
107
109
  }
108
110
 
111
+ export async function startMisagentService(
112
+ udid: string,
113
+ ): Promise<MisagentServiceWithConnection> {
114
+ const { remoteXPC, tunnelConnection } = await createRemoteXPCConnection(udid);
115
+ const misagentService = remoteXPC.findService(
116
+ MisagentService.RSD_SERVICE_NAME,
117
+ );
118
+ return {
119
+ remoteXPC: remoteXPC as RemoteXpcConnection,
120
+ misagentService: new MisagentService([
121
+ tunnelConnection.host,
122
+ parseInt(misagentService.port, 10),
123
+ ]),
124
+ };
125
+ }
126
+
109
127
  export async function startPowerAssertionService(
110
128
  udid: string,
111
129
  ): Promise<PowerAssertionServiceWithConnection> {
@@ -1,5 +0,0 @@
1
- /**
2
- * List of MobileGestalt keys that can be queried from iOS devices
3
- */
4
- export declare const MobileGestaltKeys: string[];
5
- //# sourceMappingURL=keys.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../../../../src/services/ios/diagnostic-service/keys.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,EA8vBrC,CAAC"}