mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-19 19:39:54 +08:00
Adding comments to CodePush class
This commit is contained in:
15
CodePush.h
15
CodePush.h
@@ -1,7 +1,18 @@
|
||||
#import "RCTBridgeModule.h"
|
||||
|
||||
@interface CodePush : NSObject<RCTBridgeModule>
|
||||
@interface CodePush : NSObject <RCTBridgeModule>
|
||||
|
||||
/*
|
||||
* This method is used to retreive the URL for the most recent
|
||||
* version of the JavaScript bundle. This could be either the
|
||||
* bundle that was packaged with the app binary, or the bundle
|
||||
* that was downloaded as part of a CodePush update. The value returned
|
||||
* should be used to "bootstrap" the React Native bridge.
|
||||
*
|
||||
* This method assumes that your JS bundle is named "main.jsbundle"
|
||||
* and therefore, if it isn't, you should use either the bundleURLForResource:
|
||||
* or bundleURLForResource:withExtension: methods to override thsat behavior.
|
||||
*/
|
||||
+ (NSURL *)bundleURL;
|
||||
|
||||
+ (NSURL *)bundleURLForResource:(NSString *)resourceName;
|
||||
@@ -25,7 +36,7 @@
|
||||
|
||||
@end
|
||||
|
||||
@interface CodePushDownloadHandler : NSObject<NSURLConnectionDelegate>
|
||||
@interface CodePushDownloadHandler : NSObject <NSURLConnectionDelegate>
|
||||
|
||||
@property (strong) NSOutputStream *outputFileStream;
|
||||
@property long expectedContentLength;
|
||||
|
||||
Reference in New Issue
Block a user