Files
ppsspp/ios/LocationHelper.mm
T
Henrik RydgårdandClaude Opus 5.5 6fe0f420b1 iOS: Drop version checks for iOS 12 and older, use one deployment target
The minimum is iOS 13 (15 for the App Store build), so the iOS 10
display link fallbacks, the iOS 13 orientation check, the weak import
of GCController and the respondsToSelector checks for APIs from iOS 8
to 13 can go.

The keyboard presses checked for iOS 13.0 but used UIPress.key outside
the check, which needs 13.4, so it would crash on 13.0-13.3 if it ever
runs there. It only runs in App Store builds now. Folded the two copies
into one function with the right check.

The deployment target was 13.0 in the toolchain's compile flags but
12.0 in CMAKE_OSX_DEPLOYMENT_TARGET and 11.0 in the Xcode attribute for
non-App Store builds. All three now come from the toolchain file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 16:28:27 +02:00

36 lines
835 B
Plaintext

#import "LocationHelper.h"
@interface LocationHelper()
@end
@implementation LocationHelper
-(id) init {
NSLog(@"LocationHelper::init");
self = [super init];
if (self) {
locationManager = [[CLLocationManager alloc] init];
[locationManager setDelegate:self];
}
return self;
}
-(void) startLocationUpdates {
NSLog(@"LocationHelper::startLocationUpdates");
[locationManager requestWhenInUseAuthorization];
[locationManager startUpdatingLocation];
}
-(void) stopLocationUpdates {
NSLog(@"LocationHelper::stopLocationUpdates");
[locationManager stopUpdatingLocation];
}
- (void) locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray<CLLocation *> *)locations {
for (id location in locations) {
[self.delegate SetGpsDataIOS:location];
}
}
@end