-
Notifications
You must be signed in to change notification settings - Fork 257
Upcoming breaking changes for amplify flutter repository. #274
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
Comments
Changes 1 through 4 are released in the new version 0.0.2-dev.1 |
Overview updated with upcoming exception handling refactor change. |
Changes 5 through 7 are released in 0.0.2-dev.2 |
Not sure if I was just getting lucky before 0.0.2-dev.2 but another breaking change seems to be that AmplifyAPI plugin must now be manually added when using DataStore for backend sync to happen. |
Good catch. We didn't have the API Plugin implemented before so the native library's API plugin was added by default to get the online sync working. Now the customers would need to add the API plugin specifically to their app like other platforms. I'll update this issue. |
Will this be? |
Hi all,
We have a few breaking changes coming up in our next release as detailed below. Please upgrade your apps appropriately when you upgrade amplify_flutter.
For more details, see this RFC [RFC]: Amplify core refactor #263 and PR Refactor amplify_core to amplify_flutter #273.
The breaking change will be the path to importing
Amplify
configure()
oraddPlugin()
addPlugin
now takes a single plugin instance without the need for named parameters. You can alternatively use a newaddPlugins([AmplifyPlugins])
to add all the plugins at the same time.AWSTime
andAWSDate
via our new classesTemporalTime
andTemporalDate
. Furthermore, we will introduce a breaking change by replace the underlying types forAWSDateTime
andAWSTimestamp
.AWSTimestamp
will change fromint
->TemporalTimestamp
AWSDateTime
will change from Dart:core'sDateTime
->TemporalDateTime
.Thus you will need to use the constructor for these classes when saving to fields for
AWSTimestamp
andAWSDateTime
.TemporalDateTime constructors:
TemporalTimestamp constructors:
AmplifyException
AmplifyAlreadyConfiguredException
.AuthException
,DataStoreException
) which are subclasses ofAmplifyException
amplify-flutter/packages/amplify_core/lib/types/exception/AmplifyException.dart
Lines 18 to 26 in 741a628
PRs for this change: #314, #322, #329
[Released in 0.0.2-dev.2] To enable syncing data to cloud, customers will need to add the APIPlugin() to their app. This was done automatically before 0.0.2-dev.2.
[Released in 0.0.2-dev.2] The
userAttributes
passed toCognitoSignUpOptions
for the.signUp
API must consist of a Map<String, String> instead of Map<String, dynamic>:The text was updated successfully, but these errors were encountered: