Skip to content

Commit c8b5880

Browse files
nathanajahFacebook Github Bot 6
authored andcommitted
Renamed updateObject:forKey to updateValue:forKey
Reviewed By: javache Differential Revision: D3534820 fbshipit-source-id: 32afa39aedd43319fb5933ee0b169a41f4c8cd19
1 parent defc34a commit c8b5880

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

React/Base/RCTBundleURLProvider.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ - (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot fallbackResource:(NSS
134134
}
135135
}
136136

137-
- (void)updateDefaults:(id)object forKey:(NSString *)key
137+
- (void)updateValue:(id)object forKey:(NSString *)key
138138
{
139139
[[NSUserDefaults standardUserDefaults] setObject:object forKey:key];
140140
[[NSUserDefaults standardUserDefaults] synchronize];
@@ -163,22 +163,22 @@ - (NSString *)jsLocation
163163

164164
- (void)setEnableDev:(BOOL)enableDev
165165
{
166-
[self updateDefaults:@(enableDev) forKey:kRCTEnableDevKey];
166+
[self updateValue:@(enableDev) forKey:kRCTEnableDevKey];
167167
}
168168

169169
- (void)setEnableLiveReload:(BOOL)enableLiveReload
170170
{
171-
[self updateDefaults:@(enableLiveReload) forKey:kRCTEnableLiveReloadKey];
171+
[self updateValue:@(enableLiveReload) forKey:kRCTEnableLiveReloadKey];
172172
}
173173

174174
- (void)setJsLocation:(NSString *)jsLocation
175175
{
176-
[self updateDefaults:jsLocation forKey:kRCTJsLocationKey];
176+
[self updateValue:jsLocation forKey:kRCTJsLocationKey];
177177
}
178178

179179
- (void)setEnableMinification:(BOOL)enableMinification
180180
{
181-
[self updateDefaults:@(enableMinification) forKey:kRCTEnableMinificationKey];
181+
[self updateValue:@(enableMinification) forKey:kRCTEnableMinificationKey];
182182
}
183183

184184
+ (instancetype)sharedSettings

0 commit comments

Comments
 (0)