-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "chore(llm): crypto polyfill rework"
This reverts commit 5eecbeb.
- Loading branch information
Showing
17 changed files
with
78 additions
and
147 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
import "./src/polyfills"; | ||
import "./src/init"; | ||
// Injects node.js shims. | ||
// https://github.com/parshap/node-libs-react-native | ||
import "node-libs-react-native/globals"; | ||
|
||
// Fix for crash with `Unsupported top level event type "onGestureHandlerStateChange" dispatched` | ||
// https://github.com/kmagiera/react-native-gesture-handler/issues/320#issuecomment-443815828 | ||
import "react-native-gesture-handler"; | ||
|
||
/** URL polyfill */ | ||
// URL object `intentionally` lightweight, does not support URLSearchParams features | ||
// https://github.com/facebook/react-native/issues/23922 | ||
import "react-native-url-polyfill/auto"; | ||
|
||
// cosmjs use TextEncoder that's not available in React Native but on Node | ||
import "text-encoding-polyfill"; | ||
|
||
// import all possible polyfills done by live-common for React Native. See in reactNative.ts for more details. | ||
import "@ledgerhq/live-common/reactNative"; | ||
|
||
import { AppRegistry } from "react-native"; | ||
import BackgroundRunnerService from "./services/BackgroundRunnerService"; | ||
import App from "./src"; | ||
import logReport from "./src/log-report"; | ||
import { withSentry } from "./src/sentry"; | ||
|
||
if (__DEV__) { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
require("react-native-performance-flipper-reporter").setupDefaultFlipperReporter(); | ||
} | ||
|
||
logReport.logReportInit(); | ||
|
||
const Root = withSentry(App); | ||
|
||
AppRegistry.registerComponent("ledgerlivemobile", () => Root); | ||
AppRegistry.registerHeadlessTask("BackgroundRunnerService", () => BackgroundRunnerService); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
/* istanbul ignore file: pure exports, test unecessary */ | ||
|
||
/** ⚠️ keep this order of import. @see https://docs.ethers.io/v5/cookbook/react-native/#cookbook-reactnative ⚠️ */ | ||
import "react-native-get-random-values"; | ||
import "@ethersproject/shims"; | ||
export * from "./rpc.common"; | ||
export * as default from "./rpc.common"; |
Oops, something went wrong.