diff --git a/README.md b/README.md index 8d1d6d264..2f4f2fbd2 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,30 @@ There are 2 reasons why we do this: ### Requirement - Install [yarn](https://yarnpkg.com/) - Setup [react native development environment](https://reactnative.dev/docs/environment-setup) use React Native CLI. +- [CMake] is required on the build host for web runner. + + - When building for **Android**, [CMake] should be installed as a part of your + _Android SDK_ (open _SDK Manager_, and look for [CMake] within + the _SDK Tools_ tab). + + - On **MacOS**, the `pkg-config` dependency is also needed. You can install both via [Homebrew], + by executing: + ```shell + $ brew install cmake pkg-config + ``` + **IMPORTANT:** [Homebrew] should have added `eval "$(/opt/homebrew/bin/brew shellenv)"'` + command to your `.zshrc` or `.bashrc`. Although this works for interactive terminals, + it might not work for sessions inside of other apps, such as XCode, therefore you might need to + manually create symbolic links: + + ```shell + $ sudo ln -s $(which cmake) /usr/local/bin/cmake + $ sudo ln -s $(which pkg-config) /usr/local/bin/pkg-config + ``` + + For details read: https://earthly.dev/blog/homebrew-on-m1, + and [Issue#29](https://github.com/birdofpreyru/react-native-static-server/issues/29). + ### Start development - From package folder run `yarn start` to make sure we installed all required packages diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 187c9ad76..b952167ee 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -4,14 +4,20 @@ PODS: - React-Core - CocoaAsyncSocket (7.6.5) - DoubleConversion (1.1.6) - - FBLazyVector (0.71.12) - - FBReactNativeSpec (0.71.12): + - dr-pogodin-react-native-fs (2.21.0-alpha.3): - RCT-Folly (= 2021.07.22.00) - - RCTRequired (= 0.71.12) - - RCTTypeSafety (= 0.71.12) - - React-Core (= 0.71.12) - - React-jsi (= 0.71.12) - - ReactCommon/turbomodule/core (= 0.71.12) + - React-Core + - dr-pogodin-react-native-static-server (0.8.3): + - RCT-Folly (= 2021.07.22.00) + - React-Core + - FBLazyVector (0.71.13) + - FBReactNativeSpec (0.71.13): + - RCT-Folly (= 2021.07.22.00) + - RCTRequired (= 0.71.13) + - RCTTypeSafety (= 0.71.13) + - React-Core (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) - Flipper (0.125.0): - Flipper-Folly (~> 2.6) - Flipper-RSocket (~> 1.4) @@ -74,9 +80,6 @@ PODS: - FlipperKit/Core - FlipperKit/FlipperKitNetworkPlugin - fmt (6.2.1) - - GCDWebServer (3.5.4): - - GCDWebServer/Core (= 3.5.4) - - GCDWebServer/Core (3.5.4) - glog (0.3.5) - hermes-engine (0.71.12): - hermes-engine/Pre-built (= 0.71.12) @@ -112,26 +115,26 @@ PODS: - fmt (~> 6.2.1) - glog - libevent - - RCTRequired (0.71.12) - - RCTTypeSafety (0.71.12): - - FBLazyVector (= 0.71.12) - - RCTRequired (= 0.71.12) - - React-Core (= 0.71.12) - - React (0.71.12): - - React-Core (= 0.71.12) - - React-Core/DevSupport (= 0.71.12) - - React-Core/RCTWebSocket (= 0.71.12) - - React-RCTActionSheet (= 0.71.12) - - React-RCTAnimation (= 0.71.12) - - React-RCTBlob (= 0.71.12) - - React-RCTImage (= 0.71.12) - - React-RCTLinking (= 0.71.12) - - React-RCTNetwork (= 0.71.12) - - React-RCTSettings (= 0.71.12) - - React-RCTText (= 0.71.12) - - React-RCTVibration (= 0.71.12) - - React-callinvoker (0.71.12) - - React-Codegen (0.71.12): + - RCTRequired (0.71.13) + - RCTTypeSafety (0.71.13): + - FBLazyVector (= 0.71.13) + - RCTRequired (= 0.71.13) + - React-Core (= 0.71.13) + - React (0.71.13): + - React-Core (= 0.71.13) + - React-Core/DevSupport (= 0.71.13) + - React-Core/RCTWebSocket (= 0.71.13) + - React-RCTActionSheet (= 0.71.13) + - React-RCTAnimation (= 0.71.13) + - React-RCTBlob (= 0.71.13) + - React-RCTImage (= 0.71.13) + - React-RCTLinking (= 0.71.13) + - React-RCTNetwork (= 0.71.13) + - React-RCTSettings (= 0.71.13) + - React-RCTText (= 0.71.13) + - React-RCTVibration (= 0.71.13) + - React-callinvoker (0.71.13) + - React-Codegen (0.71.13): - FBReactNativeSpec - hermes-engine - RCT-Folly @@ -142,209 +145,209 @@ PODS: - React-jsiexecutor - ReactCommon/turbomodule/bridging - ReactCommon/turbomodule/core - - React-Core (0.71.12): + - React-Core (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.71.12) - - React-cxxreact (= 0.71.12) + - React-Core/Default (= 0.71.13) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/CoreModulesHeaders (0.71.12): + - React-Core/CoreModulesHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/Default (0.71.12): + - React-Core/Default (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/DevSupport (0.71.12): + - React-Core/DevSupport (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.71.12) - - React-Core/RCTWebSocket (= 0.71.12) - - React-cxxreact (= 0.71.12) + - React-Core/Default (= 0.71.13) + - React-Core/RCTWebSocket (= 0.71.13) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-jsinspector (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-jsinspector (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTActionSheetHeaders (0.71.12): + - React-Core/RCTActionSheetHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTAnimationHeaders (0.71.12): + - React-Core/RCTAnimationHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTBlobHeaders (0.71.12): + - React-Core/RCTBlobHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTImageHeaders (0.71.12): + - React-Core/RCTImageHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTLinkingHeaders (0.71.12): + - React-Core/RCTLinkingHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTNetworkHeaders (0.71.12): + - React-Core/RCTNetworkHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTSettingsHeaders (0.71.12): + - React-Core/RCTSettingsHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTTextHeaders (0.71.12): + - React-Core/RCTTextHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTVibrationHeaders (0.71.12): + - React-Core/RCTVibrationHeaders (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - React-Core/Default - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-Core/RCTWebSocket (0.71.12): + - React-Core/RCTWebSocket (0.71.13): - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Core/Default (= 0.71.12) - - React-cxxreact (= 0.71.12) + - React-Core/Default (= 0.71.13) + - React-cxxreact (= 0.71.13) - React-hermes - - React-jsi (= 0.71.12) - - React-jsiexecutor (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-jsi (= 0.71.13) + - React-jsiexecutor (= 0.71.13) + - React-perflogger (= 0.71.13) - Yoga - - React-CoreModules (0.71.12): + - React-CoreModules (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.12) - - React-Codegen (= 0.71.12) - - React-Core/CoreModulesHeaders (= 0.71.12) - - React-jsi (= 0.71.12) + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/CoreModulesHeaders (= 0.71.13) + - React-jsi (= 0.71.13) - React-RCTBlob - - React-RCTImage (= 0.71.12) - - ReactCommon/turbomodule/core (= 0.71.12) - - React-cxxreact (0.71.12): + - React-RCTImage (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-cxxreact (0.71.13): - boost (= 1.76.0) - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.71.12) - - React-jsi (= 0.71.12) - - React-jsinspector (= 0.71.12) - - React-logger (= 0.71.12) - - React-perflogger (= 0.71.12) - - React-runtimeexecutor (= 0.71.12) - - React-hermes (0.71.12): + - React-callinvoker (= 0.71.13) + - React-jsi (= 0.71.13) + - React-jsinspector (= 0.71.13) + - React-logger (= 0.71.13) + - React-perflogger (= 0.71.13) + - React-runtimeexecutor (= 0.71.13) + - React-hermes (0.71.13): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - RCT-Folly/Futures (= 2021.07.22.00) - - React-cxxreact (= 0.71.12) + - React-cxxreact (= 0.71.13) - React-jsi - - React-jsiexecutor (= 0.71.12) - - React-jsinspector (= 0.71.12) - - React-perflogger (= 0.71.12) - - React-jsi (0.71.12): + - React-jsiexecutor (= 0.71.13) + - React-jsinspector (= 0.71.13) + - React-perflogger (= 0.71.13) + - React-jsi (0.71.13): - boost (= 1.76.0) - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-jsiexecutor (0.71.12): + - React-jsiexecutor (0.71.13): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-cxxreact (= 0.71.12) - - React-jsi (= 0.71.12) - - React-perflogger (= 0.71.12) - - React-jsinspector (0.71.12) - - React-logger (0.71.12): + - React-cxxreact (= 0.71.13) + - React-jsi (= 0.71.13) + - React-perflogger (= 0.71.13) + - React-jsinspector (0.71.13) + - React-logger (0.71.13): - glog - react-native-camera (4.2.1): - React-Core @@ -377,9 +380,6 @@ PODS: - React-Core - react-native-splash-screen (3.3.0): - React-Core - - react-native-static-server (0.5.0): - - GCDWebServer (~> 3.0) - - React - react-native-version-number (0.3.6): - React - react-native-video (5.2.1): @@ -391,90 +391,90 @@ PODS: - React-Core - react-native-webview (13.2.3): - React-Core - - React-perflogger (0.71.12) - - React-RCTActionSheet (0.71.12): - - React-Core/RCTActionSheetHeaders (= 0.71.12) - - React-RCTAnimation (0.71.12): + - React-perflogger (0.71.13) + - React-RCTActionSheet (0.71.13): + - React-Core/RCTActionSheetHeaders (= 0.71.13) + - React-RCTAnimation (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.12) - - React-Codegen (= 0.71.12) - - React-Core/RCTAnimationHeaders (= 0.71.12) - - React-jsi (= 0.71.12) - - ReactCommon/turbomodule/core (= 0.71.12) - - React-RCTAppDelegate (0.71.12): + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/RCTAnimationHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTAppDelegate (0.71.13): - RCT-Folly - RCTRequired - RCTTypeSafety - React-Core - ReactCommon/turbomodule/core - - React-RCTBlob (0.71.12): + - React-RCTBlob (0.71.13): - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-Codegen (= 0.71.12) - - React-Core/RCTBlobHeaders (= 0.71.12) - - React-Core/RCTWebSocket (= 0.71.12) - - React-jsi (= 0.71.12) - - React-RCTNetwork (= 0.71.12) - - ReactCommon/turbomodule/core (= 0.71.12) - - React-RCTImage (0.71.12): + - React-Codegen (= 0.71.13) + - React-Core/RCTBlobHeaders (= 0.71.13) + - React-Core/RCTWebSocket (= 0.71.13) + - React-jsi (= 0.71.13) + - React-RCTNetwork (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTImage (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.12) - - React-Codegen (= 0.71.12) - - React-Core/RCTImageHeaders (= 0.71.12) - - React-jsi (= 0.71.12) - - React-RCTNetwork (= 0.71.12) - - ReactCommon/turbomodule/core (= 0.71.12) - - React-RCTLinking (0.71.12): - - React-Codegen (= 0.71.12) - - React-Core/RCTLinkingHeaders (= 0.71.12) - - React-jsi (= 0.71.12) - - ReactCommon/turbomodule/core (= 0.71.12) - - React-RCTNetwork (0.71.12): + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/RCTImageHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - React-RCTNetwork (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTLinking (0.71.13): + - React-Codegen (= 0.71.13) + - React-Core/RCTLinkingHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTNetwork (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.12) - - React-Codegen (= 0.71.12) - - React-Core/RCTNetworkHeaders (= 0.71.12) - - React-jsi (= 0.71.12) - - ReactCommon/turbomodule/core (= 0.71.12) - - React-RCTSettings (0.71.12): + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/RCTNetworkHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTSettings (0.71.13): - RCT-Folly (= 2021.07.22.00) - - RCTTypeSafety (= 0.71.12) - - React-Codegen (= 0.71.12) - - React-Core/RCTSettingsHeaders (= 0.71.12) - - React-jsi (= 0.71.12) - - ReactCommon/turbomodule/core (= 0.71.12) - - React-RCTText (0.71.12): - - React-Core/RCTTextHeaders (= 0.71.12) - - React-RCTVibration (0.71.12): + - RCTTypeSafety (= 0.71.13) + - React-Codegen (= 0.71.13) + - React-Core/RCTSettingsHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-RCTText (0.71.13): + - React-Core/RCTTextHeaders (= 0.71.13) + - React-RCTVibration (0.71.13): - RCT-Folly (= 2021.07.22.00) - - React-Codegen (= 0.71.12) - - React-Core/RCTVibrationHeaders (= 0.71.12) - - React-jsi (= 0.71.12) - - ReactCommon/turbomodule/core (= 0.71.12) - - React-runtimeexecutor (0.71.12): - - React-jsi (= 0.71.12) - - ReactCommon/turbomodule/bridging (0.71.12): + - React-Codegen (= 0.71.13) + - React-Core/RCTVibrationHeaders (= 0.71.13) + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/core (= 0.71.13) + - React-runtimeexecutor (0.71.13): + - React-jsi (= 0.71.13) + - ReactCommon/turbomodule/bridging (0.71.13): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.71.12) - - React-Core (= 0.71.12) - - React-cxxreact (= 0.71.12) - - React-jsi (= 0.71.12) - - React-logger (= 0.71.12) - - React-perflogger (= 0.71.12) - - ReactCommon/turbomodule/core (0.71.12): + - React-callinvoker (= 0.71.13) + - React-Core (= 0.71.13) + - React-cxxreact (= 0.71.13) + - React-jsi (= 0.71.13) + - React-logger (= 0.71.13) + - React-perflogger (= 0.71.13) + - ReactCommon/turbomodule/core (0.71.13): - DoubleConversion - glog - hermes-engine - RCT-Folly (= 2021.07.22.00) - - React-callinvoker (= 0.71.12) - - React-Core (= 0.71.12) - - React-cxxreact (= 0.71.12) - - React-jsi (= 0.71.12) - - React-logger (= 0.71.12) - - React-perflogger (= 0.71.12) + - React-callinvoker (= 0.71.13) + - React-Core (= 0.71.13) + - React-cxxreact (= 0.71.13) + - React-jsi (= 0.71.13) + - React-logger (= 0.71.13) + - React-perflogger (= 0.71.13) - ReactNativeLocalization (2.3.2): - React-Core - rn-fetch-blob (0.13.0-beta.2): @@ -493,8 +493,6 @@ PODS: - React-Core - SDWebImage (~> 5.11.1) - SDWebImageWebPCoder (~> 0.8.4) - - RNFS (2.20.0): - - React-Core - RNGestureHandler (2.12.0): - React-Core - RNInAppBrowser (3.7.0): @@ -560,6 +558,8 @@ DEPENDENCIES: - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) - BVLinearGradient (from `../node_modules/react-native-linear-gradient`) - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) + - "dr-pogodin-react-native-fs (from `../node_modules/@dr.pogodin/react-native-fs`)" + - "dr-pogodin-react-native-static-server (from `../node_modules/@dr.pogodin/react-native-static-server`)" - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) - Flipper (= 0.125.0) @@ -615,7 +615,6 @@ DEPENDENCIES: - "react-native-segmented-control (from `../node_modules/@react-native-community/segmented-control`)" - "react-native-slider (from `../node_modules/@react-native-community/slider`)" - react-native-splash-screen (from `../node_modules/react-native-splash-screen`) - - react-native-static-server (from `../node_modules/react-native-static-server`) - react-native-version-number (from `../node_modules/react-native-version-number`) - react-native-video (from `../node_modules/react-native-video`) - react-native-view-shot (from `../node_modules/react-native-view-shot`) @@ -641,7 +640,6 @@ DEPENDENCIES: - "RNCPicker (from `../node_modules/@react-native-picker/picker`)" - RNDeviceInfo (from `../node_modules/react-native-device-info`) - RNFastImage (from `../node_modules/react-native-fast-image`) - - RNFS (from `../node_modules/react-native-fs`) - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) - RNInAppBrowser (from `../node_modules/react-native-inappbrowser-reborn`) - RNKeychain (from `../node_modules/react-native-keychain`) @@ -667,7 +665,6 @@ SPEC REPOS: - Flipper-RSocket - FlipperKit - fmt - - GCDWebServer - libevent - libwebp - MMKV @@ -686,6 +683,10 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-linear-gradient" DoubleConversion: :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" + dr-pogodin-react-native-fs: + :path: "../node_modules/@dr.pogodin/react-native-fs" + dr-pogodin-react-native-static-server: + :path: "../node_modules/@dr.pogodin/react-native-static-server" FBLazyVector: :path: "../node_modules/react-native/Libraries/FBLazyVector" FBReactNativeSpec: @@ -746,8 +747,6 @@ EXTERNAL SOURCES: :path: "../node_modules/@react-native-community/slider" react-native-splash-screen: :path: "../node_modules/react-native-splash-screen" - react-native-static-server: - :path: "../node_modules/react-native-static-server" react-native-version-number: :path: "../node_modules/react-native-version-number" react-native-video: @@ -798,8 +797,6 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native-device-info" RNFastImage: :path: "../node_modules/react-native-fast-image" - RNFS: - :path: "../node_modules/react-native-fs" RNGestureHandler: :path: "../node_modules/react-native-gesture-handler" RNInAppBrowser: @@ -828,8 +825,10 @@ SPEC CHECKSUMS: BVLinearGradient: 612a04ff38e8480291f3379ee5b5a2c571f03fe0 CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54 - FBLazyVector: 4eb7ee83e8d0ad7e20a829485295ff48823c4e4c - FBReactNativeSpec: b24809f97ae83c786928d56b732957195b4fa390 + dr-pogodin-react-native-fs: 6dd213e0cefdbd2ac1f2ad3f69f33260e8be627a + dr-pogodin-react-native-static-server: 7a6d1bdf696cb383bfbb35509730bf546ca5370c + FBLazyVector: 24e08bf294faea0abc0278abb2fcad7f3e446f6f + FBReactNativeSpec: c949e4b726d8cf9e19b73be60ecfa26355deceb3 Flipper: 26fc4b7382499f1281eb8cb921e5c3ad6de91fe0 Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c Flipper-DoubleConversion: 2dc99b02f658daf147069aad9dbd29d8feb06d30 @@ -840,7 +839,6 @@ SPEC CHECKSUMS: Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541 FlipperKit: cbdee19bdd4e7f05472a66ce290f1b729ba3cb86 fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 - GCDWebServer: 2c156a56c8226e2d5c0c3f208a3621ccffbe3ce4 glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b hermes-engine: b60ebc812e0179a612d8146ac54730d533c804a2 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 @@ -849,19 +847,19 @@ SPEC CHECKSUMS: MMKVCore: 9bb7440b170181ac5b81f542ac258103542e693d OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1 - RCTRequired: 4db5e3e18b906377a502da5b358ff159ba4783ed - RCTTypeSafety: 6c1a8aed043050de0d537336c95cd1be7b66c272 - React: 214e77358d860a3ed707fede9088e7c00663a087 - React-callinvoker: 8fc1c79c26fbcadce2a5d4a3cb4b2ced2dec3436 - React-Codegen: 1517e1a59c594e6b5661d3d054209e838baa4fa7 - React-Core: ea541085ca5be10b2be289c7d82eba368b5c4900 - React-CoreModules: d9680e1d551eef1dd764df736a473cf25f701070 - React-cxxreact: 0792e80e291d086b2cf588410f6bc6e752bc1d83 - React-hermes: 0b1bba58112cb7421f1166d527a1a05489f48dbc - React-jsi: 1e41088515c4273ef5b118575337df4671851430 - React-jsiexecutor: 509cd947c28834614808ce056ee8eb700a0662aa - React-jsinspector: ec4dcbfb1f4e72f04f826a0301eceee5fa7ca540 - React-logger: 35538accacf2583693fbc3ee8b53e69a1776fcee + RCTRequired: c20235648eeb64a874f55459ceae6b081956318d + RCTTypeSafety: ca004f1fe0b76f7936f7fe7dfd761a4386cf72f5 + React: b27df2b1da30335cf1bf1909056c4e1c3a3603ae + React-callinvoker: f2a69510d781d8226d51342a3cbe8a9b13573ea5 + React-Codegen: 90eb4e8352b823234ee25adbe64233b2fc642aee + React-Core: 0771d135beb41b14e0e2ee9238fda50df6f18b97 + React-CoreModules: 0e081b26ab034992d6a60217fc35a83e8ad9b8ed + React-cxxreact: 3ec43be907f4d818c5113e436d661836d1ab5aa9 + React-hermes: 870871faa5b35c8163361e22241360de26afe07d + React-jsi: c06ec745faeea7bb8845a9b906aefa7c049c86cb + React-jsiexecutor: a2867f1f81301b1f56ad968632b6ebc45c64a530 + React-jsinspector: 7e58fe86c7cc442fd11da0c9d8bef12a8d63f771 + React-logger: a3f6ca0d018749852a2a6f07c154bfc6fcd4195a react-native-camera: 3eae183c1d111103963f3dd913b65d01aef8110f react-native-cameraroll: 134805127580aed23403b8c2cb1548920dd77b3a react-native-document-picker: 69ca2094d8780cfc1e7e613894d15290fdc54bba @@ -874,24 +872,23 @@ SPEC CHECKSUMS: react-native-segmented-control: 65df6cd0619b780b3843d574a72d4c7cec396097 react-native-slider: 33b8d190b59d4f67a541061bb91775d53d617d9d react-native-splash-screen: 4312f786b13a81b5169ef346d76d33bc0c6dc457 - react-native-static-server: 201b2a945a35096be3ae7f43e367c65bcbd61343 react-native-version-number: b415bbec6a13f2df62bf978e85bc0d699462f37f react-native-video: c26780b224543c62d5e1b2a7244a5cd1b50e8253 react-native-view-shot: f5507655f122e6b104888a11130f267a427f0d57 react-native-webview: b85dfe0bf95bef83e82fc354d6987c80fed5e7ad - React-perflogger: 75b0e25075c67565a830985f3c373e2eae5389e0 - React-RCTActionSheet: a0c3e916b327e297d124d9ebe8b0c721840ee04d - React-RCTAnimation: 3da7025801d7bf0f8cfd94574d6278d5b82a8b88 - React-RCTAppDelegate: f74a567e0bc905aaff66d47ab30e6548f727549c - React-RCTBlob: 53252ebabe7777fd1c440a34546c64e16b162908 - React-RCTImage: e230761bd34d71362dd8b3d51b5cd72674935aa0 - React-RCTLinking: 3294b1b540005628168e5a341963b0eddc3932e8 - React-RCTNetwork: 00c6b2215e54a9fb015c53a5e02b0a852dbb8568 - React-RCTSettings: 2e7e4964f45e9b24c6c32ad30b6ab2ef4a7e2ffc - React-RCTText: a9c712b13cab90e1432e0ad113edc8bdbc691248 - React-RCTVibration: a283fefb8cc29d9740a7ff2e87f72ad10f25a433 - React-runtimeexecutor: 7902246857a4ead4166869e6c42d4df329ff721d - ReactCommon: a6d1c76b9e10b439e41db225263341240e1cda9f + React-perflogger: 431a655960a02f01257d631b2a9bfbb02fd21064 + React-RCTActionSheet: 38c8d496d0faa63013d16f709e10a3acf6b5f100 + React-RCTAnimation: 6da4d599f3262ed8021433ddd96de45ac9e731b1 + React-RCTAppDelegate: 66498edcd8ba93f0bd727304be671f9f3ddf0a23 + React-RCTBlob: d8f7bf9f32fbde84565a81f4bdf34398f46d45dd + React-RCTImage: 4e31e6ebf2b9705831d1855425a043b40eec1f61 + React-RCTLinking: 22ac16d44e2df03e9ca9125273fc58a7c507f529 + React-RCTNetwork: 4bacd206834633c23475485dbc21c18563627af4 + React-RCTSettings: 4e4ace986ae92a7e1696fdac11615576b698f337 + React-RCTText: 37a1341bdf1f80e9909f6b69a7a9ee747cb682d3 + React-RCTVibration: 2271362cdf9ff2dae6a2156f5101e5c30b02694d + React-runtimeexecutor: 35cec6420c9d4144b0d06f9fdb093cf8f02bd52c + ReactCommon: fc9d1da17fa902910dcba550a54c16e7e1c70d2c ReactNativeLocalization: fb171138cdc80d5d0d4f20243d2fc82c2b3cc48f rn-fetch-blob: d469adb2e1d17f9d02ceb2b7bdd35ae5bd5db66b RNCAsyncStorage: f47fe18526970a69c34b548883e1aeceb115e3e1 @@ -900,7 +897,6 @@ SPEC CHECKSUMS: RNCPicker: 0bc2f0a29abcca7b7ed44a2d036aac9ab6d25700 RNDeviceInfo: 5795b418ed3451ebcaf39384e6cf51f60cb931c9 RNFastImage: 5c9c9fed9c076e521b3f509fe79e790418a544e8 - RNFS: 4ac0f0ea233904cb798630b3c077808c06931688 RNGestureHandler: dec4645026e7401a0899f2846d864403478ff6a5 RNInAppBrowser: e36d6935517101ccba0e875bac8ad7b0cb655364 RNKeychain: ff836453cba46938e0e9e4c22e43d43fa2c90333 @@ -914,7 +910,7 @@ SPEC CHECKSUMS: SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 TouchID: ba4c656d849cceabc2e4eef722dea5e55959ecf4 - Yoga: 39310a10944fc864a7550700de349183450f8aaa + Yoga: 135109c9b8c5d1a8af3a58d21cd4c7aa7f3bf555 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb diff --git a/package.json b/package.json index ffdadb46b..4a27afdde 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,8 @@ "test": "jest" }, "dependencies": { + "@dr.pogodin/react-native-fs": ">=2.21.0-alpha.1", + "@dr.pogodin/react-native-static-server": "0.8.3", "@fortawesome/fontawesome-svg-core": "^6.2.1", "@fortawesome/free-brands-svg-icons": "^6.2.1", "@fortawesome/free-regular-svg-icons": "^6.2.1", @@ -84,7 +86,6 @@ "react-native-elements": "^3.4.3", "react-native-error-boundary": "^1.2.3", "react-native-fast-image": "^8.6.3", - "react-native-fs": "^2.20.0", "react-native-gesture-handler": "^2.9.0", "react-native-image-picker": "^5.0.1", "react-native-inappbrowser-reborn": "^3.7.0", @@ -107,7 +108,6 @@ "react-native-screens": "^3.19.0", "react-native-skeleton-placeholder": "^5.2.4", "react-native-splash-screen": "^3.3.0", - "react-native-static-server": "^0.5.0", "react-native-status-bar-height": "^2.6.0", "react-native-svg": "^13.6.0", "react-native-svg-transformer": "^1.0.0", diff --git a/patches/react-native-static-server+0.5.0.patch b/patches/react-native-static-server+0.5.0.patch deleted file mode 100644 index 4bf4aeac7..000000000 --- a/patches/react-native-static-server+0.5.0.patch +++ /dev/null @@ -1,210 +0,0 @@ -diff --git a/node_modules/react-native-static-server/android/build.gradle b/node_modules/react-native-static-server/android/build.gradle -index 0c7bca6..8265099 100644 ---- a/node_modules/react-native-static-server/android/build.gradle -+++ b/node_modules/react-native-static-server/android/build.gradle -@@ -1,62 +1,51 @@ --// android/build.gradle -- --// based on: --// --// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/build.gradle --// original location: --// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/build.gradle --// --// * https://github.com/facebook/react-native/blob/0.60-stable/template/android/app/build.gradle --// original location: --// - https://github.com/facebook/react-native/blob/0.58-stable/local-cli/templates/HelloWorld/android/app/build.gradle -- --def DEFAULT_COMPILE_SDK_VERSION = 28 --def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3' --def DEFAULT_MIN_SDK_VERSION = 16 --def DEFAULT_TARGET_SDK_VERSION = 28 -- --def safeExtGet(prop, fallback) { -- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback --} -- --apply plugin: 'com.android.library' --apply plugin: 'maven' -+import org.apache.tools.ant.taskdefs.condition.Os - - buildscript { -- // The Android Gradle plugin is only required when opening the android folder stand-alone. -- // This avoids unnecessary downloads and potential conflicts when the library is included as a -- // module dependency in an application project. -- // ref: https://docs.gradle.org/current/userguide/tutorial_using_tasks.html#sec:build_script_external_dependencies - if (project == rootProject) { - repositories { - google() -- jcenter() -+ mavenCentral() - } - dependencies { -- classpath 'com.android.tools.build:gradle:3.4.1' -+ classpath 'com.android.tools.build:gradle:7.0.4' - } - } - } - - apply plugin: 'com.android.library' --apply plugin: 'maven' -+ -+def safeExtGet(prop, fallback) { -+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback -+} - - android { -- compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) -- buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION) -+ compileSdkVersion safeExtGet('compileSdkVersion', 31) -+ buildToolsVersion safeExtGet('buildToolsVersion', '31.0.0') - defaultConfig { -- minSdkVersion safeExtGet('minSdkVersion', DEFAULT_MIN_SDK_VERSION) -- targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION) -- versionCode 1 -- versionName "1.0" -+ minSdkVersion safeExtGet('minSdkVersion', 23) -+ if (System.properties['os.arch'] == "aarch64") { -+ // For M1 Users we need to use the NDK 24 which added support for aarch64 -+ ndkVersion safeExtGet('ndkVersion', '24.0.8215888') -+ } else { -+ // Otherwise we default to the side-by-side NDK version from AGP. -+ ndkVersion safeExtGet('ndkVersion', '21.4.7075529') -+ } -+ targetSdkVersion safeExtGet('targetSdkVersion', 31) -+ versionCode 3 -+ versionName "0.5.5" -+ } -+ buildTypes { -+ release { -+ minifyEnabled true -+ } - } - lintOptions { -- abortOnError false -+ disable 'GradleCompatible' - } - } - - repositories { -- // ref: https://www.baeldung.com/maven-local-repository -+ mavenCentral() - mavenLocal() - maven { - // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm -@@ -67,85 +56,10 @@ repositories { - url "$rootDir/../node_modules/jsc-android/dist" - } - google() -- jcenter() - } - - dependencies { -- //noinspection GradleDynamicVersion - implementation 'com.facebook.react:react-native:+' // From node_modules - implementation 'org.nanohttpd:nanohttpd:2.3.1' - implementation 'org.nanohttpd:nanohttpd-webserver:2.3.1' - } -\ No newline at end of file -- --def configureReactNativePom(def pom) { -- def packageJson = new groovy.json.JsonSlurper().parseText(file('../package.json').text) -- -- pom.project { -- name packageJson.title -- artifactId packageJson.name -- version = packageJson.version -- group = "com.futurepress.staticserver" -- description packageJson.description -- url packageJson.repository.baseUrl -- -- licenses { -- license { -- name packageJson.license -- url packageJson.repository.baseUrl + '/blob/master/' + packageJson.licenseFilename -- distribution 'repo' -- } -- } -- -- developers { -- developer { -- id packageJson.author.username -- name packageJson.author.name -- } -- } -- } --} -- --afterEvaluate { project -> -- // some Gradle build hooks ref: -- // https://www.oreilly.com/library/view/gradle-beyond-the/9781449373801/ch03.html -- task androidJavadoc(type: Javadoc) { -- source = android.sourceSets.main.java.srcDirs -- classpath += files(android.bootClasspath) -- classpath += files(project.getConfigurations().getByName('compile').asList()) -- include '**/*.java' -- } -- -- task androidJavadocJar(type: Jar, dependsOn: androidJavadoc) { -- classifier = 'javadoc' -- from androidJavadoc.destinationDir -- } -- -- task androidSourcesJar(type: Jar) { -- classifier = 'sources' -- from android.sourceSets.main.java.srcDirs -- include '**/*.java' -- } -- -- android.libraryVariants.all { variant -> -- def name = variant.name.capitalize() -- def javaCompileTask = variant.javaCompileProvider.get() -- -- task "jar${name}"(type: Jar, dependsOn: javaCompileTask) { -- from javaCompileTask.destinationDir -- } -- } -- -- artifacts { -- archives androidSourcesJar -- archives androidJavadocJar -- } -- -- task installArchives(type: Upload) { -- configuration = configurations.archives -- repositories.mavenDeployer { -- // Deploy to react-native-event-bridge/maven, ready to publish to npm -- repository url: "file://${projectDir}/../android/maven" -- configureReactNativePom pom -- } -- } --} -diff --git a/node_modules/react-native-static-server/index.d.ts b/node_modules/react-native-static-server/index.d.ts -new file mode 100644 -index 0000000..0df153a ---- /dev/null -+++ b/node_modules/react-native-static-server/index.d.ts -@@ -0,0 +1,22 @@ -+declare module 'react-native-static-server' { -+ type Options = { -+ localOnly?: boolean; -+ keepAlive?: boolean; -+ }; -+ -+ export default class StaticServer { -+ constructor(port: number, root?: string, opts?: Options); -+ -+ port: number; -+ root: string; -+ localOnly: boolean; -+ keepAlive: boolean; -+ started: boolean; -+ _origin?: string; -+ -+ start: () => Promise; -+ stop: () => Promise; -+ isRunning: () => Promise; -+ kill: () => void; -+ } -+} -\ No newline at end of file diff --git a/react-native.config.js b/react-native.config.js new file mode 100644 index 000000000..27869f825 --- /dev/null +++ b/react-native.config.js @@ -0,0 +1,9 @@ +module.exports = { + dependencies: { + '@dr.pogodin/react-native-static-server': { + platforms: { + android: null, + }, + }, + }, +}; diff --git a/src/components/common/ReactNativeStaticServer/index.ts b/src/components/common/ReactNativeStaticServer/index.ts new file mode 100644 index 000000000..c6048ab82 --- /dev/null +++ b/src/components/common/ReactNativeStaticServer/index.ts @@ -0,0 +1,12 @@ +import { Platform } from 'react-native'; + +let StaticServer = null; +let STATES = null; + +if (Platform.OS === 'ios') { + const module = require('@dr.pogodin/react-native-static-server'); + StaticServer = module.default; + STATES = module.STATES; +} + +export { StaticServer, STATES }; diff --git a/src/providers/WebRunnerProvider/WebRunner.tsx b/src/providers/WebRunnerProvider/WebRunner.tsx index 69746db53..8ac9eb0a7 100644 --- a/src/providers/WebRunnerProvider/WebRunner.tsx +++ b/src/providers/WebRunnerProvider/WebRunner.tsx @@ -5,10 +5,11 @@ import React, { useReducer } from 'react'; import WebView from 'react-native-webview'; import { WebViewMessage } from 'react-native-webview/lib/WebViewTypes'; import { WebRunnerState, WebRunnerStatus } from 'providers/contexts'; -import StaticServer from 'react-native-static-server'; import { listenMessage, restartAllHandlers } from 'messaging/index'; +// @ts-ignore +import { StaticServer, STATES } from 'components/common/ReactNativeStaticServer'; import { Message } from '@subwallet/extension-base/types'; -import RNFS from 'react-native-fs'; +import { MainBundlePath } from '@dr.pogodin/react-native-fs'; import i18n from 'utils/i18n/i18n'; import VersionNumber from 'react-native-version-number'; import { getId } from '@subwallet/extension-base/utils/getId'; @@ -64,7 +65,8 @@ function isWebRunnerAlive(eventData: NativeSyntheticEvent): bool class WebRunnerHandler { eventEmitter?: EventEmitter; webRef?: React.RefObject>; - server?: StaticServer; + // @ts-ignore + server?: typeof StaticServer; state?: WebRunnerGlobalState; runnerState: WebRunnerState = {}; lastTimeResponse?: number; @@ -156,7 +158,8 @@ class WebRunnerHandler { return true; } - const isRunning = await this.server.isRunning(); + // @ts-ignore + const isRunning = this.server.state === STATES.ACTIVE; if (!isRunning) { await this.server.start(); } @@ -275,7 +278,8 @@ class WebRunnerHandler { constructor() { if (Platform.OS === 'ios') { - this.server = new StaticServer(WEB_SERVER_PORT, RNFS.MainBundlePath + '/Web.bundle', { localOnly: true }); + // @ts-ignore + this.server = new StaticServer({ port: WEB_SERVER_PORT, fileDir: MainBundlePath + '/Web.bundle' }); } AppState.addEventListener('change', (state: string) => { const now = new Date().getTime(); @@ -388,6 +392,7 @@ export const WebRunner = React.memo(({ webRunnerRef, webRunnerStateRef, webRunne onError={e => console.debug('### WebRunner error', e)} onHttpError={e => console.debug('### WebRunner HttpError', e)} javaScriptEnabled={true} + webviewDebuggingEnabled allowFileAccess={true} allowUniversalAccessFromFileURLs={true} allowFileAccessFromFileURLs={true} diff --git a/src/screens/Account/RestoreJson/index.tsx b/src/screens/Account/RestoreJson/index.tsx index f0382527c..544ce2aeb 100644 --- a/src/screens/Account/RestoreJson/index.tsx +++ b/src/screens/Account/RestoreJson/index.tsx @@ -8,7 +8,7 @@ import { InputFile } from 'components/common/Field/InputFile'; import { KeyringPair$Json } from '@polkadot/keyring/types'; import { KeyringPairs$Json } from '@polkadot/ui-keyring/types'; import { DirectoryPickerResponse, DocumentPickerResponse } from 'react-native-document-picker'; -import * as RNFS from 'react-native-fs'; +import * as RNFS from '@dr.pogodin/react-native-fs'; import { isKeyringPairs$Json } from 'types/typeGuards'; import { batchRestoreV2, jsonGetAccountInfo, jsonRestoreV2 } from 'messaging/index'; import { ResponseJsonGetAccountInfo } from '@subwallet/extension-base/background/types'; diff --git a/src/screens/Home/Browser/BrowserTab.tsx b/src/screens/Home/Browser/BrowserTab.tsx index 6046347d2..ccefb7f4d 100644 --- a/src/screens/Home/Browser/BrowserTab.tsx +++ b/src/screens/Home/Browser/BrowserTab.tsx @@ -23,7 +23,7 @@ import { WebViewNavigationEvent, WebViewProgressEvent, } from 'react-native-webview/lib/WebViewTypes'; -import * as RNFS from 'react-native-fs'; +import * as RNFS from '@dr.pogodin/react-native-fs'; import { DEVICE } from 'constants/index'; import { BrowserService } from 'screens/Home/Browser/BrowserService'; import { BrowserOptionModal, BrowserOptionModalRef } from 'screens/Home/Browser/BrowserOptionModal'; diff --git a/yarn.lock b/yarn.lock index 79b5cfd0b..c24a9c684 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1360,6 +1360,25 @@ resolved "https://registry.yarnpkg.com/@docknetwork/node-types/-/node-types-0.16.0.tgz#23570042c823a6320654ee2c5b8c0da5d7c43d21" integrity sha512-VUZB8guX9161hDIEVn/UKJEUlXjIDE6vH5flx6uDHVc0QOhBy1bq6AGLayG4ZH19dCN39ta2sKGIFq9wLO4H2A== +"@dr.pogodin/js-utils@^0.0.6": + version "0.0.6" + resolved "https://registry.yarnpkg.com/@dr.pogodin/js-utils/-/js-utils-0.0.6.tgz#60f076dd90b87caa7812ad5aecd98bf960a7ad51" + integrity sha512-6DyIS8s+V2d2GKqhW/TOxPugcskKPsKiJt9lFLBEddw012WKGicchPizar9osq+p7ECnNmYMsDUPAC3T+ZkZKw== + +"@dr.pogodin/react-native-fs@>=2.21.0-alpha.1": + version "2.21.0-alpha.3" + resolved "https://registry.yarnpkg.com/@dr.pogodin/react-native-fs/-/react-native-fs-2.21.0-alpha.3.tgz#948be09264e57861cf1d5e6b7dd8a15ef3fe5a44" + integrity sha512-blM6rbLJVK2KmY4CgcOiP755YFWZGFcp6O332oItUALr4dlfMvF4hWactr6whs4REC89Yrbz86YtvQ6f4HQcvA== + dependencies: + buffer "^6.0.3" + +"@dr.pogodin/react-native-static-server@0.8.3": + version "0.8.3" + resolved "https://registry.yarnpkg.com/@dr.pogodin/react-native-static-server/-/react-native-static-server-0.8.3.tgz#67af02deff1c8332a9aaf26f5a29483deb88c322" + integrity sha512-yNtdJh1TbjZ/3E8bLOQbKsbNhEMWA6DeF/gNXOLkFto05ZI4jzCBOR9Ubo7M5K/xaqbosLiOgVPeI17DwYnfrw== + dependencies: + "@dr.pogodin/js-utils" "^0.0.6" + "@edgeware/node-types@3.6.2-wako": version "3.6.2-wako" resolved "https://registry.yarnpkg.com/@edgeware/node-types/-/node-types-3.6.2-wako.tgz#21463fe18f68d5f3f0675244683d416d45ab0a3d" @@ -6220,7 +6239,7 @@ balanced-match@^1.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -base-64@0.1.0, base-64@^0.1.0: +base-64@0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/base-64/-/base-64-0.1.0.tgz#780a99c84e7d600260361511c4877613bf24f6bb" integrity sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA== @@ -15073,14 +15092,6 @@ react-native-fast-image@^8.6.3: resolved "https://registry.yarnpkg.com/react-native-fast-image/-/react-native-fast-image-8.6.3.tgz#6edc3f9190092a909d636d93eecbcc54a8822255" integrity sha512-Sdw4ESidXCXOmQ9EcYguNY2swyoWmx53kym2zRsvi+VeFCHEdkO+WG1DK+6W81juot40bbfLNhkc63QnWtesNg== -react-native-fs@^2.20.0: - version "2.20.0" - resolved "https://registry.yarnpkg.com/react-native-fs/-/react-native-fs-2.20.0.tgz#05a9362b473bfc0910772c0acbb73a78dbc810f6" - integrity sha512-VkTBzs7fIDUiy/XajOSNk0XazFE9l+QlMAce7lGuebZcag5CnjszB+u4BdqzwaQOdcYb5wsJIsqq4kxInIRpJQ== - dependencies: - base-64 "^0.1.0" - utf8 "^3.0.0" - react-native-gesture-handler@^2.9.0: version "2.12.0" resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-2.12.0.tgz#59ca9d97e4c71f70b9c258f14a1a081f4c689976" @@ -15254,11 +15265,6 @@ react-native-splash-screen@^3.3.0: resolved "https://registry.yarnpkg.com/react-native-splash-screen/-/react-native-splash-screen-3.3.0.tgz#3af71ed17afe50fee69590a45aec399d071ead02" integrity sha512-rGjt6HkoSXxMqH4SQUJ1gnPQlPJV8+J47+4yhgTIan4bVvAwJhEeJH7wWt9hXSdH4+VfwTS0GTaflj1Tw83IhA== -react-native-static-server@^0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/react-native-static-server/-/react-native-static-server-0.5.0.tgz#4b396082bfe7dfdbba6fe7d7de894de5ba4ebadb" - integrity sha512-RGteckPoBZq48p9Y8V67bjZGPxLHKkEOAffLSUJiGC7hkx+H+zuekqCR+04F30NuWB7y+nb8N7Qld2RGjX5DNg== - react-native-status-bar-height@^2.6.0: version "2.6.0" resolved "https://registry.yarnpkg.com/react-native-status-bar-height/-/react-native-status-bar-height-2.6.0.tgz#b6afd25b6e3d533c43d0fcdcfd5cafd775592cea" @@ -15338,9 +15344,9 @@ react-native-webview@^13.2.3: invariant "2.2.4" react-native@^0.71.12: - version "0.71.12" - resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.71.12.tgz#a4a37de71931b5f483a15b8ab9114b9c01e1317d" - integrity sha512-1zDOTdalLepcVB8ZRIZpWlIGyyJISzAF4MIYSDdW7VDJtIRC7ybXsj/kSARF1zpGSg+LgAV8NMCZzGg598M7Iw== + version "0.71.13" + resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.71.13.tgz#e20007904f5f8a4b8b1faf1e60f0d7eb9f578ed6" + integrity sha512-zEa69YQNLdv8Sf5Pn0CNDB1K9eGuNy1KoMNxXlrZ89JZ8d02b5hihZIoOCCIwhH+iPgslYwr3ZoGd3AY6FMrgw== dependencies: "@jest/create-cache-key-function" "^29.2.1" "@react-native-community/cli" "10.2.4"