1*c08955c9SAlan Hughesrequire 'json' 2*c08955c9SAlan Hughes 3*c08955c9SAlan Hughespackage = JSON.parse(File.read(File.join(__dir__, '..', 'package.json'))) 4*c08955c9SAlan Hughes 5*c08955c9SAlan HughesPod::Spec.new do |s| 6*c08955c9SAlan Hughes s.name = 'ExpoSMS' 7*c08955c9SAlan Hughes s.version = package['version'] 8*c08955c9SAlan Hughes s.summary = package['description'] 9*c08955c9SAlan Hughes s.description = package['description'] 10*c08955c9SAlan Hughes s.license = package['license'] 11*c08955c9SAlan Hughes s.author = package['author'] 12*c08955c9SAlan Hughes s.homepage = package['homepage'] 13*c08955c9SAlan Hughes s.platform = :ios, '13.0' 14*c08955c9SAlan Hughes s.swift_version = '5.4' 15*c08955c9SAlan Hughes s.source = { git: 'https://github.com/expo/expo.git' } 16*c08955c9SAlan Hughes s.static_framework = true 17*c08955c9SAlan Hughes 18*c08955c9SAlan Hughes s.dependency 'ExpoModulesCore' 19*c08955c9SAlan Hughes 20*c08955c9SAlan Hughes if !$ExpoUseSources&.include?(package['name']) && ENV['EXPO_USE_SOURCE'].to_i == 0 && File.exist?("#{s.name}.xcframework") && Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.10.0') 21*c08955c9SAlan Hughes s.source_files = "**/*.h" 22*c08955c9SAlan Hughes s.vendored_frameworks = "#{s.name}.xcframework" 23*c08955c9SAlan Hughes else 24*c08955c9SAlan Hughes s.source_files = "**/*.{h,m,swift}" 25*c08955c9SAlan Hughes end 26*c08955c9SAlan Hughesend 27