require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32' Pod::Spec.new do |s| s.name = "complycube-react-native" s.version = package["version"] s.summary = package["description"] s.homepage = package["homepage"] s.license = package["license"] s.authors = package["author"] s.platforms = { :ios => "14.0" } s.source = { :git => "https://github.com/complycube/complycube-ios-sdk", :tag => "#{s.version}" } s.source_files = "ios/Sources/**/*.{h,m,mm,swift}" s.exclude_files = [ "ios/Pods/**/*", "ios/Tests/**/*", "ios/ComplyCubeNewConfig/**/*", ] s.dependency "React-Core" if ENV['USE_CCNFC'] == "true" s.dependency "ComplyCubeMobileSDK", "2.0.7-nfc" else s.dependency "ComplyCubeMobileSDK" end s.pod_target_xcconfig = { "SWIFT_INCLUDE_PATHS" => "$(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AppAuth\"", "HEADER_SEARCH_PATHS" => "$(inherited) \"${PODS_ROOT}/Headers/Public\" \"${PODS_ROOT}/Headers/Public/AppAuth\"", "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES" => "YES" } end