Skip to content

Add flutter add-platform command (plugin only) #59493

@cyanglaz

Description

@cyanglaz

This command should:

  1. Determine if the correct directory is a plugin directory, throw if not
  2. If the current plugin is using the old pubspec format, throw an error and guide users to the new pubspec format migration instruction on flutter.dev
  3. Add platform specific folder and pubspec entries based on the platforms specified in --platforms flag.
  4. A no-op iOS folder still needs to be present for this change. We need to remove the iOS folder as soon as 1.20 is released.

#59787

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: pluginsSupport for writing, building, and running plugin packagesc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions