From 426895cb7bfb7433ca523038f2481501fa99d618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Sj=C3=B6berg?= Date: Wed, 29 May 2024 21:14:20 +0400 Subject: [PATCH] React Native 0.74 --- .gitignore | 12 +- Gemfile | 6 +- android/app/build.gradle | 2 - .../java/com/blixtwallet/MainApplication.kt | 4 +- .../res/drawable/rn_edit_text_material.xml | 3 +- android/build.gradle | 9 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- android/gradlew | 14 +- android/gradlew.bat | 20 +- ios/BlixtWallet.xcodeproj/project.pbxproj | 124 +- ios/BlixtWallet/AppDelegate.mm | 4 +- ios/BlixtWallet/Info.plist | 2 +- ios/Podfile | 19 +- metro.config.js | 4 +- package.json | 75 +- src/Main.tsx | 4 +- src/components/Camera.tsx | 67 +- src/components/FooterNav.tsx | 4 +- src/hooks/useBalance.ts | 81 +- src/hooks/useStackNavigationOptions.ts | 18 +- src/windows/Contacts/index.tsx | 6 +- src/windows/LNURL/index.tsx | 15 +- src/windows/OnChain/index.tsx | 56 +- src/windows/Receive/index.tsx | 29 +- src/windows/Send/SendCamera.tsx | 14 +- src/windows/Send/SendCameraKit.tsx | 36 + src/windows/Settings/index.tsx | 31 +- src/windows/Welcome/AlmostDone.tsx | 172 +- yarn.lock | 1413 +++++++---------- 29 files changed, 1080 insertions(+), 1166 deletions(-) diff --git a/.gitignore b/.gitignore index 09d7a1f8b..93da9ff51 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,7 @@ DerivedData *.hmap *.ipa *.xcuserstate -ios/.xcode.env.local +**/.xcode.env.local # Android/IntelliJ # @@ -56,7 +56,7 @@ yarn-error.log *.jsbundle # Ruby / CocoaPods -/ios/Pods/ +**/Pods/ /vendor/bundle/ # Temporary files created by Metro to check the health of the file watcher @@ -95,3 +95,11 @@ out Session.vim Sessionx.vim *~ + +# Yarn +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions \ No newline at end of file diff --git a/Gemfile b/Gemfile index 6a7d5c7a4..8d72c37a8 100644 --- a/Gemfile +++ b/Gemfile @@ -3,5 +3,7 @@ source 'https://rubygems.org' # You may use http://rbenv.org/ or https://rvm.io/ to install and use this version ruby ">= 2.6.10" -gem 'cocoapods', '~> 1.13' -gem 'activesupport', '>= 6.1.7.3', '< 7.1.0' +# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper +# bound in the template on Cocoapods with next React Native release. +gem 'cocoapods', '>= 1.13', '< 1.15' +gem 'activesupport', '>= 6.1.7.5', '< 7.1.0' diff --git a/android/app/build.gradle b/android/app/build.gradle index 318c10605..fbaa8f6bc 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -189,8 +189,6 @@ dependencies { // The version of react-native is set by the React Native Gradle Plugin implementation("com.facebook.react:react-android") - implementation("com.facebook.react:flipper-integration") - if (hermesEnabled.toBoolean()) { implementation("com.facebook.react:hermes-android") } else { diff --git a/android/app/src/main/java/com/blixtwallet/MainApplication.kt b/android/app/src/main/java/com/blixtwallet/MainApplication.kt index a83ac3353..b3218ae23 100644 --- a/android/app/src/main/java/com/blixtwallet/MainApplication.kt +++ b/android/app/src/main/java/com/blixtwallet/MainApplication.kt @@ -10,7 +10,6 @@ import com.facebook.react.ReactPackage import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost import com.facebook.react.defaults.DefaultReactNativeHost -import com.facebook.react.flipper.ReactNativeFlipper import com.facebook.soloader.SoLoader import com.hypertrack.hyperlog.HyperLog @@ -45,7 +44,7 @@ class MainApplication : Application(), ReactApplication { } override val reactHost: ReactHost - get() = getDefaultReactHost(this.applicationContext, reactNativeHost) + get() = getDefaultReactHost(applicationContext, reactNativeHost) override fun onCreate() { super.onCreate() @@ -54,7 +53,6 @@ class MainApplication : Application(), ReactApplication { // If you opted-in for the New Architecture, we load the native entry point for this app. load() } - ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager) /** * Blixt: diff --git a/android/app/src/main/res/drawable/rn_edit_text_material.xml b/android/app/src/main/res/drawable/rn_edit_text_material.xml index 73b37e4d9..5c25e728e 100644 --- a/android/app/src/main/res/drawable/rn_edit_text_material.xml +++ b/android/app/src/main/res/drawable/rn_edit_text_material.xml @@ -17,7 +17,8 @@ android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material" android:insetRight="@dimen/abc_edit_text_inset_horizontal_material" android:insetTop="@dimen/abc_edit_text_inset_top_material" - android:insetBottom="@dimen/abc_edit_text_inset_bottom_material"> + android:insetBottom="@dimen/abc_edit_text_inset_bottom_material" + >