mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
Exposing deploymentKey to CodePush
This commit is contained in:
11
CodePush.h
11
CodePush.h
@@ -12,7 +12,7 @@
|
||||
* 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 that behavior.
|
||||
*/
|
||||
*/
|
||||
+ (NSURL *)bundleURL;
|
||||
|
||||
+ (NSURL *)bundleURLForResource:(NSString *)resourceName;
|
||||
@@ -22,6 +22,13 @@
|
||||
|
||||
+ (NSString *)getApplicationSupportDirectory;
|
||||
|
||||
/*
|
||||
* This methods allows dynamically setting the app's
|
||||
* deployment key, in addition to setting it via
|
||||
* the Info.plist file's CodePushDeploymentKey setting.
|
||||
*/
|
||||
+ (void)setDeploymentKey:(NSString *)deploymentKey;
|
||||
|
||||
// The below methods are only used during tests.
|
||||
+ (BOOL)isUsingTestConfiguration;
|
||||
+ (void)setUsingTestConfiguration:(BOOL)shouldUseTestConfiguration;
|
||||
@@ -62,7 +69,7 @@ failCallback:(void (^)(NSError *err))failCallback;
|
||||
@interface CodePushPackage : NSObject
|
||||
|
||||
+ (void)installPackage:(NSDictionary *)updatePackage
|
||||
error:(NSError **)error;
|
||||
error:(NSError **)error;
|
||||
|
||||
+ (NSDictionary *)getCurrentPackage:(NSError **)error;
|
||||
+ (NSString *)getCurrentPackageFolderPath:(NSError **)error;
|
||||
|
||||
Reference in New Issue
Block a user