From 19ca13377682ca6fe27850f52005f8926127cdb3 Mon Sep 17 00:00:00 2001 From: William Swanson Date: Tue, 20 Apr 2021 14:16:04 -0700 Subject: [PATCH] Upgrade to react-native v0.64.0 --- .flowconfig | 5 +- .gitattributes | 4 +- README.md | 19 +- android/app/build.gradle | 5 +- android/app/src/debug/AndroidManifest.xml | 7 +- android/app/src/main/AndroidManifest.xml | 2 - android/app/src/main/res/values/styles.xml | 2 +- android/build.gradle | 7 +- android/gradle.properties | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- android/gradlew | 2 + android/gradlew.bat | 22 +- ios/Podfile | 13 +- ios/Podfile.lock | 629 +- ios/edge.xcodeproj/project.pbxproj | 23 + ios/edge/AppDelegate.m | 6 +- metro.config.js | 2 +- package.json | 18 +- patches/react-native-fast-crypto+2.0.0.patch | 18 +- yarn.lock | 5157 +++++++---------- 20 files changed, 2539 insertions(+), 3406 deletions(-) diff --git a/.flowconfig b/.flowconfig index 6b9fe99c8be..d2dc27bc10f 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,6 +1,7 @@ [ignore] ; Edge additions .*/node_modules/edge-plugin-bity/.* +.*/node_modules/metro/.* .*/node_modules/react-native-camera/.* .*/node_modules/react-native-keyboard-aware-scroll-view/.* .*/node_modules/react-native-permissions/.* @@ -15,10 +16,6 @@ ; Ignore polyfills node_modules/react-native/Libraries/polyfills/.* -; These should not be required directly -; require from fbjs/lib instead: require('fbjs/lib/warning') -node_modules/warning/.* - ; Flow doesn't support platforms .*/Libraries/Utilities/LoadingView.js diff --git a/.gitattributes b/.gitattributes index d42ff18354d..45a3dcb2a20 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,3 @@ -*.pbxproj -text +# Windows files should use crlf line endings +# https://help.github.com/articles/dealing-with-line-endings/ +*.bat text eol=crlf diff --git a/README.md b/README.md index 18481992b9f..b26f67ff85a 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Edge is known to build with this exact tool set. Updated versions of these tools yarn ### Run the bundler - + yarn start ### XCode Setup - Use Legacy Build System @@ -163,22 +163,7 @@ Run deploy ## Debugging -For debugging, we recommend using [React Native Debugger](https://github.com/jhen0409/react-native-debugger). The current latest version (0.11) works well. - -### Installation - -You can download React Native Debgger 0.10.11 at -[https://github.com/jhen0409/react-native-debugger/releases/tag/v0.10.11](https://github.com/jhen0409/react-native-debugger/releases/tag/v0.10.11). - -#### Debugging in iOS Simulator - - ⌘ + d (command + d) - Select "Debug JS Remotely" - -#### Debugging in Android Emulator (GenyMotion / Android Studios) - - ⌘ + m (command + m) - Select "Debug JS Remotely" +As with any modern React Native app, [Flipper](https://fbflipper.com/) is the officially-supported debugging app. Use the "React Native Hermes Debugger" to debug Javascript running in the UI. ## Contributing diff --git a/android/app/build.gradle b/android/app/build.gradle index e153ca899d3..a61802a8162 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -121,6 +121,8 @@ def jscFlavor = 'org.webkit:android-jsc:+' def enableHermes = project.ext.react.get("enableHermes", false); android { + ndkVersion rootProject.ext.ndkVersion + compileSdkVersion rootProject.ext.compileSdkVersion compileOptions { @@ -163,11 +165,12 @@ android { variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // https://developer.android.com/studio/build/configure-apk-splits.html + // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = - versionCodes.get(abi) * 1048576 + defaultConfig.versionCode + defaultConfig.versionCode * 1000 + versionCodes.get(abi) } } diff --git a/android/app/src/debug/AndroidManifest.xml b/android/app/src/debug/AndroidManifest.xml index fa26aa56e1c..b2f3ad9fce9 100644 --- a/android/app/src/debug/AndroidManifest.xml +++ b/android/app/src/debug/AndroidManifest.xml @@ -4,5 +4,10 @@ - + + + diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 4e92b5f742c..81f856b614b 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -123,7 +123,5 @@ - - diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index 08f1fba4b76..bb0702ee5a1 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -1,7 +1,7 @@ -