From c8b58801020d85ed85d02525d6e9012c6c8ca8e9 Mon Sep 17 00:00:00 2001 From: Nathan Azaria Date: Mon, 11 Jul 2016 03:34:33 -0700 Subject: [PATCH] Renamed updateObject:forKey to updateValue:forKey Reviewed By: javache Differential Revision: D3534820 fbshipit-source-id: 32afa39aedd43319fb5933ee0b169a41f4c8cd19 --- React/Base/RCTBundleURLProvider.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/React/Base/RCTBundleURLProvider.m b/React/Base/RCTBundleURLProvider.m index 51d0e941a..ba8a0a008 100644 --- a/React/Base/RCTBundleURLProvider.m +++ b/React/Base/RCTBundleURLProvider.m @@ -134,7 +134,7 @@ static NSString *serverRootWithHost(NSString *host) } } -- (void)updateDefaults:(id)object forKey:(NSString *)key +- (void)updateValue:(id)object forKey:(NSString *)key { [[NSUserDefaults standardUserDefaults] setObject:object forKey:key]; [[NSUserDefaults standardUserDefaults] synchronize]; @@ -163,22 +163,22 @@ static NSString *serverRootWithHost(NSString *host) - (void)setEnableDev:(BOOL)enableDev { - [self updateDefaults:@(enableDev) forKey:kRCTEnableDevKey]; + [self updateValue:@(enableDev) forKey:kRCTEnableDevKey]; } - (void)setEnableLiveReload:(BOOL)enableLiveReload { - [self updateDefaults:@(enableLiveReload) forKey:kRCTEnableLiveReloadKey]; + [self updateValue:@(enableLiveReload) forKey:kRCTEnableLiveReloadKey]; } - (void)setJsLocation:(NSString *)jsLocation { - [self updateDefaults:jsLocation forKey:kRCTJsLocationKey]; + [self updateValue:jsLocation forKey:kRCTJsLocationKey]; } - (void)setEnableMinification:(BOOL)enableMinification { - [self updateDefaults:@(enableMinification) forKey:kRCTEnableMinificationKey]; + [self updateValue:@(enableMinification) forKey:kRCTEnableMinificationKey]; } + (instancetype)sharedSettings