Skip to content

Commit c6552e8

Browse files
author
Chris Barth
committed
include arkit context header in package
1 parent a8ca60b commit c6552e8

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

Package/gulpfile.js

+17-6
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 () => {
@@ -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)