appium-xcuitest-driver 10.14.8 → 10.14.10
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/CHANGELOG.md +12 -0
- package/build/lib/commands/condition.d.ts.map +1 -1
- package/build/lib/commands/condition.js +7 -5
- package/build/lib/commands/condition.js.map +1 -1
- package/build/lib/device/real-device-management.d.ts +0 -7
- package/build/lib/device/real-device-management.d.ts.map +1 -1
- package/build/lib/device/real-device-management.js +0 -23
- package/build/lib/device/real-device-management.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/commands/condition.ts +7 -5
- package/lib/device/real-device-management.ts +0 -27
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
|
@@ -15,16 +15,18 @@ export async function listConditionInducers(this: XCUITestDriver): Promise<Condi
|
|
|
15
15
|
requireRealDevice(this, 'Condition inducer');
|
|
16
16
|
|
|
17
17
|
if (isIos18OrNewer(this.opts)) {
|
|
18
|
-
|
|
18
|
+
let dvtConnection;
|
|
19
19
|
try {
|
|
20
|
+
dvtConnection = await startRemoteXPC(this.device.udid);
|
|
20
21
|
const result = await dvtConnection.conditionInducer.list();
|
|
21
22
|
return result as Condition[];
|
|
22
23
|
} catch (err: any) {
|
|
23
24
|
this.log.error(`Failed to list condition inducers via RemoteXPC: ${err.message}`);
|
|
24
|
-
throw err;
|
|
25
25
|
} finally {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
if (dvtConnection) {
|
|
27
|
+
this.log.info(`Closing remoteXPC connection for device ${this.device.udid}`);
|
|
28
|
+
await dvtConnection.remoteXPC.close();
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
31
|
}
|
|
30
32
|
|
|
@@ -82,7 +84,7 @@ export async function enableConditionInducer(
|
|
|
82
84
|
return true;
|
|
83
85
|
} catch (err: any) {
|
|
84
86
|
await closeRemoteXPC.call(this);
|
|
85
|
-
|
|
87
|
+
this.log.error(`Condition inducer '${profileID}' cannot be enabled: '${err.message}'`);
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
|
|
@@ -564,33 +564,6 @@ export class RealDevice {
|
|
|
564
564
|
return true;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
/**
|
|
568
|
-
* @param bundleName The name of CFBundleName in Info.plist
|
|
569
|
-
*
|
|
570
|
-
* @returns A list of User level apps' bundle ids which has
|
|
571
|
-
* 'CFBundleName' attribute as 'bundleName'.
|
|
572
|
-
*/
|
|
573
|
-
async getUserInstalledBundleIdsByBundleName(bundleName: string): Promise<string[]> {
|
|
574
|
-
const service = await services.startInstallationProxyService(this.udid);
|
|
575
|
-
try {
|
|
576
|
-
const applications = await service.listApplications({
|
|
577
|
-
applicationType: 'User', returnAttributes: ['CFBundleIdentifier', 'CFBundleName']
|
|
578
|
-
});
|
|
579
|
-
return _.reduce(
|
|
580
|
-
applications,
|
|
581
|
-
(acc: string[], {CFBundleName}, key: string) => {
|
|
582
|
-
if (CFBundleName === bundleName) {
|
|
583
|
-
acc.push(key);
|
|
584
|
-
}
|
|
585
|
-
return acc;
|
|
586
|
-
},
|
|
587
|
-
[],
|
|
588
|
-
);
|
|
589
|
-
} finally {
|
|
590
|
-
service.close();
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
|
|
594
567
|
async getPlatformVersion(): Promise<string> {
|
|
595
568
|
return await utilities.getOSVersion(this.udid);
|
|
596
569
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-xcuitest-driver",
|
|
3
|
-
"version": "10.14.
|
|
3
|
+
"version": "10.14.10",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-xcuitest-driver",
|
|
9
|
-
"version": "10.14.
|
|
9
|
+
"version": "10.14.10",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@appium/strongbox": "^1.0.0-rc.1",
|