mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 01:38:18 +00:00
Update instructions for getting project without FaceDetector
There were two problems with shell script written in instructions: 1. No checking if `FaceDetector` dir exists so removing something that doesn't exist would throw an error 2. there is co `RCTCamera` anymore so I renamed it to `RNCamera`
This commit is contained in:
parent
077b0091ed
commit
307da987c7
@ -98,8 +98,11 @@ If you do not need it and do not wnat to install the GMV frameworks, open your a
|
||||
If you want to make this automatic, you can add a postinstall script to your app `package.json`. Inside the `postinstall_project` there is a xcode project ready with the folder removed (we opened xcode, removed the folder from the project and copied the resulting project file). The post install script is:
|
||||
```
|
||||
#!/bin/bash
|
||||
rm -rf node_modules/react-native-camera/ios/FaceDetector
|
||||
cp node_modules/react-native-camera/postinstall_project/projectWithoutFaceDetection.pbxproj node_modules/react-native-camera/ios/RCTCamera.xcodeproj/project.pbxproj
|
||||
echo "Creating project without FaceDetector"
|
||||
if [ -e node_modules/react-native-camera/ios/FaceDetector ] ; then
|
||||
rm -rf node_modules/react-native-camera/ios/FaceDetector
|
||||
fi
|
||||
cp node_modules/react-native-camera/postinstall_project/projectWithoutFaceDetection.pbxproj node_modules/react-native-camera/ios/RNCamera.xcodeproj/project.pbxproj
|
||||
```
|
||||
|
||||
And add something like this to the `scripts` section in your `package.json`:
|
||||
|
Loading…
x
Reference in New Issue
Block a user