require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| s.name = "RNPendoSdk" s.version = package["version"] s.summary = package["description"] s.description = <<-DESC Pendo helps close the loop with your users, learning from their usage patterns to make you a better product leader and guiding users to get move value from your apps DESC s.social_media_url = 'https://www.facebook.com/Pendoio/' s.documentation_url = 'https://help.pendo.io/resources/support-library/unlisted/ios-sdk-integration.html' s.homepage = 'https://www.pendo.io/' s.license = { :type => 'Commercial', :text => 'https://www.pendo.io/legal/license-terms-and-conditions-may-2020/' } s.authors = { 'Pendo.io' => 'pendo-iOS@pendo.io' } s.platforms = { :ios => "11.0" } s.source = { :git => "https://github.com/pendo-io/react-native-pendo-sdk.git" } s.requires_arc = true s.source_files = "ios/**/*.{h,m,swift}" s.dependency "React" s.dependency "React-Core" # Opt-in to Swift Package Manager for React Native >= 0.75 if defined?(spm_dependency) && $RNPendoEnableSPM == true spm_dependency(s, url: 'https://github.com/pendo-io/pendo-mobile-sdk.git', requirement: { kind: 'upToNextMinorVersion', minimumVersion: '3.14.0' }, products: ['Pendo'] ) else # Fallback to CocoaPods for older React Native versions or if SPM is explicitly disabled s.dependency "Pendo", "~> 3.14.0" end end