File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -192,3 +192,5 @@ Examples/testapp_rn
192192
193193# Android debug build files (conflict ignoring #Visual Studio files)
194194! android /app /src /debug /
195+
196+ ** /* .tgz
Original file line number Diff line number Diff line change 55#import < React/RCTEventDispatcher.h>
66#import < React/RCTRootView.h>
77#import < React/RCTUtils.h>
8+ #import < React/RCTReloadCommand.h>
89#else // back compatibility for RN version < 0.40
910#import " RCTAssert.h"
1011#import " RCTBridgeModule.h"
@@ -31,7 +32,7 @@ @implementation CodePush {
3132 long long _latestExpectedContentLength;
3233 long long _latestReceivedConentLength;
3334 BOOL _didUpdateProgress;
34-
35+
3536 BOOL _allowed;
3637 BOOL _restartInProgress;
3738 NSMutableArray *_restartQueue;
@@ -376,7 +377,7 @@ - (instancetype)init
376377 _allowed = YES ;
377378 _restartInProgress = NO ;
378379 _restartQueue = [NSMutableArray arrayWithCapacity: 1 ];
379-
380+
380381 self = [super init ];
381382 if (self) {
382383 [self initializeUpdateAfterRestart ];
@@ -540,7 +541,7 @@ - (void)loadBundle
540541 [super .bridge setValue: [CodePush bundleURL ] forKey: @" bundleURL" ];
541542 }
542543
543- [ super .bridge reload ] ;
544+ RCTTriggerReloadCommandListeners ( @" react-native-code-push: Restart " ) ;
544545 });
545546}
546547
You can’t perform that action at this time.
0 commit comments