You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't a problem in and of itself, but it means the iOS 8 fallback checks are always dead code.
Current Flutter supports iOS 12 and higher, so you could optionally bump further, but that would require increasing the minimum version of Flutter in the pubspec.
Pitch
Increase the podspec to 9.0.
Remove the dead if (@available(iOS 8.0, *)) check fallbacks
I'm filing this as a one-off to permission-handler (and gelocator Baseflow/flutter-geolocator#1652) because it calls the deprecated -[UIApplication openURL:] totally safely behind an iOS 8.0 availability check
permission-handler would not hit that bug because of the correct and safe availability check. However, Flutter is being used within Google where maintainers are trying to add linters to avoid this API from being called, and that linter doesn't understand availability. Instead of teaching the linter about availability, it would instead be easier (for them, not you) to remove this usage within permission-handler.
It's dead anyway, so even if this cleanup task only removed -[UIApplication openURL:] I would be happy. :)
Please check the following before submitting a new issue.
Please select affected platform(s)
Proposal
permission_handler_apple supports Flutter > 2.8.0, which had a minimum iOS requirement of iOS 9.
flutter-permission-handler/permission_handler_apple/pubspec.yaml
Line 9 in 441c53c
This is a relevant code from the Flutter 2.8.0 tag that shows 9.0:
https://github.com/flutter/flutter/blob/cf4400006550b70f28e4b4af815151d1e74846c6/packages/flutter_tools/templates/app_shared/ios-objc.tmpl/Runner.xcodeproj/project.pbxproj.tmpl#L286
flutter/flutter#62902
However, the permission_handler_apple podspec claims to support iOS 8 (both 8 and 9 are really old at this point):
flutter-permission-handler/permission_handler_apple/ios/permission_handler_apple.podspec
Line 19 in 441c53c
This isn't a problem in and of itself, but it means the iOS 8 fallback checks are always dead code.
Current Flutter supports iOS 12 and higher, so you could optionally bump further, but that would require increasing the minimum version of Flutter in the pubspec.
Pitch
Increase the podspec to 9.0.
Remove the dead
if (@available(iOS 8.0, *))
check fallbacksflutter-permission-handler/permission_handler_apple/ios/Classes/PermissionManager.m
Line 89 in 441c53c
flutter-permission-handler/permission_handler_apple/ios/Classes/strategies/LocationPermissionStrategy.m
Line 177 in 441c53c
The text was updated successfully, but these errors were encountered: