Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit f0f3737

Browse files
committed
Merge pull request #66 from Microsoft/code_cleanup
Adding more comments to the CodePush class
2 parents 6aab2a5 + 5d115d9 commit f0f3737

File tree

3 files changed

+163
-53
lines changed

3 files changed

+163
-53
lines changed

CodePush.h

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
#import "RCTBridgeModule.h"
22

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+
*/
516
+ (NSURL *)bundleURL;
617

718
+ (NSURL *)bundleURLForResource:(NSString *)resourceName;
@@ -25,7 +36,7 @@
2536

2637
@end
2738

28-
@interface CodePushDownloadHandler : NSObject<NSURLConnectionDelegate>
39+
@interface CodePushDownloadHandler : NSObject <NSURLConnectionDelegate>
2940

3041
@property (strong) NSOutputStream *outputFileStream;
3142
@property long expectedContentLength;

0 commit comments

Comments
 (0)