Skip to content

Commit 16d29fe

Browse files
adamjernstFacebook Github Bot 2
authored andcommitted
Minor refactor to RCTBundleURLProvider's constants
Reviewed By: javache Differential Revision: D3556772 fbshipit-source-id: ae394c751679171345804c4d2eab8cd41cc4ba13
1 parent b4e267a commit 16d29fe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

React/Base/RCTBundleURLProvider.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
#import <Foundation/Foundation.h>
1111

12-
@interface RCTBundleURLProvider : NSObject
13-
1412
extern NSString *const RCTBundleURLProviderUpdatedNotification;
1513

14+
@interface RCTBundleURLProvider : NSObject
15+
1616
/**
1717
* Set default settings on NSUserDefaults.
1818
*/

React/Base/RCTBundleURLProvider.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
NSString *const RCTBundleURLProviderUpdatedNotification = @"RCTBundleURLProviderUpdatedNotification";
1515

16+
static const NSUInteger kDefaultPort = 8081;
17+
1618
static NSString *const kRCTJsLocationKey = @"RCT_jsLocation";
1719
static NSString *const kRCTEnableLiveReloadKey = @"RCT_enableLiveReload";
1820
static NSString *const kRCTEnableDevKey = @"RCT_enableDev";
1921
static NSString *const kRCTEnableMinificationKey = @"RCT_enableMinification";
2022

21-
static NSString *const kDefaultPort = @"8081";
22-
2323
@implementation RCTBundleURLProvider
2424

2525
- (instancetype)init
@@ -61,7 +61,7 @@ - (void)resetToDefaults
6161

6262
static NSString *serverRootWithHost(NSString *host)
6363
{
64-
return [NSString stringWithFormat:@"http://%@:%@/", host, kDefaultPort];
64+
return [NSString stringWithFormat:@"http://%@:%lu/", host, (unsigned long)kDefaultPort];
6565
}
6666

6767
#if RCT_DEV

0 commit comments

Comments
 (0)