Skip to content

Adding instructions on using Swift Package Manager#13359

Open
sfshaza2 wants to merge 2 commits intomainfrom
update-developing-packages-spm
Open

Adding instructions on using Swift Package Manager#13359
sfshaza2 wants to merge 2 commits intomainfrom
update-developing-packages-spm

Conversation

@sfshaza2
Copy link
Copy Markdown
Contributor

@sfshaza2 sfshaza2 commented May 6, 2026

Fixes #13283

@sfshaza2 sfshaza2 requested a review from johnpryan May 6, 2026 04:47
@sfshaza2 sfshaza2 requested a review from a team as a code owner May 6, 2026 04:47
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the documentation for developing Flutter packages, specifically focusing on native Darwin dependencies. It promotes Swift Package Manager as the primary strategy for iOS and macOS dependencies and moves CocoaPods instructions to a legacy section. The review feedback correctly identifies an error in the recommended file path for the Package.swift file and a syntax error (a trailing backtick) in a Ruby code example.

Comment on lines +473 to +474
1. Create a `Package.swift` file in your plugin's `ios/` or `macos/` directory
inside a subdirectory matching your plugin name.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The instruction to place the Package.swift file inside a subdirectory matching the plugin name is incorrect. For Flutter's Swift Package Manager integration, the Package.swift file should be located directly in the ios/ or macos/ directory of the plugin.

Suggested change
1. Create a `Package.swift` file in your plugin's `ios/` or `macos/` directory
inside a subdirectory matching your plugin name.
1. Create a Package.swift file in your plugin's ios/ or macos/ directory.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johnpryan, is this true?

Comment thread sites/docs/src/content/packages-and-plugins/developing-packages.md Outdated
@flutter-website-bot
Copy link
Copy Markdown
Collaborator

flutter-website-bot commented May 6, 2026

Visit the preview URL for this PR (updated for commit 43495a2):

https://flutter-docs-prod--pr13359-update-developing-packages-t73b1owr.web.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update "Developing packages" page to use Swift Package Manager

2 participants