Skip to content

[Request]: Update Package.swift in all plugins to support updated format for SPM support #3890

Description

@vbuberen

Plugin

Applies to all plugins

Use case

Since initial introduction of Swift Package Manager support more than a year ago (#3152) there were changes that require additional changes in the Package.swift file of all packages. Otherwise, there are the followign errors during iOS/MacOS build:

ERROR: Plugin package_info_plus has a Package.swift for ios but is missing a dependency on FlutterFramework. Add the following to your Package.swift dependencies:
    .package(name: "FlutterFramework", path: "../FlutterFramework")
And add FlutterFramework as a target dependency:
    .product(name: "FlutterFramework", package: "FlutterFramework")
See https://docs.flutter.dev/packages-and-plugins/swift-package-manager/for-plugin-authors for more information.

Proposal

Add missing lines to all plugins to get rid of errors during build with Flutter 3.44.x which uses SPM by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions