appium-webdriveragent 5.15.3 → 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,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [5.15.4](https://github.com/appium/WebDriverAgent/compare/v5.15.3...v5.15.4) (2023-12-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* set appearance in iOS 17+ ([#818](https://github.com/appium/WebDriverAgent/issues/818)) ([357a2cb](https://github.com/appium/WebDriverAgent/commit/357a2cbca106daf42bc892b251802bfa00895598))
|
|
14
|
+
|
|
1
15
|
## [5.15.3](https://github.com/appium/WebDriverAgent/compare/v5.15.2...v5.15.3) (2023-11-24)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -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];
|
|
@@ -346,6 +356,14 @@ static bool fb_isLocked;
|
|
|
346
356
|
|
|
347
357
|
- (NSNumber *)fb_getAppearance
|
|
348
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
|
+
|
|
349
367
|
return [self respondsToSelector:@selector(appearanceMode)]
|
|
350
368
|
? [NSNumber numberWithLongLong:[self appearanceMode]]
|
|
351
369
|
: nil;
|