amplify-flutter icon indicating copy to clipboard operation
amplify-flutter copied to clipboard

Amplify Flutter is not compatible with built_value 8.10.1

Open tyllark opened this issue 6 months ago • 3 comments

Description

@asaarnak has pointed out that Amplify is now pinning built_value 8.10.0, which makes it incompatible with the latest versions. Amplify packages should be updated to depend on built_value ^8.10.1.

Because no versions of amplify_auth_cognito match >2.6.2 <3.0.0 and amplify_auth_cognito 2.6.2 depends on amplify_auth_cognito_dart ^0.11.10, amplify_auth_cognito ^2.6.2 requires amplify_auth_cognito_dart ^0.11.10.
Because amplify_auth_cognito_dart 0.11.10 depends on built_value 8.10.0 and no versions of amplify_auth_cognito_dart match >0.11.10 <0.12.0, amplify_auth_cognito_dart ^0.11.10 requires built_value 8.10.0.
Thus, amplify_auth_cognito ^2.6.2 requires built_value 8.10.0.
So, because my_app depends on both built_value ^8.10.1 and amplify_auth_cognito ^2.6.2, version solving failed.

Categories

  • [ ] Analytics
  • [ ] API (REST)
  • [ ] API (GraphQL)
  • [x] Auth
  • [ ] Authenticator
  • [ ] DataStore
  • [ ] Notifications (Push)
  • [ ] Storage

Steps to Reproduce

  1. run `dart pub add built_value'
  2. run `dart pub add amplify_flutter'
  3. Observe that the latest versions are not compatible.

Screenshots

No response

Platforms

  • [x] iOS
  • [x] Android
  • [x] Web
  • [x] macOS
  • [x] Windows
  • [x] Linux

Flutter Version

3.29.0

Amplify Flutter Version

2.6.2

Deployment Method

Amplify Gen 2

Schema


tyllark avatar May 30 '25 10:05 tyllark

This issue was opened by a maintainer of this repository; updates will be posted here. If you are also experiencing this issue, please comment here with any relevant information so that we're aware and can prioritize accordingly.

github-actions[bot] avatar May 30 '25 10:05 github-actions[bot]

Amplify 2.6.3 was just released with a fix. Please let us know if you experience any issue.

tyllark avatar Jun 17 '25 22:06 tyllark

Tested, works for us.

asaarnak avatar Jun 18 '25 12:06 asaarnak

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.

github-actions[bot] avatar Jun 28 '25 00:06 github-actions[bot]