appium-webdriveragent 8.5.2 → 8.5.3

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [8.5.3](https://github.com/appium/WebDriverAgent/compare/v8.5.2...v8.5.3) (2024-04-19)
2
+
3
+
4
+ ### Miscellaneous Chores
5
+
6
+ * update integerationapp for newer OS env ([#891](https://github.com/appium/WebDriverAgent/issues/891)) ([2c78348](https://github.com/appium/WebDriverAgent/commit/2c7834842afeb1aec77e953ce11ac3c43c839431))
7
+
1
8
  ## [8.5.2](https://github.com/appium/WebDriverAgent/compare/v8.5.1...v8.5.2) (2024-04-09)
2
9
 
3
10
 
@@ -15,11 +15,11 @@
15
15
  <key>CFBundlePackageType</key>
16
16
  <string>FMWK</string>
17
17
  <key>CFBundleShortVersionString</key>
18
- <string>8.5.2</string>
18
+ <string>8.5.3</string>
19
19
  <key>CFBundleSignature</key>
20
20
  <string>????</string>
21
21
  <key>CFBundleVersion</key>
22
- <string>8.5.2</string>
22
+ <string>8.5.3</string>
23
23
  <key>NSPrincipalClass</key>
24
24
  <string/>
25
25
  </dict>
@@ -8,8 +8,9 @@
8
8
  */
9
9
 
10
10
  #import <UIKit/UIKit.h>
11
+ #import <UserNotifications/UserNotifications.h>
11
12
 
12
- @interface AppDelegate : UIResponder <UIApplicationDelegate>
13
+ @interface AppDelegate : UIResponder <UIApplicationDelegate,UNUserNotificationCenterDelegate>
13
14
  @property (strong, nonatomic) UIWindow *window;
14
15
 
15
16
  @end
@@ -8,6 +8,7 @@
8
8
  */
9
9
 
10
10
  #import <UIKit/UIKit.h>
11
+ #import <UserNotifications/UserNotifications.h>
11
12
 
12
13
  @interface FBAlertViewController : UIViewController
13
14
 
@@ -37,7 +37,14 @@
37
37
 
38
38
  - (IBAction)createNotificationAlert:(UIButton *)sender
39
39
  {
40
- [[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert categories:nil]];
40
+ UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
41
+ [center requestAuthorizationWithOptions:(UNAuthorizationOptionSound|UNAuthorizationOptionAlert|UNAuthorizationOptionBadge)
42
+ completionHandler:^(BOOL granted, NSError * _Nullable error)
43
+ {
44
+ dispatch_async(dispatch_get_main_queue(), ^{
45
+ [[UIApplication sharedApplication] registerForRemoteNotifications];
46
+ });
47
+ }];
41
48
  }
42
49
 
43
50
  - (IBAction)createCameraRollAccessAlert:(UIButton *)sender
@@ -37,7 +37,7 @@
37
37
  - (void)updateOrentationLabel
38
38
  {
39
39
  NSString *orientation = nil;
40
- switch (self.interfaceOrientation) {
40
+ switch (UIDevice.currentDevice.orientation) {
41
41
  case UIInterfaceOrientationPortrait:
42
42
  orientation = @"Portrait";
43
43
  break;
@@ -50,6 +50,12 @@
50
50
  case UIInterfaceOrientationLandscapeRight:
51
51
  orientation = @"LandscapeRight";
52
52
  break;
53
+ case UIDeviceOrientationFaceUp:
54
+ orientation = @"FaceUp";
55
+ break;
56
+ case UIDeviceOrientationFaceDown:
57
+ orientation = @"FaceDown";
58
+ break;
53
59
  case UIInterfaceOrientationUnknown:
54
60
  orientation = @"Unknown";
55
61
  break;
@@ -7,7 +7,7 @@
7
7
  <key>CFBundleExecutable</key>
8
8
  <string>$(EXECUTABLE_NAME)</string>
9
9
  <key>CFBundleIdentifier</key>
10
- <string>com.facebook.wda.integrationApp</string>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
11
  <key>CFBundleInfoDictionaryVersion</key>
12
12
  <string>6.0</string>
13
13
  <key>CFBundleName</key>
@@ -22,12 +22,12 @@
22
22
  <string>1</string>
23
23
  <key>LSRequiresIPhoneOS</key>
24
24
  <true/>
25
+ <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
26
+ <string>Yo Yo</string>
25
27
  <key>NSLocationAlwaysUsageDescription</key>
26
28
  <string>Yo Yo</string>
27
29
  <key>NSLocationWhenInUseUsageDescription</key>
28
30
  <string>Yo Yo</string>
29
- <key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
30
- <string>Yo Yo</string>
31
31
  <key>NSPhotoLibraryUsageDescription</key>
32
32
  <string>Yo Yo</string>
33
33
  <key>UILaunchStoryboardName</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "8.5.2",
3
+ "version": "8.5.3",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",