xref: /expo/template-files/ios/ExpoKit.podspec (revision 3ddc0b47)
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, "11.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 'UMCore'
38    ss.dependency 'UMReactNativeAdapter'
39    ss.dependency 'UMSensorsInterface'
40    ss.dependency 'UMFileSystemInterface'
41    ss.dependency 'UMPermissionsInterface'
42  end
43
44  s.subspec "Payments" do |ss|
45    ss.dependency "ExpoKit/Core"
46    ss.dependency 'Stripe', '~> 10.1.0'
47    ss.source_files = 'Exponent/Versioned/Optional/Payments/*.{h,m}'
48  end
49
50  s.subspec "FaceDetector" do |ss|
51    ss.dependency "EXFaceDetector"
52  end
53end
54