require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| s.name = "StytchReactNative" s.version = package["version"] s.summary = package['summary'] s.description = package['description'] s.homepage = package["homepage"] s.license = package["license"] s.authors = package["author"] s.platforms = { :ios => "15.0" } s.source = { :git => "https://github.com/stytchauth/stytch-mobile.git", :tag => "#{s.version}" } s.source_files = "ios/*.{h,m,mm,swift,cpp}" s.private_header_files = "ios/*.h" s.public_header_files = "ios/*.h" s.vendored_frameworks = [ 'ios/Frameworks/StytchSharedSDK.xcframework', 'ios/Frameworks/StytchSwiftUtils.xcframework', 'ios/Frameworks/StytchDFP.xcframework', 'ios/Frameworks/RecaptchaEnterprise.xcframework' ] s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'SWIFT_COMPILATION_MODE' => 'wholemodule' } install_modules_dependencies(s) end