podspec updates for 0.18+
Showing
1 changed file
with
7 additions
and
19 deletions
@@ -11,7 +11,8 @@ Pod::Spec.new do |m| | @@ -11,7 +11,8 @@ Pod::Spec.new do |m| | ||
11 | 11 | ||
12 | m.source = { :git => 'https://github.com/mapbox/mapbox-ios-sdk.git', :branch => 'develop' } | 12 | m.source = { :git => 'https://github.com/mapbox/mapbox-ios-sdk.git', :branch => 'develop' } |
13 | 13 | ||
14 | - m.platform = :ios, '5.0' | 14 | + m.platform = :ios |
15 | + m.ios.deployment_target = '5.0' | ||
15 | 16 | ||
16 | m.source_files = 'Proj4/*.h', 'MapView/Map/*.{h,c,m}' | 17 | m.source_files = 'Proj4/*.h', 'MapView/Map/*.{h,c,m}' |
17 | 18 | ||
@@ -19,21 +20,14 @@ Pod::Spec.new do |m| | @@ -19,21 +20,14 @@ Pod::Spec.new do |m| | ||
19 | 20 | ||
20 | m.prefix_header_file = 'MapView/MapView_Prefix.pch' | 21 | m.prefix_header_file = 'MapView/MapView_Prefix.pch' |
21 | 22 | ||
22 | - def m.post_install(target_installer) | ||
23 | - puts "\nGenerating MapBox resources bundle\n".yellow if config.verbose? | ||
24 | - Dir.chdir File.join(config.project_pods_root, 'MapBox') do | 23 | + m.post_install do |library| |
24 | + Dir.chdir File.join(library.sandbox_dir, 'MapBox') do | ||
25 | command = "xcodebuild -project MapView/MapView.xcodeproj -target Resources CONFIGURATION_BUILD_DIR=../../Resources" | 25 | command = "xcodebuild -project MapView/MapView.xcodeproj -target Resources CONFIGURATION_BUILD_DIR=../../Resources" |
26 | - command << " 2>&1 > /dev/null" unless config.verbose? | ||
27 | unless system(command) | 26 | unless system(command) |
28 | raise ::Pod::Informative, "Failed to generate MapBox resources bundle" | 27 | raise ::Pod::Informative, "Failed to generate MapBox resources bundle" |
29 | end | 28 | end |
30 | end | 29 | end |
31 | - if Version.new(Pod::VERSION) >= Version.new('0.17.0') | ||
32 | - script_path = target_installer.copy_resources_script_path | ||
33 | - else | ||
34 | - script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name) | ||
35 | - end | ||
36 | - File.open(script_path, 'a') do |file| | 30 | + File.open(library.copy_resources_script_path, 'a') do |file| |
37 | file.puts "install_resource 'Resources/MapBox.bundle'" | 31 | file.puts "install_resource 'Resources/MapBox.bundle'" |
38 | end | 32 | end |
39 | end | 33 | end |
@@ -74,15 +68,9 @@ Pod::Spec.new do |m| | @@ -74,15 +68,9 @@ Pod::Spec.new do |m| | ||
74 | ] | 68 | ] |
75 | } | 69 | } |
76 | 70 | ||
77 | - m.framework = 'CoreGraphics' | ||
78 | - m.framework = 'CoreLocation' | ||
79 | - m.framework = 'Foundation' | ||
80 | - m.framework = 'QuartzCore' | ||
81 | - m.framework = 'UIKit' | 71 | + m.frameworks = 'CoreGraphics', 'CoreLocation', 'Foundation', 'QuartzCore', 'UIKit' |
82 | 72 | ||
83 | - m.library = 'Proj4' | ||
84 | - m.library = 'sqlite3' | ||
85 | - m.library = 'z' | 73 | + m.libraries = 'Proj4', 'sqlite3', 'z' |
86 | 74 | ||
87 | m.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC', 'LIBRARY_SEARCH_PATHS' => '"${PODS_ROOT}/MapBox/Proj4"' } | 75 | m.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC', 'LIBRARY_SEARCH_PATHS' => '"${PODS_ROOT}/MapBox/Proj4"' } |
88 | 76 |
-
Please register or login to post a comment