Skip to content

Commit 6e0af13

Browse files
author
Edward Smith
committed
Updated automated testbed.
1 parent b6eec4e commit 6e0af13

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Branch-TestBed/Branch-TestBed-UITests/UITestBed/TBBranchViewController.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
#import "TBTableData.h"
1111
#import "TBDetailViewController.h"
1212
#import "TBWaitingView.h"
13-
#import "BNCLog.h"
1413
#import "Branch.h"
14+
#import "BNCLog.h"
15+
#import "BNCDeviceInfo.h"
1516

1617
NSString *cononicalIdentifier = @"item/12345";
1718
NSString *canonicalUrl = @"https://dev.branch.io/getting-started/deep-link-routing/guide/ios/";
@@ -273,8 +274,11 @@ - (IBAction) sendCommerceEvent:(id)sender {
273274
}
274275

275276
- (IBAction)showLocalIPAddress:(id)sender {
277+
NSString *lip = [BNCDeviceInfo getInstance].localIPAddress;
278+
if (!lip) lip = @"<nil>";
279+
if (lip.length == 0) lip = @"<empty string>";
276280
[self showDataViewControllerWithObject:@{
277-
@"Local IP Address": @"0.0.0.0",
281+
@"Local IP Address": lip,
278282
}
279283
title:@"Local IP Address"
280284
message:nil

0 commit comments

Comments
 (0)