Skip to content

Let the Podfile be dynamically created #9827

@xster

Description

@xster

Extracted from #9763

Let the Podfile be managed by the flutter tool at build time rather than as an artifact of flutter create. This lets us version Podfiles created by old invocations of flutter create as well as handle upgrades of hybrid Podfiles that users have altered to include their own pod dependencies. Probably by tagging the file with markers such as

User stuff
User stuff
####################
# Auto-generated v0.2
# Do not edit within the marked lines. They may be replaced or removed automatically
our own generated pod script
# You can edit below this marked line
####################

This way, users also can't run pod install in the iOS folder before using plugins or editing his own Podfile and get a strange error.

With this, we can also pod deintegrate the project if no plugins are left and there are no entries outside our marked generated lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: toolingAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyplatform-macBuilding on or for macOS 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