appium-webdriveragent 5.1.1 → 5.1.2

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
+ ## [5.1.2](https://github.com/appium/WebDriverAgent/compare/v5.1.1...v5.1.2) (2023-05-15)
2
+
3
+
4
+ ### Miscellaneous Chores
5
+
6
+ * remove code for old os versions ([#694](https://github.com/appium/WebDriverAgent/issues/694)) ([4a9faa5](https://github.com/appium/WebDriverAgent/commit/4a9faa5f85e0615c18a5f35090335bdbc7d56ebe))
7
+
1
8
  ## [5.1.1](https://github.com/appium/WebDriverAgent/compare/v5.1.0...v5.1.1) (2023-05-15)
2
9
 
3
10
 
@@ -696,14 +696,12 @@ static const NSInteger DEFAULT_MAX_PICKER_ATTEMPTS = 25;
696
696
  See issue #732: https://github.com/facebook/WebDriverAgent/issues/732
697
697
  */
698
698
  XCUIElement *element = application;
699
- if (isSDKVersionGreaterThanOrEqualTo(@"11.0")) {
700
- XCUIElement *window = application.windows.allElementsBoundByIndex.firstObject;
701
- if (window) {
702
- element = window;
703
- id<FBXCElementSnapshot> snapshot = element.fb_cachedSnapshot ?: element.fb_takeSnapshot;
704
- point.x -= snapshot.frame.origin.x;
705
- point.y -= snapshot.frame.origin.y;
706
- }
699
+ XCUIElement *window = application.windows.allElementsBoundByIndex.firstObject;
700
+ if (window) {
701
+ element = window;
702
+ id<FBXCElementSnapshot> snapshot = element.fb_cachedSnapshot ?: element.fb_takeSnapshot;
703
+ point.x -= snapshot.frame.origin.x;
704
+ point.y -= snapshot.frame.origin.y;
707
705
  }
708
706
  return [self gestureCoordinateWithCoordinate:point element:element];
709
707
  }
@@ -275,9 +275,7 @@ static UIInterfaceOrientation FBScreenshotOrientation;
275
275
 
276
276
  // To dismiss keyboard tutorial on iOS 11+ (iPad)
277
277
  if ([controller respondsToSelector:@selector(setValue:forPreferenceKey:)]) {
278
- if (isSDKVersionGreaterThanOrEqualTo(@"11.0")) {
279
- [controller setValue:@YES forPreferenceKey:@"DidShowGestureKeyboardIntroduction"];
280
- }
278
+ [controller setValue:@YES forPreferenceKey:@"DidShowGestureKeyboardIntroduction"];
281
279
  if (isSDKVersionGreaterThanOrEqualTo(@"13.0")) {
282
280
  [controller setValue:@YES forPreferenceKey:@"DidShowContinuousPathIntroduction"];
283
281
  }
@@ -49,10 +49,6 @@
49
49
  // The test is flaky on slow Travis CI
50
50
  - (void)disabled_testAutoAcceptingOfAlerts
51
51
  {
52
- if (SYSTEM_VERSION_LESS_THAN(@"11.0")) {
53
- return;
54
- }
55
-
56
52
  self.session = [FBSession
57
53
  initWithApplication:FBApplication.fb_activeApplication
58
54
  defaultAlertAction:@"accept"];
@@ -66,10 +62,6 @@
66
62
  // The test is flaky on slow Travis CI
67
63
  - (void)disabled_testAutoDismissingOfAlerts
68
64
  {
69
- if (SYSTEM_VERSION_LESS_THAN(@"11.0")) {
70
- return;
71
- }
72
-
73
65
  self.session = [FBSession
74
66
  initWithApplication:FBApplication.fb_activeApplication
75
67
  defaultAlertAction:@"dismiss"];
@@ -33,11 +33,7 @@
33
33
  XCTAssertTrue([FBConfiguration reduceMotionEnabled]);
34
34
 
35
35
  [FBConfiguration setReduceMotionEnabled:defaultReduceMotionEnabled];
36
- if (isSDKVersionLessThan(@"10.0")) {
37
- XCTAssertFalse([FBConfiguration reduceMotionEnabled]);
38
- } else {
39
- XCTAssertEqual([FBConfiguration reduceMotionEnabled], defaultReduceMotionEnabled);
40
- }
36
+ XCTAssertEqual([FBConfiguration reduceMotionEnabled], defaultReduceMotionEnabled);
41
37
  }
42
38
 
43
39
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {