diff --git a/sites/docs/src/content/add-to-app/index.md b/sites/docs/src/content/add-to-app/index.md index a8caaa99632..3e503d6a389 100644 --- a/sites/docs/src/content/add-to-app/index.md +++ b/sites/docs/src/content/add-to-app/index.md @@ -192,6 +192,15 @@ see our API usage guides at the following links: +## Migrating from add-to-app to a standalone Flutter app + +If your project began as an add-to-app module and you want to convert it into a full, standalone Flutter application: + +1. **Create a standalone project structure**: Run `flutter create ` to generate fresh native platform harnesses (`android/`, `ios/`, `macos/`, etc.). +2. **Copy Dart source code and assets**: Move your `lib/`, `pubspec.yaml`, `assets/`, and tests from your Flutter module into the newly created standalone application root. +3. **Port platform integration code**: Move any custom platform channel handlers or native plugin initializations from the host app into the new native platform projects (`android/app/src/main/` or `ios/Runner/`). +4. **Clean up host app integration**: Remove the add-to-app module dependencies (such as AAR or Swift package dependencies and embedding hooks) from your original host app repositories. + ## Limitations Mobile limitations: diff --git a/sites/docs/src/content/learn/pathway/index.md b/sites/docs/src/content/learn/pathway/index.md index 7469d90789e..21687640024 100644 --- a/sites/docs/src/content/learn/pathway/index.md +++ b/sites/docs/src/content/learn/pathway/index.md @@ -64,6 +64,12 @@ take full advantage of the framework. +## Ready to start? + +Get started by installing Flutter and setting up your development environment: + +[Start with Step 1: Quick Install →](/learn/pathway/quick-install) + Dash with question marks around her; looking curious. diff --git a/sites/docs/src/content/packages-and-plugins/swift-package-manager/for-app-developers.md b/sites/docs/src/content/packages-and-plugins/swift-package-manager/for-app-developers.md index 09110e119ab..a217ae4289c 100644 --- a/sites/docs/src/content/packages-and-plugins/swift-package-manager/for-app-developers.md +++ b/sites/docs/src/content/packages-and-plugins/swift-package-manager/for-app-developers.md @@ -184,6 +184,24 @@ To use the plugin: flutter build macos --config-only ``` +## How to remove CocoaPods after migrating to Swift Package Manager + +Once all your dependencies have migrated to Swift Package Manager and your project builds using SwiftPM, you can clean up CocoaPods from your project: + +1. Deintegrate CocoaPods from your project by running the following command from the `ios` or `macos` directory: + + ```sh + pod deintegrate + ``` + +2. Remove the `Podfile` and `Podfile.lock` files from your `ios` or `macos` directory. + +3. Clean and rebuild your project: + + ```sh + flutter clean + ``` + ## How to turn off Swift Package Manager In general, don't do this. Remember that