xref: /expo/template-files/ios/ExpoKit.podspec (revision 876ce2cc)
1
2# generated from template-files/ios/ExpoKit.podspec
3
4Pod::Spec.new do |s|
5  s.name = "ExpoKit"
6  s.version = "${IOS_EXPONENT_CLIENT_VERSION}"
7  s.summary = 'ExpoKit'
8  s.description = 'ExpoKit allows native projects to integrate with the Expo SDK.'
9  s.homepage = 'http://docs.expo.io'
10  s.license = 'MIT'
11  s.author = "650 Industries, Inc."
12  s.requires_arc = true
13  s.platform = :ios, "12.0"
14  s.default_subspec = "Core"
15  s.source = { :git => "http://github.com/expo/expo.git" }
16  s.xcconfig = {
17    'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++14',
18    'SYSTEM_HEADER_SEARCH_PATHS' => "\"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/Folly\" \"$(PODS_ROOT)/Headers/Private/React-Core\"",
19    'OTHER_CPLUSPLUSFLAGS' => [
20      "$(OTHER_CFLAGS)",
21      "-DFOLLY_NO_CONFIG",
22      "-DFOLLY_MOBILE=1",
23      "-DFOLLY_USE_LIBCPP=1"
24    ]
25  }
26
27  s.subspec "Core" do |ss|
28    ss.source_files = "Exponent/**/*.{h,m,mm,cpp}", "../template-files/keys.json"
29    ss.preserve_paths = "Exponent/**/*.{h,m,mm,cpp}"
30    ss.exclude_files = "Exponent/Supporting/**", "Exponent/Versioned/Optional/**/*.{h,m}"
31
32${IOS_EXPOKIT_DEPS}
33    ss.dependency 'React-Core' # explicit dependency required for CocoaPods >= 1.5.0
34    ss.dependency 'ReactCommon' # needed for react-native-reanimated, see https://github.com/expo/expo/pull/11096#how
35
36    # Universal modules required by ExpoKit so the code compiles
37    ss.dependency 'ExpoModulesCore'
38  end
39
40  s.subspec "FaceDetector" do |ss|
41    ss.dependency "EXFaceDetector"
42  end
43end
44