xref: /expo/template-files/ios/ExpoKit.podspec (revision dd01cd4e)
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, "10.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' # explicit dependency required for CocoaPods >= 1.5.0
34
35    # Universal modules required by ExpoKit so the code compiles
36    ss.dependency 'UMCore'
37    ss.dependency 'UMReactNativeAdapter'
38    ss.dependency 'UMSensorsInterface'
39    ss.dependency 'UMFileSystemInterface'
40    ss.dependency 'UMPermissionsInterface'
41    ss.dependency 'UMCameraInterface'
42    ss.dependency 'UMConstantsInterface'
43  end
44
45  s.subspec "Payments" do |ss|
46    ss.dependency "ExpoKit/Core"
47    ss.dependency 'Stripe', '~> 10.1.0'
48    ss.source_files = 'Exponent/Versioned/Optional/Payments/*.{h,m}'
49  end
50
51  s.subspec "FaceDetector" do |ss|
52    ss.dependency "EXFaceDetector"
53  end
54end
55