1require 'json' 2 3package = JSON.parse(File.read(File.join(__dir__, '../package.json'))) 4 5Pod::Spec.new do |s| 6 s.name = 'expo-dev-menu-interface' 7 s.version = package['version'] 8 s.summary = package['description'] 9 s.description = package['description'] 10 s.license = package['license'] 11 s.author = package['author'] 12 s.homepage = package['homepage'] 13 s.platform = :ios, '11.0' 14 s.swift_version = '5.2' 15 s.source = { git: 'https://github.com/expo/expo.git' } 16 s.static_framework = true 17 s.source_files = '**/*.{h,m,swift}' 18 s.preserve_paths = '**/*.{h,m,swift}' 19 s.exclude_files = 'Tests/**/*.{h,m,swift}' 20 s.requires_arc = true 21 s.header_dir = 'EXDevMenuInterface' 22 23 # Swift/Objective-C compatibility 24 s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" } 25 26 s.test_spec 'Tests' do |test_spec| 27 test_spec.platform = :ios, '12.0' 28 test_spec.source_files = 'Tests/**/*.{h,m,swift}' 29 test_spec.dependency 'Quick' 30 test_spec.dependency 'Nimble' 31 end 32end 33