Minor refactor to RCTBundleURLProvider's constants

Reviewed By: javache

Differential Revision: D3556772

fbshipit-source-id: ae394c751679171345804c4d2eab8cd41cc4ba13
This commit is contained in:
Adam Ernst 2016-07-13 16:39:21 -07:00 committed by Facebook Github Bot 2
parent b4e267a993
commit 16d29fe16f
2 changed files with 5 additions and 5 deletions

View File

@ -9,10 +9,10 @@
#import <Foundation/Foundation.h>
@interface RCTBundleURLProvider : NSObject
extern NSString *const RCTBundleURLProviderUpdatedNotification;
@interface RCTBundleURLProvider : NSObject
/**
* Set default settings on NSUserDefaults.
*/

View File

@ -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