move URL polyfill to the polyfill file
This commit is contained in:
+5
-2
@@ -15,7 +15,7 @@ This is NOT required when developing for web.
|
|||||||
|
|
||||||
- Set up your environment [using the expo instructions](https://docs.expo.dev/guides/local-app-development/).
|
- Set up your environment [using the expo instructions](https://docs.expo.dev/guides/local-app-development/).
|
||||||
- make sure that the JAVA_HOME points to the zulu-17 directory in your `.zshrc` or `.bashrc` file: `export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home`. DO NOT use another JDK or you will encounter build errors.
|
- make sure that the JAVA_HOME points to the zulu-17 directory in your `.zshrc` or `.bashrc` file: `export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home`. DO NOT use another JDK or you will encounter build errors.
|
||||||
- If you're running macOS, make sure you are running the correct versions of Ruby and Cocoapods:-
|
- If you're running macOS, make sure you are running the correct versions of Ruby and Cocoapods:-
|
||||||
- If you are using Apple Silicon and this is the first time you are building for RN 0.74+, you may need to run:
|
- If you are using Apple Silicon and this is the first time you are building for RN 0.74+, you may need to run:
|
||||||
- `arch -arm64 brew install llvm`
|
- `arch -arm64 brew install llvm`
|
||||||
- `sudo gem install ffi`
|
- `sudo gem install ffi`
|
||||||
@@ -33,7 +33,7 @@ This is NOT required when developing for web.
|
|||||||
- After initial setup:
|
- After initial setup:
|
||||||
- Copy `google-services.json.example` to `google-services.json` or provide your own `google-services.json`. (A real firebase project is NOT required)
|
- Copy `google-services.json.example` to `google-services.json` or provide your own `google-services.json`. (A real firebase project is NOT required)
|
||||||
- `npx expo prebuild` -> you will also need to run this anytime `app.json` or native `package.json` deps change
|
- `npx expo prebuild` -> you will also need to run this anytime `app.json` or native `package.json` deps change
|
||||||
|
|
||||||
### Running the Native App
|
### Running the Native App
|
||||||
|
|
||||||
- iOS: `yarn ios`
|
- iOS: `yarn ios`
|
||||||
@@ -162,6 +162,9 @@ See [testing.md](./testing.md).
|
|||||||
`./platform/polyfills.*.ts` adds polyfills to the environment. Currently, this includes:
|
`./platform/polyfills.*.ts` adds polyfills to the environment. Currently, this includes:
|
||||||
|
|
||||||
- TextEncoder / TextDecoder
|
- TextEncoder / TextDecoder
|
||||||
|
- react-native-url-polyfill
|
||||||
|
- Array#findLast (on web)
|
||||||
|
- atob (on native)
|
||||||
|
|
||||||
### Sentry sourcemaps
|
### Sentry sourcemaps
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import 'react-native-url-polyfill/auto'
|
|
||||||
import '#/logger/sentry/setup'
|
import '#/logger/sentry/setup'
|
||||||
import '#/logger/bitdrift/setup'
|
import '#/logger/bitdrift/setup'
|
||||||
import '#/view/icons'
|
import '#/view/icons'
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'react-native-url-polyfill/auto'
|
||||||
import 'fast-text-encoding'
|
import 'fast-text-encoding'
|
||||||
export {}
|
export {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user