diff --git a/React/Base/RCTBundleURLProvider.h b/React/Base/RCTBundleURLProvider.h index b1cf8e29b..47d363c46 100644 --- a/React/Base/RCTBundleURLProvider.h +++ b/React/Base/RCTBundleURLProvider.h @@ -9,10 +9,10 @@ #import -@interface RCTBundleURLProvider : NSObject - extern NSString *const RCTBundleURLProviderUpdatedNotification; +@interface RCTBundleURLProvider : NSObject + /** * Set default settings on NSUserDefaults. */ diff --git a/React/Base/RCTBundleURLProvider.m b/React/Base/RCTBundleURLProvider.m index be5826658..722d2f0c1 100644 --- a/React/Base/RCTBundleURLProvider.m +++ b/React/Base/RCTBundleURLProvider.m @@ -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