Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added MapBox 0.5.2

  • Loading branch information...
commit 61a76c62f16c191738b362f7508d2a90f253b6bb 1 parent c78f922
@incanus incanus authored
Showing with 89 additions and 0 deletions.
  1. +89 −0 MapBox/0.5.2/MapBox.podspec
View
89 MapBox/0.5.2/MapBox.podspec
@@ -0,0 +1,89 @@
+Pod::Spec.new do |m|
+
+ m.name = 'MapBox'
+ m.version = '0.5.2'
+
+ m.summary = 'Open source alternative to MapKit.'
+ m.description = 'Open source alternative to MapKit supporting custom tile sources, offline use, and complete cache control.'
+ m.homepage = 'http://mapbox.com/mobile'
+ m.license = 'BSD'
+ m.author = { 'MapBox' => 'ios@mapbox.com' }
+
+ m.source = { :git => 'https://github.com/mapbox/mapbox-ios-sdk.git', :tag => '0.5.2' }
+
+ m.platform = :ios, '5.0'
+
+ m.source_files = 'Proj4/*.h', 'MapView/Map/*.{h,c,m}'
+
+ m.prefix_header_file = 'MapView/MapView_Prefix.pch'
+
+ def m.post_install(target_installer)
+ puts "\nGenerating MapBox resources bundle\n".yellow if config.verbose?
+ Dir.chdir File.join(config.project_pods_root, 'MapBox') do
+ command = "xcodebuild -project MapView/MapView.xcodeproj -target Resources CONFIGURATION_BUILD_DIR=../../Resources"
+ command << " 2>&1 > /dev/null" unless config.verbose?
+ unless system(command)
+ raise ::Pod::Informative, "Failed to generate MapBox resources bundle"
+ end
+ end
+ File.open(File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name), 'a') do |file|
+ file.puts "install_resource 'Resources/MapBox.bundle'"
+ end
+ end
+
+ m.documentation = {
+ :html => 'http://mapbox.com/mapbox-ios-sdk/api/',
+ :appledoc => [
+ '--project-company', 'MapBox',
+ '--docset-copyright', 'MapBox',
+ '--no-keep-undocumented-objects',
+ '--no-keep-undocumented-members',
+ '--ignore', '.c',
+ '--ignore', '.m',
+ '--ignore', 'Proj4',
+ '--ignore', 'RMAttributionViewController.h',
+ '--ignore', 'RMBingSource.h',
+ '--ignore', 'RMConfiguration.h',
+ '--ignore', 'RMCoordinateGridSource.h',
+ '--ignore', 'RMDBMapSource.h',
+ '--ignore', 'RMFoundation.h',
+ '--ignore', 'RMFractalTileProjection.h',
+ '--ignore', 'RMGenericMapSource.h',
+ '--ignore', 'RMGlobalConstants.h',
+ '--ignore', 'RMLoadingTileView.h',
+ '--ignore', 'RMMapOverlayView.h',
+ '--ignore', 'RMMapQuestOpenAerialSource.h',
+ '--ignore', 'RMMapQuestOSMSource.h',
+ '--ignore', 'RMMapScrollView.h',
+ '--ignore', 'RMMapTiledLayerView.h',
+ '--ignore', 'RMNotifications.h',
+ '--ignore', 'RMOpenCycleMapSource.h',
+ '--ignore', 'RMOpenSeaMapLayer.h',
+ '--ignore', 'RMOpenSeaMapSource.h',
+ '--ignore', 'RMPixel.h',
+ '--ignore', 'RMProjection.h',
+ '--ignore', 'RMTile.h',
+ '--ignore', 'RMTileImage.h',
+ '--ignore', 'RMTileSourcesContainer.h',
+ ]
+ }
+
+ m.framework = 'CoreGraphics'
+ m.framework = 'CoreLocation'
+ m.framework = 'Foundation'
+ m.framework = 'QuartzCore'
+ m.framework = 'UIKit'
+
+ m.library = 'Proj4'
+ m.library = 'sqlite3'
+ m.library = 'z'
+
+ m.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC', 'LIBRARY_SEARCH_PATHS' => '"${PODS_ROOT}/MapBox/Proj4"' }
+
+ m.preserve_paths = 'Proj4/libProj4.a', 'MapView/MapView.xcodeproj', 'MapView/Map/Resources'
+
+ m.dependency 'FMDB', '2.0'
+ m.dependency 'GRMustache', '5.4.3'
+ m.dependency 'SMCalloutView', '1.0.1'
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.