[ios] Switching to iOS 15 as the minimum

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-06-24 16:14:33 +02:00
committed by Konstantin Pastbin
parent 35cda6d342
commit 78b54acad4
22 changed files with 52 additions and 89 deletions

View File

@@ -509,10 +509,10 @@ void setShowLocationAlert(BOOL needShow) {
// Delegate's method didChangeAuthorizationStatus is used to handle the authorization status when the application finishes launching
// or user changes location access in the application settings.
- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status
- (void)locationManagerDidChangeAuthorization:(CLLocationManager *)manager
{
LOG(LWARNING, ("CLLocationManagerDelegate: Authorization status has changed to", DebugPrint(status)));
switch (status) {
LOG(LWARNING, ("CLLocationManagerDelegate: Authorization status has changed to", DebugPrint(manager.authorizationStatus)));
switch (manager.authorizationStatus) {
case kCLAuthorizationStatusAuthorizedWhenInUse:
case kCLAuthorizationStatusAuthorizedAlways:
[self startUpdatingLocationFor:manager];
@@ -579,7 +579,7 @@ void setShowLocationAlert(BOOL needShow) {
if ([CLLocationManager locationServicesEnabled])
{
CLLocationManager * locationManager = self.locationManager;
switch (CLLocationManager.authorizationStatus)
switch (locationManager.authorizationStatus)
{
case kCLAuthorizationStatusAuthorizedWhenInUse:
case kCLAuthorizationStatusAuthorizedAlways: