You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throw`Error: BabylonReactNative Playground development requires npm version 6.13.*, Your current npm version is ${version}. Run npm install -g [email protected] to update your npm version.`;
Babylon React Native makes extensive use of submodules to supply its dependencies, so it's also necessary to set up the submodules.
39
-
40
-
```
41
-
cd BabylonReactNative
42
-
git submodule update --init --recursive
43
-
```
44
-
45
-
The Playground sample/test app is a standard React Native app, and as such also makes extensive use of NPM packages to supply its dependencies, so it's also necessary to install these packages.
38
+
The Playground sample/test app is a standard React Native app, and as such makes extensive use of NPM packages to supply its dependencies, so it's also necessary to install these packages.
46
39
47
40
```
48
41
cd Apps/Playground
49
42
npm install
50
43
```
51
44
52
-
For iOS, CocoaPods are also used, and these must be installed.
45
+
This will also automatically do the following to prepare your repo for development:
53
46
54
-
```
55
-
cd Apps/Playground/ios
56
-
pod install --repo-update
57
-
```
47
+
- Update git submodules to fetch Babylon Native and its dependencies
48
+
-[MacOS only] Run CMake to generate the iOS XCode project for Babylon React Native
49
+
-[MacOS only] Run `pod install` to install cocoa pod depdendencies
50
+
51
+
After merging upstream changes in the future, you will need to either run `npm install` again, or run individual commands for the above operations (e.g. `git submodule update --init --submodule` / `npm run iosCMake` / `pod install`).
58
52
59
53
### **Configuring a Mac Dev Environment**
60
54
@@ -128,13 +122,9 @@ After having run the above commands, you can also open `Apps/Playground/android`
128
122
129
123
#### iOS
130
124
131
-
iOS can only be built on a Mac. Additionally, `CMake` must manually be run to generate the XCode project that the [Playground XCode workspace](Apps/Playground/ios/Playground.xcworkspace/contents.xcworkspacedata) includes.
0 commit comments