Added compiler flag GALLERY_USE_LOCATION which is used to partition usage of CoreLocation. If the flag isn't set then the option within Camera to record the location is not available.
This change forces consumers of the framework to define GALLERY_USE_LOCATION should they wish to compliment photos with location information.
By introducing this compiler flag we're able to conditionally remove dependencies on CoreLocation when we're not interested in using location information. This in turn avoids the needles requirement to set a NSLocationWhenInUseUsageDescription key in the Apps plist file regardless.
By having a better way to address this warning this will avoid future App Store rejections when Apple make the inclusion of a NSLocationWhenInUseUsageDescription string mandatory when using CoreLocation.
Up-versioned to 2.5.0 as this will be a breaking change for consumers using the recordLocation property on Camera.
GALLERY_USE_LOCATION
which is used to partition usage ofCoreLocation
. If the flag isn't set then the option withinCamera
to record the location is not available.GALLERY_USE_LOCATION
should they wish to compliment photos with location information.CoreLocation
when we're not interested in using location information. This in turn avoids the needles requirement to set aNSLocationWhenInUseUsageDescription
key in the Apps plist file regardless.NSLocationWhenInUseUsageDescription
string mandatory when usingCoreLocation
.2.5.0
as this will be a breaking change for consumers using therecordLocation
property onCamera
.README.md