New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter v2 #7300
Flutter v2 #7300
Conversation
* Updates to Vite + React quickstart * Update src/fragments/gen2/quickstart/build-a-backend.mdx Co-authored-by: Kevin Old <kevold@amazon.com> * Update build-a-backend.mdx * Update build-a-backend.mdx * Update build-a-backend.mdx --------- Co-authored-by: Kevin Old <kevold@amazon.com>
* platform typed as optional * refactor init * remove commented code * remove angry useEffect * fix typing * added layoutcontext so mobile menu closes on navigation * move import --------- Co-authored-by: katiegoines <katiegoines@gmail.com>
…atform (#6947) Co-authored-by: Tim Nguyen <54393192+timngyn@users.noreply.github.com>
* chore: more layout refactoring * remove unused prop, alphabetize props
* include usage for multi-page apps * improve multi-page app docs * use Hub syntax * update imports in examples
* chore: Clean up broken Amplify JS API reference links. * Cleaned up language.
* update build image settings for Gen 2 * remove callout and add fragment to vite guide
* chore: add unit test for YoutubeEmbed component * add code coverage stats --------- Co-authored-by: katiegoines <katiegoines@gmail.com>
* chore: add unit tests for Accordion component * issue with window properties * fixed tracking test * working on animation issue * accordion tests * fix testing errors * added test for closing accordion * add code coverage stats --------- Co-authored-by: katiegoines <katiegoines@gmail.com>
* Add algolia env vars to next.config * Remove extra code string
…; add build step to docs (#6970) * fix(data): update React Native minimum iOS deployment target; add build step to docs * address PR feedback * remove deployment target guidance * add React Native version deployment target callout * fix unrecognized syntax * replace callout with accordion * move 'upgrading' callout
* Clarify behavior of forgetDevice() API regarding device tracking This commit updates the documentation to clarify that using the forgetDevice() API results in the device being neither remembered nor tracked. Previously, the documentation suggested that forgotten devices might still be tracked, leading to confusion about the API's behavior. The revised wording aligns with the detailed description under the "Forgotten" section, ensuring consistency and eliminating ambiguity about how forgotten devices are handled. * Clarify behavior of forgetDevice() API regarding device tracking
* Support for enum value listing * Update src/pages/gen2/build-a-backend/data/data-modeling/add-fields/index.mdx
* chore(main): replace Twitter logo with X logo * update tests,snapshots, use x.com link instead of twitter.com
…links (#7292) * fix: allow code elements to work in h2/h3 headings with anchor links * update test * add comments to describe logic
* allow tablist to be scrollable * add scroll padding * Remove scroll padding because firefox hates it
Storage section lgtm |
* fix(main): update background color in darkmode * fix darkmode when system default is used
* storage: update swift storage with storage path * chore: update swift storage docs with storage path * chore: update storage getting started content * chore: add callout warning to file access level * chore: update gen2 callout * chore: convert fragments to inline filter * update storage path example * Android Gen2 Storage * remove upload from getting started * Add Using Storagepath * add content to storage path page * Expand storagepath * improve doc * update callout message * modify file access level callout * add accidental remove * gramatical issues * Update src/pages/[platform]/build-a-backend/storage/download/index.mdx Co-authored-by: Jordan Nelson <nejrd@amazon.com> * Update src/pages/[platform]/build-a-backend/storage/upload/index.mdx Co-authored-by: Jordan Nelson <nejrd@amazon.com> * Update src/pages/[platform]/build-a-backend/storage/storagepath/index.mdx Co-authored-by: Jordan Nelson <nejrd@amazon.com> * Update src/pages/[platform]/build-a-backend/storage/list/index.mdx Co-authored-by: Jordan Nelson <nejrd@amazon.com> * Update src/pages/[platform]/build-a-backend/storage/remove/index.mdx Co-authored-by: Jordan Nelson <nejrd@amazon.com> * Bump Android version --------- Co-authored-by: Tuan Pham <phantum@amazon.com> Co-authored-by: Jordan Nelson <nejrd@amazon.com>
npx amplify generate config is throwing >>Unknown command: config Generates post deployment artifacts Commands: amplify generate outputs Generates amplify outputs amplify generate forms Generates UI forms amplify generate graphql-client-code Generates graphql API code amplify generate schema-from-database Generates typescript data schema from a SQL database
…7023) * chore: add kotlin update to docs and formatting changes for new flutter build.gradle creation * chore: remove steps for apps created with flutter 3.16 and earlier
@@ -1,328 +1,173 @@ | |||
With the release of v1 Amplify Flutter now supports Web and Desktop for Auth, API, Analytics, and Storage use cases. Developers can build cross-platform Flutter apps with Amplify that target iOS, Android, Web, and Desktop (macOS, Windows, Linux) using a single codebase. | |||
Amplify Flutter v2 has several changes that may require migration when upgrading from v1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we mention here and manage expectation on what kind of changes user should expect? E.g. "Amplify Flutter v2 has changes over Auth, Data and Storage to do xxx"
|
||
We have re-written our libraries in Dart. In some places, we have made breaking changes to improve ergonomics or enable features that had been missing from the v0 implementations. | ||
## Auth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auth or Authentication?
|
||
## Prerequisites | ||
#### Time based OTP Exception Handling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would recommend either using TOTP or Time Based One Time Password (or better use both)
|
||
- A Flutter application targeting Flutter SDK >= 3.3.0 with Amplify libraries integrated | ||
In Amplify Flutter v1, `Amplify.Auth.verifyTotpSetup()` throws an `EnableSoftwareTokenMfaException` if the provided code was incorrect. In Amplify Flutter v2 a `CodeMismatchException` is thrown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: First sentence uses active voice and second sentence uses passive voice. Let's use active in both.
src/fragments/lib/project-setup/flutter/upgrade-guide/upgrade-guide.mdx
Outdated
Show resolved
Hide resolved
src/fragments/lib/project-setup/flutter/upgrade-guide/upgrade-guide.mdx
Outdated
Show resolved
Hide resolved
src/fragments/lib/project-setup/flutter/upgrade-guide/upgrade-guide.mdx
Outdated
Show resolved
Hide resolved
src/fragments/lib/project-setup/flutter/upgrade-guide/upgrade-guide.mdx
Outdated
Show resolved
Hide resolved
src/fragments/lib/project-setup/flutter/upgrade-guide/upgrade-guide.mdx
Outdated
Show resolved
Hide resolved
|
||
With the introduction of StoragePath, there is no need to override the libraries behavior for the prefix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the introduction of StoragePath, there is no need to override the libraries behavior for the prefix. | |
With the introduction of `StoragePath`, there is no need to override the libraries behavior for the prefix. |
src/fragments/lib/project-setup/flutter/upgrade-guide/upgrade-guide.mdx
Outdated
Show resolved
Hide resolved
Co-authored-by: Muhammed Salih Guler <muhammedsalihguler@gmail.com>
* chore: remove v0 flutter fragment * chore: remove move flutter fragment * chore: remove the move page from the directory and remove move from pages completely
* update sandbox secret management * Update src/pages/gen2/deploy-and-host/sandbox-environments/features/index.mdx * Update src/pages/gen2/deploy-and-host/sandbox-environments/features/index.mdx * Update src/pages/gen2/deploy-and-host/sandbox-environments/features/index.mdx * Update src/pages/gen2/deploy-and-host/sandbox-environments/features/index.mdx * Update src/pages/gen2/deploy-and-host/sandbox-environments/features/index.mdx --------- Co-authored-by: josef <josef.aidt@gmail.com>
* add angular specific code snippet * update dist directory path
* chore: fix broken links by adding inline filters * chore: remove the line instead of use InlineFilter since flutter is the only platform with this page * chore: remove getting started link under storage subheading that was being used as a placeholder
Description of changes:
Related GitHub issue #, if available:
Instructions
If this PR should not be merged upon approval for any reason, please submit as a DRAFT
Which product(s) are affected by this PR (if applicable)?
Which platform(s) are affected by this PR (if applicable)?
Please add the product(s)/platform(s) affected to the PR title
Checks
Does this PR conform to the styleguide?
Does this PR include filetypes other than markdown or images? Please add or update unit tests accordingly.
Are any files being deleted with this PR? If so, have the needed redirects been created?
Are all links in MDX files using the MDX link syntax rather than HTML link syntax?
ref: MDX:
[link](https://docs.amplify.aws/)
HTML:
<a href="https://docs.amplify.aws/">link</a>
When this PR is ready to merge, please check the box below
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.