diff --git a/cspell.json b/cspell.json index 9ba84ba8efb..a8cae3e672c 100644 --- a/cspell.json +++ b/cspell.json @@ -1490,7 +1490,8 @@ "infowindow", "Libre's", "Pinia", - "kotlinx" + "kotlinx", + "snapcraft" ], "flagWords": [ "hte", diff --git a/src/fragments/lib/project-setup/flutter/platform-setup/platform-setup.mdx b/src/fragments/lib/project-setup/flutter/platform-setup/platform-setup.mdx index ba2fcc13b84..c6fe9229f6e 100644 --- a/src/fragments/lib/project-setup/flutter/platform-setup/platform-setup.mdx +++ b/src/fragments/lib/project-setup/flutter/platform-setup/platform-setup.mdx @@ -110,20 +110,33 @@ Add a development team in the "Signing and Capabilities" section and enable sign No specific configuration steps are needed to begin using the Auth category on Windows; however, depending on how your Windows configuration and the method you use to run your Flutter app, you may need to change the file path length limitation. ## Linux -To run the Amplify-Flutter developer preview on Linux, you must install two libraries: - -* libsecret-1-dev -* libglib2.0-dev +Amplify Flutter depends on [libsecret](https://wiki.gnome.org/Projects/Libsecret) when targeting Linux. To run and debug an app that depends on Amplify Flutter, you must install `libsecret-1-dev`. To install on Ubuntu, run: ```terminal sudo apt-get update sudo apt-get install -y libsecret-1-dev -sudo apt-get install -y libglib2.0-dev ``` -The command to install might vary slightly on other Linux distributions. +This will also install dependencies of `libsecret-1-dev`, such as `libglib2.0-dev`, which is also required for to run and debug apps that depend on Amplify Flutter. + +> The command to install might vary on other Linux distributions. + +### Packaging Your App +To include the required dependencies when packaging your app with Snapcraft, include them in your `snapcraft.yaml` file. For more info, see [Flutter's documentation on releasing to the Snap Store](https://docs.flutter.dev/deployment/linux). + +```yaml +parts: + my-app: + plugin: flutter + source: . + flutter-target: lib/main.dart + build-packages: + - libsecret-1-dev + stage-packages: + - libsecret-1-0 +```