appium-xcuitest-driver 10.14.11 → 10.14.12

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.
@@ -564,6 +564,33 @@ 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
+
567
594
  async getPlatformVersion(): Promise<string> {
568
595
  return await utilities.getOSVersion(this.udid);
569
596
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "appium-xcuitest-driver",
3
- "version": "10.14.11",
3
+ "version": "10.14.12",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "appium-xcuitest-driver",
9
- "version": "10.14.11",
9
+ "version": "10.14.12",
10
10
  "license": "Apache-2.0",
11
11
  "dependencies": {
12
12
  "@appium/strongbox": "^1.0.0-rc.1",
@@ -692,9 +692,9 @@
692
692
  }
693
693
  },
694
694
  "node_modules/appium-ios-remotexpc": {
695
- "version": "0.25.0",
696
- "resolved": "https://registry.npmjs.org/appium-ios-remotexpc/-/appium-ios-remotexpc-0.25.0.tgz",
697
- "integrity": "sha512-inc/mZc3Dz7mtBj/CWC+m3NlWB2a14aZ4Ug6onM/7vI80N3YRsOyaSfYk1HCLwacstvDJhjEoA6bqi5LMtVwYA==",
695
+ "version": "0.25.1",
696
+ "resolved": "https://registry.npmjs.org/appium-ios-remotexpc/-/appium-ios-remotexpc-0.25.1.tgz",
697
+ "integrity": "sha512-wlCe1593QZYC72LOyyrdawKu4ZXhuDnOLyLiexmtKcbtG8liyHMq7o6QWsEUsQKZSW3O2gke3lR2Ooln89UmDQ==",
698
698
  "license": "Apache-2.0",
699
699
  "optional": true,
700
700
  "dependencies": {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "xcuitest",
9
9
  "xctest"
10
10
  ],
11
- "version": "10.14.11",
11
+ "version": "10.14.12",
12
12
  "author": "Appium Contributors",
13
13
  "license": "Apache-2.0",
14
14
  "repository": {