Skip to content

Commit af5d41d

Browse files
authored
Update Babylon.js and Babylon Native to the latest (#67)
* Update PackageTest for @babylon/react-native base-64 dependency Update proguard-rules.pro for Hermes Update README.md to reflect Hermes support * Update Babylon.js and Babylon Native to the latest
1 parent 6ba5397 commit af5d41d

File tree

9 files changed

+36
-21
lines changed

9 files changed

+36
-21
lines changed

Apps/PackageTest/android/app/proguard-rules.pro

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
# http://developer.android.com/guide/developing/tools/proguard.html
99

1010
# Add any project specific keep options here:
11+
-keep class com.facebook.hermes.unicode.** { *; }
12+
-keep class com.facebook.jni.** { *; }

Apps/PackageTest/package-lock.json

+12-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.30",
13+
"@babylonjs/core": "4.2.0-alpha.31",
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/android/app/proguard-rules.pro

+2
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
# http://developer.android.com/guide/developing/tools/proguard.html
99

1010
# Add any project specific keep options here:
11+
-keep class com.facebook.hermes.unicode.** { *; }
12+
-keep class com.facebook.jni.** { *; }

Apps/Playground/package-lock.json

+11-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.30",
14-
"@babylonjs/loaders": "4.2.0-alpha.30",
13+
"@babylonjs/core": "4.2.0-alpha.31",
14+
"@babylonjs/loaders": "4.2.0-alpha.31",
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/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"base-64": "^0.1.0"
2828
},
2929
"peerDependencies": {
30-
"@babylonjs/core": "^4.2.0-alpha.30",
30+
"@babylonjs/core": "^4.2.0-alpha.31",
3131
"react": "^16.13.1",
3232
"react-native": "^0.63.1",
3333
"react-native-permissions": "^2.1.4"

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ This project provides Babylon Native integration into React Native.
1010
Babylon React Native is in the early phase of its development, and has the following limitations:
1111

1212
1. Android and iOS support only - support for Windows is planned, but the timeline is currently unknown.
13-
1. JavaScriptCore (JSC) only - the published @babylonjs/react-native package is configured specifically for JSC, though it is possible to rebuild it and target other JavaScript engines supported by React Native. In the future, the published package will directly support all JavaScript engines that can be used with React Native.
13+
1. Touch input only - mouse, keyboard, and controllers are not yet supported.
14+
1. Single view only - multiple views are not yet supported (only a single view can be displayed).
15+
16+
It is also worth noting that Babylon React Native relies heavily on newer React Native constructs including JSI to get the performance characteristics required for real time rendering. JSI allows for direct synchronous communication between native code and JavaScript code, but is incompatible with "remote debugging." If you need to debug your JavaScript code that uses Babylon React Native, you should enable Hermes and use "direct debugging" (e.g. chrome://inspect or edge://inspect). See the [React Native documentation](https://reactnative.dev/docs/hermes) for more info.
1417

1518
## Usage
1619

0 commit comments

Comments
 (0)