Merge pull request #1644 from ceyhuno/fix-spec-facedetector

Fix CocoaPods spec for FaceDetector
This commit is contained in:
João Guilherme Fidelis 2018-06-18 13:51:42 -03:00 committed by GitHub
commit 5f9a3e7127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 11 deletions

View File

@ -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

View File

@ -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"