1bf3e8710SEric Samelsonrequire 'json' 2bf3e8710SEric Samelson 3bf3e8710SEric Samelsonpackage = JSON.parse(File.read(File.join(__dir__, '..', 'package.json'))) 4bf3e8710SEric Samelson 5bf3e8710SEric SamelsonPod::Spec.new do |s| 6bf3e8710SEric Samelson s.name = 'EXUpdates' 7bf3e8710SEric Samelson s.version = package['version'] 8bf3e8710SEric Samelson s.summary = package['description'] 9bf3e8710SEric Samelson s.description = package['description'] 10bf3e8710SEric Samelson s.license = package['license'] 11bf3e8710SEric Samelson s.author = package['author'] 12bf3e8710SEric Samelson s.homepage = package['homepage'] 13*089a3d82STomasz Sapeta s.platform = :ios, '11.0' 14bf3e8710SEric Samelson s.source = { git: 'https://github.com/expo/expo.git' } 15bf3e8710SEric Samelson 16bf3e8710SEric Samelson s.dependency 'UMCore' 1725be6b63SBartłomiej Bukowski s.dependency 'React-Core' 18ed7bf842SEric Samelson 1952a1f6d0STomasz Sapeta 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') 206e1dd0e8STomasz Sapeta s.source_files = "#{s.name}/**/*.h" 216e1dd0e8STomasz Sapeta s.vendored_frameworks = "#{s.name}.xcframework" 226e1dd0e8STomasz Sapeta else 236e1dd0e8STomasz Sapeta s.source_files = "#{s.name}/**/*.{h,m}" 246e1dd0e8STomasz Sapeta end 256e1dd0e8STomasz Sapeta 26ed7bf842SEric Samelson s.test_spec 'Tests' do |test_spec| 27ed7bf842SEric Samelson test_spec.source_files = 'Tests/*.{h,m}' 28ed7bf842SEric Samelson end 29bf3e8710SEric Samelsonend 30