Upgrade to rn 0.38 (#624)

* upgrade to RN 0.38
This commit is contained in:
BO KANG
2016-11-28 13:58:13 -08:00
committed by GitHub
parent 2431cb8c19
commit 76b4f4d558
6 changed files with 16 additions and 12 deletions

View File

@@ -17,6 +17,7 @@
# Ignore unexpected extra @providesModule
.*/node_modules/commoner/test/source/widget/share.js
.*/node_modules/.*/node_modules/fbjs/.*
# Ignore duplicate module providers
# For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root

View File

@@ -38,4 +38,4 @@ npm-debug.log
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore
*.keystore

View File

@@ -8,9 +8,9 @@ import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.microsoft.codepush.react.CodePush;
import java.util.Arrays;
import java.util.List;
@@ -20,8 +20,7 @@ public class MainApplication extends Application implements ReactApplication {
@Override
protected String getJSBundleFile() {
return CodePush.getJSBundleFile();
}
}
@Override
protected boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
@@ -31,13 +30,18 @@ public class MainApplication extends Application implements ReactApplication {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new CodePush("deployment-key-here", MainApplication.this, BuildConfig.DEBUG)
);
new CodePush("deployment-key-here", MainApplication.this, BuildConfig.DEBUG) );
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
}

View File

@@ -39,7 +39,6 @@
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>NSAppTransportSecurity</key>
<!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
<dict>
<key>NSExceptionDomains</key>
<dict>

View File

@@ -7,8 +7,8 @@
},
"dependencies": {
"babel-preset-react-native-stage-0": "1.0.1",
"react": "15.3.1",
"react-native": "0.37.0",
"react": "15.4.0",
"react-native": "0.38.0",
"react-native-code-push": "file:../../"
}
}

View File

@@ -53,8 +53,8 @@ We try our best to maintain backwards compatability of our plugin with previous
| v0.29-v0.30 | v1.13.0+ *(RN refactored native hosting code)* |
| v0.31-v0.33 | v1.14.6+ *(RN refactored native hosting code)* |
| v0.34-v0.35 | v1.15.0+ *(RN refactored native hosting code)* |
| v0.36-v0.37 | v1.16.0+ *(RN refactored resume handler)* |
| v0.38+ | TBD :) We work hard to respond to new RN releases, but they do occasionally break us. We will update this chart with each RN release, so that users can check to see what our "official" support is.
| v0.36-v0.38 | v1.16.0+ *(RN refactored resume handler)* |
| v0.39+ | TBD :) We work hard to respond to new RN releases, but they do occasionally break us. We will update this chart with each RN release, so that users can check to see what our "official" support is.
## Supported Components