Skip to content

Commit

Permalink
IXrContextARCore.h copy
Browse files Browse the repository at this point in the history
  • Loading branch information
CedricGuillemet committed Oct 17, 2024
1 parent 4213ffc commit 4882c2b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Package/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,14 @@ const copyIOSFiles = async () => {
.pipe(gulp.dest(`${assemblediOSAndroidDir}/ios/include`))
.on('end', resolve);
});

// this file is part of Android but copied from iOS cmake fetching because easier than finding gradle temp build directory
await new Promise(resolve => {
gulp.src('../Package/iOS/Build/_deps/babylonnative-src/Dependencies/xr/Source/ARCore/Include/*')
.pipe(gulp.dest(`${assemblediOSAndroidDir}/android/include`))
.on('end', resolve);
});

};

const createIOSUniversalLibs = async () => {
Expand Down Expand Up @@ -328,12 +336,6 @@ const copyAndroidFiles = async () => {
.on('end', resolve);
});

await new Promise(resolve => {
gulp.src('../Package/Android/Build/_deps/babylonnative-src/Dependencies/xr/Source/ARCore/Include/*')
.pipe(gulp.dest(`${assemblediOSAndroidDir}/android/include`))
.on('end', resolve);
});

await new Promise(resolve => {
const jnidir = `${playgroundDirectory}/node_modules/@babylonjs/react-native-iosandroid/android/build/intermediates/library_and_local_jars_jni/release/jni/**`;
gulp.src(`${jnidir}/libBabylonNative.so`)
Expand Down Expand Up @@ -555,8 +557,6 @@ const validateAssembledAndroid = async () => {
let expectedandroid = [
`${assemblediOSAndroidDir}/android`,
`${assemblediOSAndroidDir}/android/build.gradle`,
`${assemblediOSAndroidDir}/android/include`,
`${assemblediOSAndroidDir}/android/include/IXrContextARCore.h`,
`${assemblediOSAndroidDir}/android/src`,
`${assemblediOSAndroidDir}/android/src/main`,
`${assemblediOSAndroidDir}/android/src/main/AndroidManifest.xml`,
Expand Down Expand Up @@ -597,6 +597,8 @@ const validateAssembledAndroid = async () => {

const validateAssemblediOS = async () => {
let expectedios = [
`${assemblediOSAndroidDir}/android/include`,
`${assemblediOSAndroidDir}/android/include/IXrContextARCore.h`,
`${assemblediOSAndroidDir}/ios`,
`${assemblediOSAndroidDir}/ios/BabylonModule.mm`,
`${assemblediOSAndroidDir}/ios/BabylonNativeInterop.h`,
Expand Down

0 comments on commit 4882c2b

Please sign in to comment.