Skip to content

Swift template is using Swift 4 #40400

Closed

Description

@stuartmorgan-g

A significant part of the argument for switching the default iOS template to Swift was that with Swift 5, newer iOS devices wouldn't have the size overhead of having all the Swift libraries bundled in an app.

However, our Swift template is currently using Swift version 4, which means that's actually not the case unless developers go in and manually change their project settings. Lots of people are going to have unnecessarily large new apps under the current settings.

We should make the language default for the app and plugin templates 5, not 4. This will require:

  • Actually changing the value in the Xcode project templates
  • Updating the Swift code in the templates to use Swift 5
  • Making Xcode 10.3 the minimum supported version in flutter_tool (currently its 9)

Activity

  1. added
    platform-iosiOS applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    on Sep 12, 2019
  2. changed the title [-]Swift template is using Swift 4.[/-] [+]Swift template is using Swift 4[/+] on Sep 12, 2019
  3. stuartmorgan-g commented on Sep 12, 2019

    @stuartmorgan-g
    ContributorAuthor

    Since we shipped Swift-by-default to stable, should we consider a hotfix for this?

  4. jmagman commented on Sep 13, 2019

    @jmagman
    Member

    Off the top of my head, this would involve:

  5. stuartmorgan-g commented on Sep 13, 2019

    @stuartmorgan-g
    ContributorAuthor

    Audit first party plugins for Swift 5 compatibility?

    I thought we didn't use Swift in first-party plugins yet, because it would have caused the size bloat for everyone using them.

  6. jmagman commented on Sep 13, 2019

    @jmagman
    Member

    Audit first party plugins for Swift 5 compatibility?

    I thought we didn't use Swift in first-party plugins yet, because it would have caused the size bloat for everyone using them.

    You're right. Maybe check the top 50 plugins? I doubt there are more than a handful if any. #25676

  7. github-actions commented on Aug 27, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  8. locked as resolved and limited conversation to collaborators on Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions