-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Babylon Native's XMLHttpRequest (#94)
React Native's XMLHttpRequest uses too much memory and is too slow for use with Babylon.js. This change brings in Babylon Native's XMLHttpRequest, but does not replace the globally scoped one provided by React Native. Instead, it exposes it from the _native object, which WebRequest will specifically look for in @babylonjs/core@4.2.0-beta.12 or newer. - Update Babylon.js to 4.2.0-beta.12. - Update Babylon Native to latest (for corresponding XMLHttpRequest related changes). - Add XMLHttpRequest to the Android and iOS build. - Initialize XMLHttpRequest in the Android and iOS interop layers. - Add XMLHttpRequest related libs to the pod file and package build validation. Other unrelated changes included in this PR: - Updating some GitHub build tasks to the latest to see if it resolves some confusing build warnings. - Update iOS test app project files to use iOS 12 to match what the Babylon React Native podspec requires (otherwise I get errors when building Release in XCode 12). - Revert to the old workaround for the promise continuation issue (it turns out the new approach doesn't work on iOS in Release builds). - Add @react-native-community/cli as a dev dependency to the test apps as it seems we can use it to convert a Hermes profile to CDT profiler format and view it in Chrome (still trying to get this to work).
- Loading branch information
Showing
19 changed files
with
725 additions
and
39 deletions.
There are no files selected for viewing
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
Oops, something went wrong.