appium-webdriveragent 5.8.5 → 5.8.7
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.8.7](https://github.com/appium/WebDriverAgent/compare/v5.8.6...v5.8.7) (2023-09-22)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Miscellaneous Chores
|
|
5
|
+
|
|
6
|
+
* tweak device in currentCapabilities ([#773](https://github.com/appium/WebDriverAgent/issues/773)) ([8481b02](https://github.com/appium/WebDriverAgent/commit/8481b02fc84de1147e1254ea7fd114f8735b0226))
|
|
7
|
+
|
|
8
|
+
## [5.8.6](https://github.com/appium/WebDriverAgent/compare/v5.8.5...v5.8.6) (2023-09-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Miscellaneous Chores
|
|
12
|
+
|
|
13
|
+
* add log to leave it in the system log ([#772](https://github.com/appium/WebDriverAgent/issues/772)) ([012af21](https://github.com/appium/WebDriverAgent/commit/012af21383829397c7265daa0513829cc4e93aee))
|
|
14
|
+
|
|
1
15
|
## [5.8.5](https://github.com/appium/WebDriverAgent/compare/v5.8.4...v5.8.5) (2023-09-15)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -257,7 +257,8 @@
|
|
|
257
257
|
#endif
|
|
258
258
|
@"ip" : [XCUIDevice sharedDevice].fb_wifiIPAddress ?: [NSNull null]
|
|
259
259
|
},
|
|
260
|
-
@"build" : buildInfo.copy
|
|
260
|
+
@"build" : buildInfo.copy,
|
|
261
|
+
@"device": [self.class deviceNameByUserInterfaceIdiom:[UIDevice currentDevice].userInterfaceIdiom]
|
|
261
262
|
}
|
|
262
263
|
);
|
|
263
264
|
}
|
|
@@ -418,12 +419,31 @@
|
|
|
418
419
|
};
|
|
419
420
|
}
|
|
420
421
|
|
|
422
|
+
/*
|
|
423
|
+
Return the device kind as lower case
|
|
424
|
+
*/
|
|
425
|
+
+ (NSString *)deviceNameByUserInterfaceIdiom:(UIUserInterfaceIdiom) userInterfaceIdiom
|
|
426
|
+
{
|
|
427
|
+
if (userInterfaceIdiom == UIUserInterfaceIdiomPad) {
|
|
428
|
+
return @"ipad";
|
|
429
|
+
} else if (userInterfaceIdiom == UIUserInterfaceIdiomTV) {
|
|
430
|
+
return @"apple tv";
|
|
431
|
+
} else if (userInterfaceIdiom == UIUserInterfaceIdiomPhone) {
|
|
432
|
+
return @"iphone";
|
|
433
|
+
}
|
|
434
|
+
// CarPlay, Mac, Vision UI or unknown are possible
|
|
435
|
+
return @"Unknown";
|
|
436
|
+
|
|
437
|
+
}
|
|
438
|
+
|
|
421
439
|
+ (NSDictionary *)currentCapabilities
|
|
422
440
|
{
|
|
423
441
|
FBApplication *application = [FBSession activeSession].activeApplication;
|
|
442
|
+
// to log the info in the system
|
|
443
|
+
[FBLogger logFmt:@"Current active application bundle id is %@", application.bundleID];
|
|
424
444
|
return
|
|
425
445
|
@{
|
|
426
|
-
@"device":
|
|
446
|
+
@"device": [self.class deviceNameByUserInterfaceIdiom:[UIDevice currentDevice].userInterfaceIdiom],
|
|
427
447
|
@"sdkVersion": [[UIDevice currentDevice] systemVersion],
|
|
428
448
|
@"browserName": application.label ?: [NSNull null],
|
|
429
449
|
@"CFBundleIdentifier": application.bundleID ?: [NSNull null],
|