Skip to content

Commit c622d12

Browse files
ios post install
1 parent eb991e4 commit c622d12

File tree

3 files changed

+58
-57
lines changed

3 files changed

+58
-57
lines changed

Apps/Playground/ios/BRNPlayground.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 54 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,55 @@
11
{
2-
"name": "@babylonjs/react-native",
3-
"title": "React Native Babylon",
4-
"version": "0.0.1",
5-
"description": "Babylon Native integration into React Native",
6-
"main": "index.ts",
7-
"scripts": {
8-
"test": "echo \"Error: no test specified\" && exit 1"
9-
},
10-
"repository": {
11-
"type": "git",
12-
"url": "git+https://github.com/babylonjs/BabylonReactNative.git",
13-
"baseUrl": "https://github.com/babylonjs/BabylonReactNative"
14-
},
15-
"keywords": [
16-
"react-native"
17-
],
18-
"author": {
19-
"name": "Your Name",
20-
"email": "[email protected]"
21-
},
22-
"homepage": "https://github.com/BabylonJS/BabylonReactNative#readme",
23-
"license": "MIT",
24-
"licenseFilename": "LICENSE",
25-
"readmeFilename": "README.md",
26-
"dependencies": {
27-
"base-64": "^0.1.0",
28-
"semver": "^7.3.2"
29-
},
30-
"peerDependencies": {
31-
"@babylonjs/core": ">=5.53.1",
32-
"react": "*",
33-
"react-native": "*",
34-
"react-native-permissions": ">=3.0.0"
35-
},
36-
"devDependencies": {
37-
"@babel/core": "^7.8.4",
38-
"@babel/runtime": "^7.8.4",
39-
"@babylonjs/core": ">=5.53.1",
40-
"@rnw-scripts/eslint-config": "0.1.6",
41-
"@rnw-scripts/ts-config": "0.1.0",
42-
"@types/base-64": "^0.1.3",
43-
"@types/jest": "^25.2.1",
44-
"react-native": "0.73.5",
45-
"@types/react": "^18.3.0",
46-
"react-native-permissions": "^4.1.5",
47-
"@types/react-test-renderer": "^16.9.2",
48-
"@types/semver": "^7.3.4",
49-
"eslint": "7.12.0",
50-
"just-scripts": "^0.44.7",
51-
"prettier": "1.19.1",
52-
"typescript": "^4.3.5"
53-
}
54-
}
2+
"name": "@babylonjs/react-native",
3+
"title": "React Native Babylon",
4+
"version": "0.0.1",
5+
"description": "Babylon Native integration into React Native",
6+
"main": "index.js",
7+
"scripts": {
8+
"test": "echo \"Error: no test specified\" && exit 1",
9+
"postinstall": "node ./postinstall.js"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/babylonjs/BabylonReactNative.git",
14+
"baseUrl": "https://github.com/babylonjs/BabylonReactNative"
15+
},
16+
"keywords": [
17+
"react-native"
18+
],
19+
"author": {
20+
"name": "Your Name",
21+
"email": "[email protected]"
22+
},
23+
"homepage": "https://github.com/BabylonJS/BabylonReactNative#readme",
24+
"license": "MIT",
25+
"licenseFilename": "LICENSE",
26+
"readmeFilename": "README.md",
27+
"dependencies": {
28+
"base-64": "^0.1.0",
29+
"semver": "^7.3.2"
30+
},
31+
"peerDependencies": {
32+
"@babylonjs/core": ">=5.53.1",
33+
"react": "*",
34+
"react-native": "*",
35+
"react-native-permissions": ">=3.0.0"
36+
},
37+
"devDependencies": {
38+
"@babel/core": "^7.8.4",
39+
"@babel/runtime": "^7.8.4",
40+
"@babylonjs/core": ">=5.53.1",
41+
"@rnw-scripts/eslint-config": "0.1.6",
42+
"@rnw-scripts/ts-config": "0.1.0",
43+
"@types/base-64": "^0.1.3",
44+
"@types/jest": "^25.2.1",
45+
"react-native": "0.73.5",
46+
"@types/react": "^18.3.0",
47+
"react-native-permissions": "^4.1.5",
48+
"@types/react-test-renderer": "^16.9.2",
49+
"@types/semver": "^7.3.4",
50+
"eslint": "7.12.0",
51+
"just-scripts": "^0.44.7",
52+
"prettier": "1.19.1",
53+
"typescript": "^4.3.5"
54+
}
55+
}

Package/gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ const makeXCodeProj = async () => {
6464
};
6565

6666
const buildIphoneOS = async () => {
67-
exec('xcodebuild -sdk iphoneos -configuration Release -project ReactNativeBabylon.xcodeproj -scheme BabylonNative build CODE_SIGNING_ALLOWED=NO', '../Modules/@babylonjs/Build/iOS');
67+
exec('xcodebuild -sdk iphoneos -configuration Release -project BRNPlayground.xcodeproj -scheme BabylonNative build CODE_SIGNING_ALLOWED=NO', '../Apps/Playground/ios');
6868
};
6969

7070
const buildIphoneSimulator = async () => {
71-
exec('xcodebuild -sdk iphonesimulator -arch x86_64 -configuration Release -project ReactNativeBabylon.xcodeproj -scheme BabylonNative build CODE_SIGNING_ALLOWED=NO', '../Modules/@babylonjs/Build/iOS');
71+
exec('xcodebuild -sdk iphonesimulator -arch x86_64 -configuration Release -project BRNPlayground.xcodeproj -scheme BabylonNative build CODE_SIGNING_ALLOWED=NO', '../Apps/Playground/ios');
7272
};
7373

7474
const buildAndroid = async () => {
@@ -389,7 +389,7 @@ const buildBabylonNativeSourceTree = async () => {
389389

390390
const copyFiles = gulp.parallel(copyCommonFiles, copySharedFiles, copyIOSFiles, copyAndroidFiles, copyWindowsFiles);
391391
const buildAssembled = gulp.series(buildBabylonNativeSourceTree, copyFiles, buildTypeScript, validateAssembled);
392-
const buildIOS = gulp.series(makeXCodeProj, buildIphoneOS, buildIphoneSimulator);
392+
const buildIOS = gulp.series(makeXCodeProj, buildIphoneOS, buildIphoneSimulator); // should not be used anymore
393393

394394
exports.buildAssembled = buildAssembled;
395395
exports.buildTypeScript = buildTypeScript;

0 commit comments

Comments
 (0)