mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-23 17:28:08 +00:00
Merge pull request #1240 from michalpokojski/master
Update instructions for getting project without FaceDetector
This commit is contained in:
commit
8ea53634c7
@ -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