Skip to content

Commit f5aa4f4

Browse files
author
C. M. Barth
authored
Include arkit context header in package (#262)
* include arkit context header in package * add missing semicolons
1 parent a8ca60b commit f5aa4f4

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

Package/gulpfile.js

+18-7
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,21 @@ const copySharedFiles = () => {
231231
.pipe(gulp.dest('Assembled/shared'));
232232
};
233233

234-
const copyIOSFiles = () => {
235-
return gulp.src('../Apps/Playground/node_modules/@babylonjs/react-native/ios/*.h')
236-
.pipe(gulp.src('../Apps/Playground/node_modules/@babylonjs/react-native/ios/*.mm'))
237-
// This xcodeproj is garbage that we don't need in the package, but `pod install` ignores the package if it doesn't contain at least one xcodeproj. 🤷🏼‍♂️
238-
.pipe(gulp.src('iOS/Build/ReactNativeBabylon.xcodeproj**/**/*'))
239-
.pipe(gulp.dest('Assembled/ios'));
234+
const copyIOSFiles = async () => {
235+
await new Promise(resolve => {
236+
gulp.src('../Apps/Playground/node_modules/@babylonjs/react-native/ios/*.h')
237+
.pipe(gulp.src('../Apps/Playground/node_modules/@babylonjs/react-native/ios/*.mm'))
238+
// This xcodeproj is garbage that we don't need in the package, but `pod install` ignores the package if it doesn't contain at least one xcodeproj. 🤷🏼‍♂️
239+
.pipe(gulp.src('iOS/Build/ReactNativeBabylon.xcodeproj**/**/*'))
240+
.pipe(gulp.dest('Assembled/ios'))
241+
.on('end', resolve);
242+
});
243+
244+
await new Promise(resolve => {
245+
gulp.src('../Apps/Playground/node_modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/xr/Source/ARKit/Include/*')
246+
.pipe(gulp.dest('Assembled/ios/include'))
247+
.on('end', resolve);
248+
});
240249
};
241250

242251
const createIOSUniversalLibs = async () => {
@@ -258,7 +267,7 @@ const copyAndroidFiles = async () => {
258267
gulp.src('../Apps/Playground/node_modules/@babylonjs/react-native/submodules/BabylonNative/Dependencies/xr/Source/ARCore/Include/*')
259268
.pipe(gulp.dest('Assembled/android/include'))
260269
.on('end', resolve);
261-
})
270+
});
262271

263272
await new Promise(resolve => {
264273
gulp.src('../Apps/Playground/node_modules/@babylonjs/react-native/android/build/intermediates/library_and_local_jars_jni/release/jni/**/*')
@@ -444,6 +453,8 @@ const validate = async () => {
444453
'Assembled/ios/BabylonNativeInterop.h',
445454
'Assembled/ios/BabylonNativeInterop.mm',
446455
'Assembled/ios/EngineViewManager.mm',
456+
'Assembled/ios/include',
457+
'Assembled/ios/include/IXrContextARKit.h',
447458
'Assembled/ios/libs',
448459
'Assembled/ios/libs/libastc-codec.a',
449460
'Assembled/ios/libs/libastc.a',

0 commit comments

Comments
 (0)