Skip to content

Commit da65703

Browse files
async copy jobs
1 parent 79fdbc1 commit da65703

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

Package/gulpfile.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,40 +75,40 @@ const buildAndroid = async () => {
7575
exec(`./gradlew babylonjs_react-native:assembleRelease --stacktrace --info`, '../Apps/Playground/android');
7676
};
7777

78-
const copyCommonFiles = () => {
78+
const copyCommonFiles = async () => {
7979
return gulp.src('../Modules/@babylonjs/react-native/README.md')
8080
.pipe(gulp.src('../NOTICE.html'))
8181
.pipe(gulp.src(`../Modules/@babylonjs/react-native/react-native-babylon.podspec`))
8282
.pipe(gulp.src(`../Modules/@babylonjs/react-native/postinstall.js`))
8383
.pipe(gulp.dest('Assembled'));
8484
};
8585

86-
const copyAndroidARCoreFiles = () => {
86+
const copyAndroidARCoreFiles = async () => {
8787
return gulp.src('../Modules/@babylonjs/react-native/shared/BabylonNative/Repo/Dependencies/xr/Source/ARCore/Include/*')
8888
.pipe(gulp.dest(`Assembled/android/include`));
8989
};
9090

91-
const copyiOSARKitFiles = () => {
91+
const copyiOSARKitFiles = async () => {
9292
return gulp.src('../Modules/@babylonjs/react-native/shared/BabylonNative/Repo/Dependencies/xr/Source/ARKit/Include/*')
9393
.pipe(gulp.dest(`Assembled/ios/include`));
9494
};
9595

96-
const copySharedFiles = () => {
96+
const copySharedFiles = async () => {
9797
return gulp.src('../Modules/@babylonjs/react-native/shared/**')
9898
.pipe(gulp.dest('Assembled/shared'));
9999
};
100100

101-
const copyIOSFiles = () => {
101+
const copyIOSFiles = async () => {
102102
return gulp.src('../Modules/@babylonjs/react-native/ios/**')
103103
.pipe(gulp.dest(`Assembled/ios`));
104104
};
105105

106-
const copyAndroidFiles = () => {
106+
const copyAndroidFiles = async () => {
107107
return gulp.src('../Modules/@babylonjs/react-native/android/**')
108108
.pipe(gulp.dest(`Assembled/android`));
109109
};
110110

111-
const copyWindowsFiles = () => {
111+
const copyWindowsFiles = async () => {
112112
return gulp.src('../Modules/@babylonjs/react-native/windows/**')
113113
.pipe(gulp.dest(`Assembled/windows`));
114114
};

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,10 @@ Step 1 for all development environments and targets is to clone the repo. Use a
5353
git clone https://github.com/BabylonJS/BabylonReactNative
5454
```
5555

56-
Prepare BabylonNative sources:
56+
Run setup_dev.js script :
5757

5858
```
59-
cd Package
60-
npm install
61-
npx gulp buildBabylonNativeSourceTree
62-
```
63-
64-
Install dependencies for the Test App
65-
66-
```
67-
cd Apps/Playground
68-
npm ci
59+
node setup_dev.js
6960
```
7061

7162
This will also automatically do the following to prepare your repo for development:
@@ -74,15 +65,17 @@ This will also automatically do the following to prepare your repo for developme
7465
- [macOS only] Run CMake to generate the iOS Xcode project for Babylon React Native
7566
- [macOS only] Run `pod install` to install cocoa pod dependencies
7667

77-
Finally run ReactNative Test App using:
68+
Finally run Playground Test App using:
7869

7970
```
71+
cd Apps/Playground
8072
npm run ios
8173
```
8274

8375
or
8476

8577
```
78+
cd Apps/Playground
8679
npm run android
8780
```
8881

0 commit comments

Comments
 (0)