Skip to content

[Enhancement proposal]: Update iOS minimum version to 10.0 or higher, delete dead fallback code #1455

Open
@jmagman

Description

@jmagman

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Windows

Proposal

permission_handler_apple supports Flutter > 2.8.0, which had a minimum iOS requirement of iOS 9.

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):

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 10.0.

Remove the dead if (@available(iOS 9.0, *)) and earlier check fallbacks


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions