appium-webdriveragent 16.17.10 → 16.18.0
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
|
@@ -3,6 +3,21 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [16.18.0](https://github.com/appium/appium-ios/compare/appium-webdriveragent@16.17.11...appium-webdriveragent@16.18.0) (2026-11-07)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **webdriveragent:** add hasHinge ([#162](https://github.com/appium/appium-ios/issues/162)) ([6bd7f4c](https://github.com/appium/appium-ios/commit/6bd7f4c2a0f16cfa3e13a0c69ac3e16e512cee77))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [16.17.11](https://github.com/appium/appium-ios/compare/appium-webdriveragent@16.17.10...appium-webdriveragent@16.17.11) (2026-11-06)
|
|
14
|
+
|
|
15
|
+
**Note:** Version bump only for package appium-webdriveragent
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
6
21
|
## [16.17.10](https://github.com/appium/appium-ios/compare/appium-webdriveragent@16.17.9...appium-webdriveragent@16.17.10) (2026-11-05)
|
|
7
22
|
|
|
8
23
|
### Bug Fixes
|
|
@@ -554,6 +554,7 @@
|
|
|
554
554
|
@"userInterfaceIdiom": @(UIDevice.currentDevice.userInterfaceIdiom),
|
|
555
555
|
#endif
|
|
556
556
|
@"userInterfaceStyle": self.userInterfaceStyle,
|
|
557
|
+
@"hasHinge": @(XCUIDevice.sharedDevice.fb_supportsHingeAngleReading),
|
|
557
558
|
#if TARGET_OS_SIMULATOR
|
|
558
559
|
@"isSimulator": @(YES),
|
|
559
560
|
#else
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
<key>CFBundlePackageType</key>
|
|
16
16
|
<string>FMWK</string>
|
|
17
17
|
<key>CFBundleShortVersionString</key>
|
|
18
|
-
<string>16.
|
|
18
|
+
<string>16.18.0</string>
|
|
19
19
|
<key>CFBundleSignature</key>
|
|
20
20
|
<string>????</string>
|
|
21
21
|
<key>CFBundleVersion</key>
|
|
22
|
-
<string>16.
|
|
22
|
+
<string>16.18.0</string>
|
|
23
23
|
<key>NSPrincipalClass</key>
|
|
24
24
|
<string/>
|
|
25
25
|
</dict>
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
#if !TARGET_OS_TV && __clang_major__ >= 15
|
|
21
21
|
|
|
22
22
|
@interface FBCustomCommands (FBWDATestable)
|
|
23
|
+
+ (id<FBResponsePayload>)handleGetDeviceInfo:(FBRouteRequest *)request;
|
|
23
24
|
+ (id<FBResponsePayload>)handleKeyboardInput:(FBRouteRequest *)request;
|
|
24
25
|
+ (id<FBResponsePayload>)handleGetSimulatedHingeAngle:(FBRouteRequest *)request;
|
|
25
26
|
+ (id<FBResponsePayload>)handleSetSimulatedHingeAngle:(FBRouteRequest *)request;
|
|
@@ -93,6 +94,24 @@
|
|
|
93
94
|
return [NSJSONSerialization JSONObjectWithData:response.responseData options:0 error:nil];
|
|
94
95
|
}
|
|
95
96
|
|
|
97
|
+
- (void)testDeviceInfoIncludesHasHinge
|
|
98
|
+
{
|
|
99
|
+
FBRouteRequest *request = [FBRouteRequest routeRequestWithURL:[NSURL URLWithString:@"http://localhost:8100/wda/device/info"]
|
|
100
|
+
parameters:@{}
|
|
101
|
+
arguments:@{}];
|
|
102
|
+
RouteResponse *response = [RouteResponse new];
|
|
103
|
+
[[FBCustomCommands handleGetDeviceInfo:request] dispatchWithResponse:response];
|
|
104
|
+
NSDictionary *body = [NSJSONSerialization JSONObjectWithData:response.responseData options:0 error:nil];
|
|
105
|
+
id hasHinge = body[@"value"][@"hasHinge"];
|
|
106
|
+
XCTAssertNotNil(hasHinge);
|
|
107
|
+
if (nil == hasHinge) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
XCTAssertEqual(CFGetTypeID((__bridge CFTypeRef)hasHinge), CFBooleanGetTypeID());
|
|
111
|
+
XCTAssertEqual([hasHinge boolValue], XCUIDevice.sharedDevice.fb_supportsHingeAngleReading);
|
|
112
|
+
NSLog(@"Device info hasHinge: %@", [hasHinge boolValue] ? @"true" : @"false");
|
|
113
|
+
}
|
|
114
|
+
|
|
96
115
|
- (void)testHingeAngleReading
|
|
97
116
|
{
|
|
98
117
|
NSError *error = nil;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-webdriveragent",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.18.0",
|
|
4
4
|
"description": "Package bundling WebDriverAgent",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Appium",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"teen_process": "^4.2.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@appium/coresim": "^1.14.
|
|
72
|
+
"@appium/coresim": "^1.14.1",
|
|
73
73
|
"@appium/oxc-config": "^1.1.0",
|
|
74
74
|
"@appium/tsconfig": "^1.2.0",
|
|
75
75
|
"@appium/types": "^1.7.2",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
84
84
|
"npm": ">=10"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "8dd7d66de222be81453e34c5141cf257942dd5d1"
|
|
87
87
|
}
|