From 490fa4a2ce4607725f2dcaec4b671fdf77c10303 Mon Sep 17 00:00:00 2001 From: Jordan Nelson Date: Tue, 20 Sep 2022 14:35:29 -0400 Subject: [PATCH 1/6] chore: add snapcraft.yaml example --- .../flutter/platform-setup/platform-setup.mdx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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..21f021ff8f7 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,7 +110,7 @@ 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: +Amplify-Flutter developer preview depends on libsecret and glib when targetting Linux. To run and debug an app using Amplify-Flutter, you must install the following libraries: * libsecret-1-dev * libglib2.0-dev @@ -125,6 +125,23 @@ sudo apt-get install -y libglib2.0-dev The command to install might vary slightly on other Linux distributions. +### Packaging Your App +To include the dependencies above when packaging your app with Snapscraft, include them in your snapcraft.yaml file. + +```yaml +parts: + my-app: + plugin: flutter + source: . + flutter-target: lib/main.dart + build-packages: + - libsecret-1-dev + - libglib2.0-dev + stage-packages: + - libsecret-1-dev + - libglib2.0-dev +``` + \ No newline at end of file From ac9a538f93be01c704d008f07df222a9266a8e27 Mon Sep 17 00:00:00 2001 From: Jordan Nelson Date: Tue, 13 Dec 2022 11:12:10 -0500 Subject: [PATCH 2/6] chore: update snapcraft example --- cspell.json | 3 ++- .../flutter/platform-setup/platform-setup.mdx | 8 +++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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 21f021ff8f7..7b119402358 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,7 +110,7 @@ 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 -Amplify-Flutter developer preview depends on libsecret and glib when targetting Linux. To run and debug an app using Amplify-Flutter, you must install the following libraries: +Amplify-Flutter developer preview depends on libsecret and glib when targeting Linux. To run and debug an app using Amplify-Flutter, you must install the following libraries: * libsecret-1-dev * libglib2.0-dev @@ -126,7 +126,7 @@ sudo apt-get install -y libglib2.0-dev The command to install might vary slightly on other Linux distributions. ### Packaging Your App -To include the dependencies above when packaging your app with Snapscraft, include them in your snapcraft.yaml file. +To include the dependencies above when packaging your app with Snapcraft, include them in your snapcraft.yaml file. ```yaml parts: @@ -136,10 +136,8 @@ parts: flutter-target: lib/main.dart build-packages: - libsecret-1-dev - - libglib2.0-dev stage-packages: - - libsecret-1-dev - - libglib2.0-dev + - libsecret-1-0 ``` From 2fc1c45786eae8cb666f1c72b61660fef2ee7db2 Mon Sep 17 00:00:00 2001 From: Jordan Nelson Date: Wed, 21 Sep 2022 15:41:08 -0400 Subject: [PATCH 3/6] Update src/fragments/lib/project-setup/flutter/platform-setup/platform-setup.mdx Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com> --- .../lib/project-setup/flutter/platform-setup/platform-setup.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 7b119402358..a60431b057e 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 @@ -126,7 +126,7 @@ sudo apt-get install -y libglib2.0-dev The command to install might vary slightly on other Linux distributions. ### Packaging Your App -To include the dependencies above when packaging your app with Snapcraft, include them in your snapcraft.yaml file. +To include the dependencies above when packaging your app with Snapcraft, include them in your `snapcraft.yaml` file. ```yaml parts: From 758cffa0b31e10883370f776b376f56fab496784 Mon Sep 17 00:00:00 2001 From: Jordan Nelson Date: Wed, 14 Dec 2022 10:20:36 -0500 Subject: [PATCH 4/6] chore: remove in Amplify-Flutter --- .../lib/project-setup/flutter/platform-setup/platform-setup.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a60431b057e..d9e76ecd5d1 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,7 +110,7 @@ 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 -Amplify-Flutter developer preview depends on libsecret and glib when targeting Linux. To run and debug an app using Amplify-Flutter, you must install the following libraries: +Amplify Flutter developer preview depends on libsecret and glib when targeting Linux. To run and debug an app using Amplify Flutter, you must install the following libraries: * libsecret-1-dev * libglib2.0-dev From 7012d5d1e196680094bc1217283c8cfa9607976a Mon Sep 17 00:00:00 2001 From: Jordan Nelson Date: Wed, 14 Dec 2022 10:27:03 -0500 Subject: [PATCH 5/6] chore: include lin kto flutter docs --- .../lib/project-setup/flutter/platform-setup/platform-setup.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 d9e76ecd5d1..fedc929ed3c 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 @@ -126,7 +126,7 @@ sudo apt-get install -y libglib2.0-dev The command to install might vary slightly on other Linux distributions. ### Packaging Your App -To include the dependencies above when packaging your app with Snapcraft, include them in your `snapcraft.yaml` file. +To include the dependencies above 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: From 0d95e1c63ed9cc440145996bab35d037d09e3fa0 Mon Sep 17 00:00:00 2001 From: Jordan Nelson Date: Wed, 14 Dec 2022 10:37:04 -0500 Subject: [PATCH 6/6] chore: add links, update libglib2 --- .../flutter/platform-setup/platform-setup.mdx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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 fedc929ed3c..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,23 +110,21 @@ 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 -Amplify Flutter developer preview depends on libsecret and glib when targeting Linux. To run and debug an app using Amplify Flutter, you must install the following 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 dependencies above 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). +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: