Skip to content

Commit

Permalink
Update FBSessionCommands.m
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Sep 21, 2023
1 parent 5f538aa commit b6e29f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WebDriverAgentLib/Commands/FBSessionCommands.m
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ + (NSArray *)routes
@"ip" : [XCUIDevice sharedDevice].fb_wifiIPAddress ?: [NSNull null]
},
@"build" : buildInfo.copy,
@"device": [self.class deviceName:[UIDevice currentDevice].userInterfaceIdiom]
@"device": [self.class deviceNameByUserInterfaceIdiom:[UIDevice currentDevice].userInterfaceIdiom]
}
);
}
Expand Down Expand Up @@ -422,7 +422,7 @@ + (NSDictionary *)sessionInformation
/*
Return the device kind as lower case
*/
+ (NSString *)deviceName:(UIUserInterfaceIdiom) userInterfaceIdiom
+ (NSString *)deviceNameByUserInterfaceIdiom:(UIUserInterfaceIdiom) userInterfaceIdiom
{
if (userInterfaceIdiom == UIUserInterfaceIdiomPad) {
return @"ipad";
Expand All @@ -441,7 +441,7 @@ + (NSDictionary *)currentCapabilities
FBApplication *application = [FBSession activeSession].activeApplication;
return
@{
@"device": [self.class deviceName:[UIDevice currentDevice].userInterfaceIdiom],
@"device": [self.class deviceNameByUserInterfaceIdiom:[UIDevice currentDevice].userInterfaceIdiom],
@"sdkVersion": [[UIDevice currentDevice] systemVersion],
@"browserName": application.label ?: [NSNull null],
@"CFBundleIdentifier": application.bundleID ?: [NSNull null],
Expand Down

0 comments on commit b6e29f1

Please sign in to comment.