Adding instructions on using Swift Package Manager#13359
Adding instructions on using Swift Package Manager#13359
Conversation
There was a problem hiding this comment.
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.
| 1. Create a `Package.swift` file in your plugin's `ios/` or `macos/` directory | ||
| inside a subdirectory matching your plugin name. |
There was a problem hiding this comment.
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.
| 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. |
|
Visit the preview URL for this PR (updated for commit 43495a2): https://flutter-docs-prod--pr13359-update-developing-packages-t73b1owr.web.app |
Fixes #13283