File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Branch-TestBed/Branch-TestBed-UITests/UITestBed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 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
1617NSString *cononicalIdentifier = @" item/12345" ;
1718NSString *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
You can’t perform that action at this time.
0 commit comments