From 213e6afd42124afe44df866e02923dba97ac5f09 Mon Sep 17 00:00:00 2001 From: guoshuyu Date: Thu, 17 Jan 2019 09:41:19 +0800 Subject: [PATCH] update to 0.57.8 release 2.1 --- android/app/build.gradle | 4 ++-- ios/GSYGithubAPP/AppDelegate.m | 6 +++++- ios/GSYGithubAPP/Info.plist | 4 ++-- package.json | 6 +++--- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index c8dd6d9..58445f8 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -101,8 +101,8 @@ android { applicationId "com.gsygithubapp" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 13 - versionName "2.0" + versionCode 14 + versionName "2.1" ndk { abiFilters "armeabi-v7a", "x86" } diff --git a/ios/GSYGithubAPP/AppDelegate.m b/ios/GSYGithubAPP/AppDelegate.m index 8f03b17..16595ee 100644 --- a/ios/GSYGithubAPP/AppDelegate.m +++ b/ios/GSYGithubAPP/AppDelegate.m @@ -16,7 +16,11 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( { NSURL *jsCodeLocation; - jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; + #ifdef DEBUG + jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; + #else + jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; + #endif RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation moduleName:@"GSYGithubAPP" diff --git a/ios/GSYGithubAPP/Info.plist b/ios/GSYGithubAPP/Info.plist index 4089bc5..031d66c 100644 --- a/ios/GSYGithubAPP/Info.plist +++ b/ios/GSYGithubAPP/Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 2.0 + 2.1 CFBundleSignature ???? CFBundleVersion - 13 + 14 LSRequiresIPhoneOS NSAppTransportSecurity diff --git a/package.json b/package.json index 4541778..4cc0489 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ "lottie-react-native": "^2.5.0", "marked": "^0.3.6", "moment": "^2.19.1", - "react": "^16.6.1", - "react-native": "0.57.5", + "react": "^16.6.3", + "react-native": "^0.57.8", "react-native-autolink": "^1.4.0", "react-native-gesture-handler": "^1.0.0-alpha.33", "react-native-htmlview": "^0.13.0", @@ -46,7 +46,7 @@ "babel-preset-react-native": "4.0.0", "jest": "21.2.1", "metro-react-native-babel-preset": "^0.45.6", - "react-test-renderer": "^16.6.1" + "react-test-renderer": "^16.6.3" }, "jest": { "preset": "react-native"