mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 01:38:18 +00:00
Merge pull request #1644 from ceyhuno/fix-spec-facedetector
Fix CocoaPods spec for FaceDetector
This commit is contained in:
commit
5f9a3e7127
16
README.md
16
README.md
@ -129,7 +129,8 @@ And add something like this to the `scripts` section in your `package.json`:
|
||||
GMV (Google Mobile Vision) is used for Face detection by the iOS RNCamera. You have to link the google frameworks to your project to successfully compile the RNCamera project.
|
||||
|
||||
###### CocoaPods Path
|
||||
1. Modify the dependency towards `react-native-camera` in your
|
||||
|
||||
Modify the dependency towards `react-native-camera` in your
|
||||
`Podfile`, from
|
||||
|
||||
```
|
||||
@ -139,18 +140,11 @@ GMV (Google Mobile Vision) is used for Face detection by the iOS RNCamera. You h
|
||||
to
|
||||
|
||||
```
|
||||
pod 'react-native-camera', subspecs: ['RCT', 'RN', 'FaceDetector'], path: '../node_modules/react-native-camera'
|
||||
pod 'react-native-camera', path: '../node_modules/react-native-camera', subspecs: [
|
||||
'FaceDetector'
|
||||
]
|
||||
```
|
||||
|
||||
2. Add the following to your `Podfile`:
|
||||
```
|
||||
pod 'GoogleMobileVision/Detector', '~> 1.1.0'
|
||||
pod 'GoogleMobileVision/MVDataOutput', '~> 1.1.0'
|
||||
pod 'GoogleMobileVision/FaceDetector', '~> 1.1.0'
|
||||
```
|
||||
|
||||
3. In XCode, On your target -> Build Phases -> Link Binary with Libraries -> add AddressBook.framework
|
||||
|
||||
###### Non-CocoaPods Path
|
||||
1. Download:
|
||||
Google Symbol Utilities: https://www.gstatic.com/cpdc/dbffca986f6337f8-GoogleSymbolUtilities-1.1.1.tar.gz
|
||||
|
@ -24,7 +24,15 @@ Pod::Spec.new do |s|
|
||||
end
|
||||
|
||||
s.subspec "FaceDetector" do |ss|
|
||||
ss.dependency 'react-native-camera/RN'
|
||||
ss.dependency 'react-native-camera/RCT'
|
||||
|
||||
ss.dependency 'GoogleMobileVision/Detector', '~> 1.1.0'
|
||||
ss.dependency 'GoogleMobileVision/MVDataOutput', '~> 1.1.0'
|
||||
ss.dependency 'GoogleMobileVision/FaceDetector', '~> 1.1.0'
|
||||
|
||||
ss.source_files = "ios/FaceDetector/**/*.{h,m}"
|
||||
s.static_framework = true
|
||||
end
|
||||
|
||||
s.default_subspecs = "RN", "RCT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user