Swift Package Manager Support: Add FlutterFramework Dependency

Open Beginner friendly
#2,014 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Find each plugin Package.swift file and its pubspec.yaml. Follow the updated Flutter migration guide linked in the issue, adding the FlutterFramework package and product dependencies and setting the minimum Flutter version to 3.41. Done means every plugin package manifest has the dependency and each package declares the required Flutter version.

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
722
Forks
220
Avg merge
16h 36m
Merged PRs (30d)
25

Getting set up

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 RevenueCat/purchases-flutter

All issues in RevenueCat/purchases-flutter

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.