mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-14 02:14:52 +08:00
remove keys
This commit is contained in:
@@ -17,9 +17,9 @@ android {
|
||||
}
|
||||
}
|
||||
buildTypes {
|
||||
/*debug {
|
||||
debug {
|
||||
buildConfigField "String", "RUN_TEST", "\"\""
|
||||
}*/
|
||||
}
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
|
||||
@@ -25,14 +25,14 @@ public class MainActivity extends FragmentActivity implements DefaultHardwareBac
|
||||
super.onCreate(savedInstanceState);
|
||||
mReactRootView = new ReactRootView(this);
|
||||
|
||||
codePush = new CodePush("d73bf5d8-4fbd-4e55-a837-accd328a21ba", this);
|
||||
codePush = new CodePush("DEPLOYMENT_KEY_HERE", this);
|
||||
|
||||
ReactInstanceManager.Builder builder = ReactInstanceManager.builder()
|
||||
.setApplication(getApplication())
|
||||
.setJSBundleFile(codePush.getBundleUrl("index.android.bundle"));
|
||||
|
||||
String mainComponentName = null;
|
||||
/*
|
||||
|
||||
switch (BuildConfig.RUN_TEST) {
|
||||
case "DOWNLOAD_PROGRESS":
|
||||
builder = builder.setJSMainModuleName(TEST_FOLDER_PREFIX + "DownloadProgressTests/DownloadProgressTestApp");
|
||||
@@ -51,7 +51,7 @@ public class MainActivity extends FragmentActivity implements DefaultHardwareBac
|
||||
builder = builder.setJSMainModuleName("index.android");
|
||||
mainComponentName = "CodePushDemoApp";
|
||||
break;
|
||||
}*/
|
||||
}
|
||||
|
||||
mReactInstanceManager = builder.addPackage(new MainReactPackage())
|
||||
.addPackage(codePush.getReactPackage())
|
||||
|
||||
@@ -44,8 +44,6 @@
|
||||
*
|
||||
* see http://facebook.github.io/react-native/docs/runningondevice.html
|
||||
*/
|
||||
|
||||
NSLog(@"%@", [[CodePush bundleURL] absoluteString]);
|
||||
|
||||
jsCodeLocation = [CodePush bundleURL];
|
||||
|
||||
|
||||
@@ -44,6 +44,6 @@
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string></string>
|
||||
<key>CodePushDeploymentKey</key>
|
||||
<string>5c73310a-cc93-4aa5-bf9f-81c6b648232c</string>
|
||||
<string>deployment-key-here</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB |
Reference in New Issue
Block a user