Skip to content

Commit c459315

Browse files
authored
Update Babylon Native and Babylon.js to the latest (#75)
- Updating Babylon Native to the latest to pull in the iOS XR improvements (less swimmy). - Updating Babylon.js to the latest (4.2.0-beta.1) just to stay up to date and make sure we don't have any regressions. - Updating the README.md to remove the old note about needing C++ tooling (now all (most) of the C++ is precompiled). - Fixing a (potential?) bug in metro.config.js (I shared our solution with the community and someone found a bug in it that didn't repro for me, but their solution seems more correct according to docs and also works for us, so I changed it to be sure).
1 parent 72ab628 commit c459315

File tree

7 files changed

+30
-24
lines changed

7 files changed

+30
-24
lines changed

Apps/PackageTest/package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Apps/PackageTest/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
1111
},
1212
"dependencies": {
13-
"@babylonjs/core": "4.2.0-alpha.33",
13+
"@babylonjs/core": "^4.2.0-beta.1",
1414
"@babylonjs/react-native": "file:../../Package/Assembled/babylonjs-react-native-0.0.1.tgz",
1515
"react": "16.13.1",
1616
"react-native": "0.63.1",

Apps/Playground/metro.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function getModuleMappings() {
2626
if (!path.isAbsolute(linkPath)) {
2727
linkPath = path.resolve(directory, linkPath);
2828
}
29-
const linkStat = fs.lstatSync(linkPath);
29+
const linkStat = fs.statSync(linkPath);
3030
if (linkStat.isDirectory()) {
3131
const packagePath = path.resolve(linkPath, "package.json");
3232
if (fs.existsSync(packagePath)) {

Apps/Playground/package-lock.json

+21-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Apps/Playground/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
1111
},
1212
"dependencies": {
13-
"@babylonjs/core": "4.2.0-alpha.33",
14-
"@babylonjs/loaders": "4.2.0-alpha.33",
13+
"@babylonjs/core": "^4.2.0-beta.1",
14+
"@babylonjs/loaders": "^4.2.0-beta.1",
1515
"@babylonjs/react-native": "file:../../Modules/@babylonjs/react-native",
1616
"@react-native-community/slider": "^2.0.9",
1717
"logkitty": "^0.7.1",

Modules/@babylonjs/react-native/README.md

-4
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ This package has several **peer dependencies**. If these dependencies are unmet,
1010

1111
The `react-native-permissions` dependency is required for XR capabilities of Babylon.js (to request camera permissions automatically). Be sure to follow the `react-native-permissions` [instructions](https://github.com/react-native-community/react-native-permissions#setup) to update your `Podfile` and `Info.plist` (iOS) and/or `AndroidManifest.xml` (Android).
1212

13-
### C++ Build Requirements
14-
15-
This package includes C++ source, so platform specific tooling to build C++ code must be installed.
16-
1713
### Android Configuration
1814

1915
The minimum Android SDK version is 18. This must be set as `minSdkVersion` in the consuming project's `build.gradle` file.

0 commit comments

Comments
 (0)