Skip to content

Commit 9c72344

Browse files
authored
docs: update migrate swift plugin docs with .gitignore (#11497)
_Description of what this PR is changing or adding, and why:_ This PR adds notes about new `.gitignore` entries for those who want to migrate their old packages to SPM. _Issues fixed by this PR (if any):_ Without this step - the guide suggests _"Commit your plugin's changes to your version control system"_ with those `.build/` and `.swiftpm/` directories newly created in previous steps. _PRs or commits this PR depends on (if any):_ flutter/packages#6705 ## Presubmit checklist - [x] This PR is marked as draft with an explanation if not meant to land until a future stable release. - [x] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent 7b5a3b2 commit 9c72344

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/_includes/docs/swift-package-manager/migrate-swift-plugin.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,15 @@ The example below uses `ios`, replace `ios` with `macos`/`darwin` as applicable.
237237
Otherwise, using `Bundle.module` results in an error.
238238
:::
239239

240-
1. Commit your plugin's changes to your version control system.
240+
1. If your `.gitignore` doesn't include `.build/` and `.swiftpm/` directories,
241+
you'll want to update your `.gitignore` to include:
242+
243+
```text title=".gitignore"
244+
.build/
245+
.swiftpm/
246+
```
247+
248+
Commit your plugin's changes to your version control system.
241249
242250
1. Verify the plugin still works with CocoaPods.
243251

0 commit comments

Comments
 (0)