xref: /expo/template-files/ios/ExpoKit.podspec (revision c88b85cf)
1bef625a4SBen Roth
2335453f7SBen Roth# generated from template-files/ios/ExpoKit.podspec
3335453f7SBen Roth
4bef625a4SBen RothPod::Spec.new do |s|
5bef625a4SBen Roth  s.name = "ExpoKit"
6bef625a4SBen Roth  s.version = "${IOS_EXPONENT_CLIENT_VERSION}"
7bef625a4SBen Roth  s.summary = 'ExpoKit'
8bef625a4SBen Roth  s.description = 'ExpoKit allows native projects to integrate with the Expo SDK.'
9bef625a4SBen Roth  s.homepage = 'http://docs.expo.io'
1003408c75SJames Ide  s.license = 'MIT'
11bef625a4SBen Roth  s.author = "650 Industries, Inc."
12bef625a4SBen Roth  s.requires_arc = true
13*c88b85cfSTomasz Sapeta  s.platform = :ios, "13.0"
14c65a9e6cSTomasz Sapeta  s.swift_version  = '5.4'
15335453f7SBen Roth  s.default_subspec = "Core"
16335453f7SBen Roth  s.source = { :git => "http://github.com/expo/expo.git" }
179d291f4fSStanisław Chmiela  s.xcconfig = {
189d291f4fSStanisław Chmiela    'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++14',
198c06a28fSKudo Chien    'SYSTEM_HEADER_SEARCH_PATHS' => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/Headers/Private/React-Core\"",
209d291f4fSStanisław Chmiela    'OTHER_CPLUSPLUSFLAGS' => [
219d291f4fSStanisław Chmiela      "$(OTHER_CFLAGS)",
229d291f4fSStanisław Chmiela      "-DFOLLY_NO_CONFIG",
239d291f4fSStanisław Chmiela      "-DFOLLY_MOBILE=1",
249d291f4fSStanisław Chmiela      "-DFOLLY_USE_LIBCPP=1"
259d291f4fSStanisław Chmiela    ]
269d291f4fSStanisław Chmiela  }
27bef625a4SBen Roth
28c65a9e6cSTomasz Sapeta  s.pod_target_xcconfig = {
29c65a9e6cSTomasz Sapeta    'USE_HEADERMAP' => 'YES',
30c65a9e6cSTomasz Sapeta    'DEFINES_MODULE' => 'YES',
31c65a9e6cSTomasz Sapeta  }
32c65a9e6cSTomasz Sapeta
33335453f7SBen Roth  s.subspec "Core" do |ss|
34c65a9e6cSTomasz Sapeta    ss.source_files = "Exponent/**/*.{h,m,mm,cpp,swift}", "../template-files/keys.json"
35c65a9e6cSTomasz Sapeta    ss.preserve_paths = "Exponent/**/*.{h,m,mm,cpp,swift}"
36c65a9e6cSTomasz Sapeta    ss.exclude_files = "Exponent/Supporting/**", "Exponent/Versioned/Optional/**/*.{h,m,swift}"
37335453f7SBen Roth
38335453f7SBen Roth${IOS_EXPOKIT_DEPS}
3925be6b63SBartłomiej Bukowski    ss.dependency 'React-Core' # explicit dependency required for CocoaPods >= 1.5.0
4049aaa82bSStanisław Chmiela    ss.dependency 'ReactCommon' # needed for react-native-reanimated, see https://github.com/expo/expo/pull/11096#how
41a5a9f97fSStanisław Chmiela
42a5a9f97fSStanisław Chmiela    # Universal modules required by ExpoKit so the code compiles
4310c060fdSTomasz Sapeta    ss.dependency 'ExpoModulesCore'
44335453f7SBen Roth  end
45e2c7f60cSJames Ide
462dec7ac3SStanisław Chmiela  s.subspec "FaceDetector" do |ss|
47a5a9f97fSStanisław Chmiela    ss.dependency "EXFaceDetector"
482dec7ac3SStanisław Chmiela  end
49bef625a4SBen Rothend
50