Skip to content

[path_provider_foundation] Add Swift Package Manager compatibility to path_provider_foundation #146913

Closed
flutter/packages
#6680

Description

@vashworth

Prerequisites:


Follow "Converting an existing Swift Flutter Plugin to a Swift Package" instructions to make path_provider_foundation plugin compatible with Swift Package Manager and CocoaPods.

To validate all is working, run the following commands

// Disable swift package manager
flutter config --no-enable-swift-package-manager

// Build example with CocoaPods
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --packages=path_provider_foundation
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --packages=path_provider_foundation

// Build example with swift package manager
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --swift-package-manager --packages=path_provider_foundation
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --swift-package-manager --packages=path_provider_foundation

// Run native tests
dart run script/tool/bin/flutter_plugin_tools.dart native-test --ios --packages=path_provider_foundation
dart run script/tool/bin/flutter_plugin_tools.dart native-test --macos --packages=path_provider_foundation

Activity

  1. added
    platform-iosiOS applications specifically
    platform-macosBuilding on or for macOS specifically
    p: path_providerPlugin that provides resolved paths to some platform directories
    a: pluginsSupport for writing, building, and running plugin packages
    P2Important issues not at the top of the work list
    fyi-ecosystemFor the attention of Ecosystem team
    team-iosOwned by iOS platform team
    triaged-iosTriaged by iOS platform team
    on Apr 17, 2024
  2. github-actions commented on May 21, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  3. locked as resolved and limited conversation to collaborators on May 21, 2024
  4. added theissue type on Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2Important issues not at the top of the work lista: pluginsSupport for writing, building, and running plugin packagesp: path_providerPlugin that provides resolved paths to some platform directoriesplatform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions