Skip to content

Commit b512beb

Browse files
Peter Arganyfacebook-github-bot
Peter Argany
authored andcommitted
Delete concept of live reloading
Summary: Live reloading has been deprecated in favor of fast refresh for years, this diff removes remaining references to it. Changelog: [iOS] Delete deprecated "live reloading" setting Reviewed By: fkgozali Differential Revision: D26983596 fbshipit-source-id: c7f86e7ec511f80e53659bccd8f40ac4f0cac27c
1 parent 0afba0e commit b512beb

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

React/Base/RCTBundleURLProvider.h

-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ extern const NSUInteger kRCTBundleURLProviderDefaultPort;
9696
* The IP address or hostname of the packager.
9797
*/
9898
@property (nonatomic, copy) NSString *jsLocation;
99-
100-
@property (nonatomic, assign) BOOL enableLiveReload;
10199
@property (nonatomic, assign) BOOL enableMinification;
102100
@property (nonatomic, assign) BOOL enableDev;
103101

React/Base/RCTBundleURLProvider.mm

-14
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
const NSUInteger kRCTBundleURLProviderDefaultPort = RCT_METRO_PORT;
1616

1717
static NSString *const kRCTJsLocationKey = @"RCT_jsLocation";
18-
// This option is no longer exposed in the dev menu UI.
19-
// It was renamed in D15958697 so it doesn't get stuck with no way to turn it off:
20-
static NSString *const kRCTEnableLiveReloadKey = @"RCT_enableLiveReload_LEGACY";
2118
static NSString *const kRCTEnableDevKey = @"RCT_enableDev";
2219
static NSString *const kRCTEnableMinificationKey = @"RCT_enableMinification";
2320

@@ -35,7 +32,6 @@ - (instancetype)init
3532
- (NSDictionary *)defaults
3633
{
3734
return @{
38-
kRCTEnableLiveReloadKey : @NO,
3935
kRCTEnableDevKey : @YES,
4036
kRCTEnableMinificationKey : @NO,
4137
};
@@ -275,11 +271,6 @@ - (BOOL)enableDev
275271
return [[NSUserDefaults standardUserDefaults] boolForKey:kRCTEnableDevKey];
276272
}
277273

278-
- (BOOL)enableLiveReload
279-
{
280-
return [[NSUserDefaults standardUserDefaults] boolForKey:kRCTEnableLiveReloadKey];
281-
}
282-
283274
- (BOOL)enableMinification
284275
{
285276
return [[NSUserDefaults standardUserDefaults] boolForKey:kRCTEnableMinificationKey];
@@ -295,11 +286,6 @@ - (void)setEnableDev:(BOOL)enableDev
295286
[self updateValue:@(enableDev) forKey:kRCTEnableDevKey];
296287
}
297288

298-
- (void)setEnableLiveReload:(BOOL)enableLiveReload
299-
{
300-
[self updateValue:@(enableLiveReload) forKey:kRCTEnableLiveReloadKey];
301-
}
302-
303289
- (void)setJsLocation:(NSString *)jsLocation
304290
{
305291
[self updateValue:jsLocation forKey:kRCTJsLocationKey];

React/CoreModules/RCTDevMenu.h

-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ RCT_EXTERN NSString *const RCTShowDevMenuNotification;
3434
*/
3535
@property (nonatomic, assign) BOOL profilingEnabled DEPRECATED_ATTRIBUTE;
3636

37-
/**
38-
* Deprecated, use RCTDevSettings instead.
39-
*/
40-
@property (nonatomic, assign) BOOL liveReloadEnabled DEPRECATED_ATTRIBUTE;
41-
4237
/**
4338
* Deprecated, use RCTDevSettings instead.
4439
*/

0 commit comments

Comments
 (0)