appium-webdriveragent 5.15.3 → 5.15.4

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.15.4](https://github.com/appium/WebDriverAgent/compare/v5.15.3...v5.15.4) (2023-12-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * set appearance in iOS 17+ ([#818](https://github.com/appium/WebDriverAgent/issues/818)) ([357a2cb](https://github.com/appium/WebDriverAgent/commit/357a2cbca106daf42bc892b251802bfa00895598))
7
+
1
8
  ## [5.15.3](https://github.com/appium/WebDriverAgent/compare/v5.15.2...v5.15.3) (2023-11-24)
2
9
 
3
10
 
@@ -339,6 +339,16 @@ static bool fb_isLocked;
339
339
  [invocation invoke];
340
340
  return YES;
341
341
  }
342
+
343
+ #if __clang_major__ >= 15 || (__clang_major__ >= 14 && __clang_minor__ >= 0 && __clang_patchlevel__ >= 3)
344
+ // Xcode 14.3.1 can build these values.
345
+ // For iOS 17+
346
+ if ([self respondsToSelector:NSSelectorFromString(@"appearance")]) {
347
+ self.appearance = (XCUIDeviceAppearance) appearance;
348
+ return YES;
349
+ }
350
+ #endif
351
+
342
352
  return [[[FBErrorBuilder builder]
343
353
  withDescriptionFormat:@"Current Xcode SDK does not support appearance changing"]
344
354
  buildError:error];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "5.15.3",
3
+ "version": "5.15.4",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {