Renamed updateObject:forKey to updateValue:forKey

Reviewed By: javache

Differential Revision: D3534820

fbshipit-source-id: 32afa39aedd43319fb5933ee0b169a41f4c8cd19
This commit is contained in:
Nathan Azaria 2016-07-11 03:34:33 -07:00 committed by Facebook Github Bot 6
parent defc34a28b
commit c8b5880102
1 changed files with 5 additions and 5 deletions

View File

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