Skip to content

Commit 2b24a5e

Browse files
committed
Merge pull request #7 from acerbetti/master
suppress warning for deprecated declaration
2 parents aafce57 + f5e79cc commit 2b24a5e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

FCCurrentLocationGeocoder.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'FCCurrentLocationGeocoder'
3-
spec.version = '1.1.10'
3+
spec.version = '1.1.11'
44
spec.license = { :type => 'MIT' }
55
spec.homepage = 'https://github.com/fabiocaccamo/FCCurrentLocationGeocoder'
66
spec.authors = { 'Fabio Caccamo' => '[email protected]' }
77
spec.summary = 'iOS Geocoder for forward geocode and reverse geocode user\'s current location (optional GeoIP support) using a block-based syntax.'
8-
spec.source = { :git => 'https://github.com/fabiocaccamo/FCCurrentLocationGeocoder.git', :tag => '1.1.10' }
8+
spec.source = { :git => 'https://github.com/fabiocaccamo/FCCurrentLocationGeocoder.git', :tag => '1.1.11' }
99
spec.source_files = 'FCCurrentLocationGeocoder/*.{h,m}'
1010
spec.platform = :ios, '5.0'
1111
spec.framework = 'Foundation', 'UIKit', 'CoreLocation'

FCCurrentLocationGeocoder/FCCurrentLocationGeocoder.m

+3
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ +(BOOL)canGeocodeIfCanPromptForAuthorization:(BOOL)canPromptForAuthorization and
138138

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

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

144147

0 commit comments

Comments
 (0)