Swift Package Manager Support: Add FlutterFramework Dependency

Open Beginner friendly
#1,312 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
77/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
dart, flutter, swift

Research direction

Find each plugin's Package.swift file and its pubspec.yaml. Read the existing package dependencies and Flutter version constraints, then update them to include FlutterFramework and require Flutter 3.41 or later. Done when every plugin package declares the dependency and its minimum Flutter version meets the requested requirement.

Written by the indexing model from the issue text.

Description

Hello,

Thank you for adding Swift Package Manager support to your plugin! Please also add the FlutterFramework dependency, as described in the updated migration guide. Future versions of Flutter will require this dependency.

  1. Add FlutterFramework to each of your plugin's Package.swift files:
    dependencies: [
+       .package(name: "FlutterFramework", path: "../FlutterFramework")
    ],
    targets: [
        .target(
            name: "plugin_name",
            dependencies: [
+               .product(name: "FlutterFramework", package: "FlutterFramework")
            ]
        )
    ]
  1. Raise your plugin's minimum Flutter version to at least 3.41 in pubspec.yaml:

    environment:
      sdk: ^3.11.0
      flutter: ">=3.41.0"
    

If you have questions, reach out in the #hackers-ios channel on Flutter's Discord or open a GitHub issue.

Thank you for your wonderful contributions to the Flutter ecosystem!

Dominant language
Dart
Stars
610
Forks
731
Avg merge
3m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from carp-dk/flutter-plugins

All issues in carp-dk/flutter-plugins

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.