Skip to content

Commit

Permalink
suppress warning for deprecated declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
acerbetti committed Nov 28, 2015
1 parent aafce57 commit f5e79cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FCCurrentLocationGeocoder.podspec
@@ -1,11 +1,11 @@
Pod::Spec.new do |spec|
spec.name = 'FCCurrentLocationGeocoder'
spec.version = '1.1.10'
spec.version = '1.1.11'
spec.license = { :type => 'MIT' }
spec.homepage = 'https://github.com/fabiocaccamo/FCCurrentLocationGeocoder'
spec.authors = { 'Fabio Caccamo' => 'fabio.caccamo@gmail.com' }
spec.summary = 'iOS Geocoder for forward geocode and reverse geocode user\'s current location (optional GeoIP support) using a block-based syntax.'
spec.source = { :git => 'https://github.com/fabiocaccamo/FCCurrentLocationGeocoder.git', :tag => '1.1.10' }
spec.source = { :git => 'https://github.com/fabiocaccamo/FCCurrentLocationGeocoder.git', :tag => '1.1.11' }
spec.source_files = 'FCCurrentLocationGeocoder/*.{h,m}'
spec.platform = :ios, '5.0'
spec.framework = 'Foundation', 'UIKit', 'CoreLocation'
Expand Down
3 changes: 3 additions & 0 deletions FCCurrentLocationGeocoder/FCCurrentLocationGeocoder.m
Expand Up @@ -138,7 +138,10 @@ +(BOOL)canGeocodeIfCanPromptForAuthorization:(BOOL)canPromptForAuthorization and

//http://stackoverflow.com/questions/4318708/checking-for-ios-location-services

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
return ([CLLocationManager locationServicesEnabled] && ((authStatus == kCLAuthorizationStatusAuthorized) || ((authStatus == kCLAuthorizationStatusNotDetermined) && canPromptForAuthorization))) || canUseIPAddressAsFallback;
#pragma clang diagnostic pop
}


Expand Down

0 comments on commit f5e79cc

Please sign in to comment.