Mapbox-iOS-SDK@sputnik.podspec 3.17 KB
Pod::Spec.new do |m|

  m.name    = 'Mapbox-iOS-SDK@sputnik'
  m.version = '1.6.4-sputnik'

  m.summary          = 'Fork of MapBox iOS SDK with some patches.'
  m.description      = 'An open source toolset for building mapping applications for iOS devices with great flexibility for visual styling, offline use, and customizability.'
  m.homepage         = 'https://github.com/sputnik-ru/Mapbox-iOS-SDK'
  m.license          = 'BSD'
  m.author           = { 'Denis Zamataev' => 'zamataev@corp.sputnik.ru' }
  m.screenshot       = 'https://raw.github.com/sputnik-ru/Mapbox-iOS-SDK/packaging/screenshot.png'

  m.source = { :git => 'https://github.com/sputnik-ru/Mapbox-iOS-SDK.git', :tag => m.version.to_s }

  m.platform              = :ios
  m.ios.deployment_target = '5.0'
  m.requires_arc          = true

  m.module_name = 'Mapbox_iOS_SDK'

  m.source_files = 'Proj4/proj_api.h', 'MapView/Map/*.{h,c,m}'

  m.prefix_header_file = 'MapView/MapView_Prefix.pch'

  m.public_header_files = [
      'MapView/Map/Mapbox.h',
      'MapView/Map/RMAbstractMercatorTileSource.h',
      'MapView/Map/RMAbstractWebMapSource.h',
      'MapView/Map/RMAnnotation.h',
      'MapView/Map/RMCacheObject.h',
      'MapView/Map/RMCircle.h',
      'MapView/Map/RMCircleAnnotation.h',
      'MapView/Map/RMCompositeSource.h',
      'MapView/Map/RMConfiguration.h',
      'MapView/Map/RMCoordinateGridSource.h',
      'MapView/Map/RMDatabaseCache.h',
      'MapView/Map/RMFractalTileProjection.h',
      'MapView/Map/RMFoundation.h',
      'MapView/Map/RMGenericMapSource.h',
      'MapView/Map/RMGlobalConstants.h',
      'MapView/Map/RMGreatCircleAnnotation.h',
      'MapView/Map/RMInteractiveSource.h',
      'MapView/Map/RMMBTilesSource.h',
      'MapView/Map/RMMapboxSource.h',
      'MapView/Map/RMMapLayer.h',
      'MapView/Map/RMMapView.h',
      'MapView/Map/RMMapViewDelegate.h',
      'MapView/Map/RMMapOverlayView.h',
      'MapView/Map/RMMapTiledLayerView.h',
      'MapView/Map/RMMapScrollView.h',
      'MapView/Map/RMMarker.h',
      'MapView/Map/RMMemoryCache.h',
      'MapView/Map/RMPointAnnotation.h',
      'MapView/Map/RMPolygonAnnotation.h',
      'MapView/Map/RMPolylineAnnotation.h',
      'MapView/Map/RMProjection.h',
      'MapView/Map/RMShape.h',
      'MapView/Map/RMShapeAnnotation.h',
      'MapView/Map/RMStaticMapView.h',
      'MapView/Map/RMTile.h',
      'MapView/Map/RMTileCache.h',
      'MapView/Map/RMTileMillSource.h',
      'MapView/Map/RMTileSource.h',
      'MapView/Map/RMTileSourcesContainer.h',
      'MapView/Map/RMUserLocation.h',
      'MapView/Map/RMUserTrackingBarButtonItem.h'
    ]

  m.resource_bundle = {
    'Mapbox' => 'MapView/Map/Resources/*'
  }

  m.documentation_url = 'https://www.mapbox.com/mapbox-ios-sdk-legacy'

  m.frameworks = 'CoreGraphics', 'CoreLocation', 'Foundation', 'QuartzCore', 'UIKit'

  m.libraries = 'Proj4', 'sqlite3', 'z'

  m.xcconfig = {
    'OTHER_LDFLAGS'        => '-ObjC',
    'LIBRARY_SEARCH_PATHS' => '"${PODS_ROOT}/Mapbox-iOS-SDK/Proj4"'
  }

  m.preserve_paths = 'MapView/MapView.xcodeproj', 'MapView/Map/Resources'

  m.vendored_libraries = 'Proj4/libProj4.a'

  m.dependency 'FMDB', '2.3'
  m.dependency 'GRMustache', '7.3.0'
  m.dependency 'SMCalloutView', '2.0'

end