appium-webdriveragent 5.15.4 → 5.15.5

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.5](https://github.com/appium/WebDriverAgent/compare/v5.15.4...v5.15.5) (2023-12-13)
2
+
3
+
4
+ ### Miscellaneous Chores
5
+
6
+ * use appearance for get as well if available ([#825](https://github.com/appium/WebDriverAgent/issues/825)) ([89e233d](https://github.com/appium/WebDriverAgent/commit/89e233d8aef5a19491785fee0823fd8eddbd5fcc))
7
+
1
8
  ## [5.15.4](https://github.com/appium/WebDriverAgent/compare/v5.15.3...v5.15.4) (2023-12-07)
2
9
 
3
10
 
@@ -356,6 +356,14 @@ static bool fb_isLocked;
356
356
 
357
357
  - (NSNumber *)fb_getAppearance
358
358
  {
359
+ #if __clang_major__ >= 15 || (__clang_major__ >= 14 && __clang_minor__ >= 0 && __clang_patchlevel__ >= 3)
360
+ // Xcode 14.3.1 can build these values.
361
+ // For iOS 17+
362
+ if ([self respondsToSelector:NSSelectorFromString(@"appearance")]) {
363
+ return [NSNumber numberWithLongLong:[self appearance]];
364
+ }
365
+ #endif
366
+
359
367
  return [self respondsToSelector:@selector(appearanceMode)]
360
368
  ? [NSNumber numberWithLongLong:[self appearanceMode]]
361
369
  : nil;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "5.15.4",
3
+ "version": "5.15.5",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {