This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +163
-53
lines changed Expand file tree Collapse file tree 3 files changed +163
-53
lines changed Original file line number Diff line number Diff line change 1
1
#import " RCTBridgeModule.h"
2
2
3
- @interface CodePush : NSObject <RCTBridgeModule>
4
-
3
+ @interface CodePush : NSObject <RCTBridgeModule>
4
+
5
+ /*
6
+ * This method is used to retrieve the URL for the most recent
7
+ * version of the JavaScript bundle. This could be either the
8
+ * bundle that was packaged with the app binary, or the bundle
9
+ * that was downloaded as part of a CodePush update. The value returned
10
+ * should be used to "bootstrap" the React Native bridge.
11
+ *
12
+ * This method assumes that your JS bundle is named "main.jsbundle"
13
+ * and therefore, if it isn't, you should use either the bundleURLForResource:
14
+ * or bundleURLForResource:withExtension: methods to override that behavior.
15
+ */
5
16
+ (NSURL *)bundleURL ;
6
17
7
18
+ (NSURL *)bundleURLForResource : (NSString *)resourceName ;
25
36
26
37
@end
27
38
28
- @interface CodePushDownloadHandler : NSObject <NSURLConnectionDelegate >
39
+ @interface CodePushDownloadHandler : NSObject <NSURLConnectionDelegate >
29
40
30
41
@property (strong ) NSOutputStream *outputFileStream;
31
42
@property long expectedContentLength;
You can’t perform that action at this time.
0 commit comments