1require "json"
2
3package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
5Pod::Spec.new do |s|
6  s.name           = 'expo-dev-launcher'
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/github_account/expo-development-client.git', :tag => "#{s.version}" }
16  s.source_files   = 'ios/**/*.{h,m,swift,cpp}'
17  s.preserve_paths = 'ios/**/*.{h,m,swift}'
18  s.requires_arc   = true
19  s.header_dir     = 'EXDevLauncher'
20
21  s.resource_bundles = {
22    'EXDevLauncher' => ['ios/assets', 'ios/main.jsbundle']
23  }
24
25  s.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => "EX_DEV_LAUNCHER_ENABLED=1 EX_DEV_LAUNCHER_VERSION=#{s.version}", 'OTHER_SWIFT_FLAGS' => '-DEX_DEV_LAUNCHER_ENABLED=1' }
26
27  # Swift/Objective-C compatibility
28  s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" }
29
30  s.dependency "React"
31  s.dependency "expo-dev-menu-interface"
32end
33