Skip to content

Commit b44161f

Browse files
committed
Add pod for iOS
1 parent 4b01224 commit b44161f

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

ios/FaceRecognitionReactNative.podspec renamed to FaceRecognitionReactNative.podspec

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ Pod::Spec.new do |s|
77
s.description = package['description']
88
s.homepage = package['homepage']
99
s.license = package['license']
10-
# s.license = { :type => "MIT", :file => "FILE_LICENSE" }
1110
s.author = package['author']
1211
s.platform = :ios, "9.0"
1312
s.source = { :git => "git://github.com/moonjava2005/face-recognition-react-native.git", :tag => s.version }
14-
s.source_files = "FaceRecognitionReactNative/**/*.{h,m}"
13+
s.source_files = "ios/**/*.{h,m}"
1514
s.requires_arc = true
16-
17-
1815
s.dependency 'React'
16+
s.dependency 'Firebase/Core'
1917
s.dependency 'Firebase/MLVision'
2018
s.dependency 'Firebase/MLVisionFaceModel'
2119

ios/FaceRecognitionReactNative.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#import "FaceRecognitionReactNative.h"
33
#import <UIKit/UIKit.h>
4-
@import Firebase;
4+
#import <Firebase/Firebase.h>
55

66
#define ERROR_CANNOT_PROCESS_IMAGE_KEY @"E_CANNOT_PROCESS_IMAGE"
77
#define ERROR_CANNOT_PROCESS_IMAGE_MSG @"Cannot read this image"

ios/FaceRecognitionReactNative.xcodeproj/project.pbxproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,9 @@
214214
);
215215
HEADER_SEARCH_PATHS = (
216216
"$(inherited)",
217-
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
218-
"$(SRCROOT)/../../../React/**",
219217
"$(SRCROOT)/../../react-native/React/**",
220218
"${SRCROOT}/../../../ios/Firebase/**",
221219
"${SRCROOT}/../../../ios/Pods/Headers/Public/**",
222-
"${SRCROOT}/../../ios/Pods/**",
223220
);
224221
LIBRARY_SEARCH_PATHS = "$(inherited)";
225222
OTHER_LDFLAGS = (
@@ -245,12 +242,9 @@
245242
);
246243
HEADER_SEARCH_PATHS = (
247244
"$(inherited)",
248-
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
249-
"$(SRCROOT)/../../../React/**",
250245
"$(SRCROOT)/../../react-native/React/**",
251246
"${SRCROOT}/../../../ios/Firebase/**",
252247
"${SRCROOT}/../../../ios/Pods/Headers/Public/**",
253-
"${SRCROOT}/../../ios/Pods/**",
254248
);
255249
LIBRARY_SEARCH_PATHS = "$(inherited)";
256250
OTHER_LDFLAGS = (

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "face-recognition-react-native",
3-
"version": "0.0.1",
3+
"version": "0.0.4",
44
"description": "Detect faces from image",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)