Minor refactor to RCTBundleURLProvider's constants
Reviewed By: javache Differential Revision: D3556772 fbshipit-source-id: ae394c751679171345804c4d2eab8cd41cc4ba13
This commit is contained in:
parent
b4e267a993
commit
16d29fe16f
|
@ -9,10 +9,10 @@
|
|||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface RCTBundleURLProvider : NSObject
|
||||
|
||||
extern NSString *const RCTBundleURLProviderUpdatedNotification;
|
||||
|
||||
@interface RCTBundleURLProvider : NSObject
|
||||
|
||||
/**
|
||||
* Set default settings on NSUserDefaults.
|
||||
*/
|
||||
|
|
|
@ -13,13 +13,13 @@
|
|||
|
||||
NSString *const RCTBundleURLProviderUpdatedNotification = @"RCTBundleURLProviderUpdatedNotification";
|
||||
|
||||
static const NSUInteger kDefaultPort = 8081;
|
||||
|
||||
static NSString *const kRCTJsLocationKey = @"RCT_jsLocation";
|
||||
static NSString *const kRCTEnableLiveReloadKey = @"RCT_enableLiveReload";
|
||||
static NSString *const kRCTEnableDevKey = @"RCT_enableDev";
|
||||
static NSString *const kRCTEnableMinificationKey = @"RCT_enableMinification";
|
||||
|
||||
static NSString *const kDefaultPort = @"8081";
|
||||
|
||||
@implementation RCTBundleURLProvider
|
||||
|
||||
- (instancetype)init
|
||||
|
@ -61,7 +61,7 @@ static NSString *const kDefaultPort = @"8081";
|
|||
|
||||
static NSString *serverRootWithHost(NSString *host)
|
||||
{
|
||||
return [NSString stringWithFormat:@"http://%@:%@/", host, kDefaultPort];
|
||||
return [NSString stringWithFormat:@"http://%@:%lu/", host, (unsigned long)kDefaultPort];
|
||||
}
|
||||
|
||||
#if RCT_DEV
|
||||
|
|
Loading…
Reference in New Issue