-
Notifications
You must be signed in to change notification settings - Fork 247
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
Null-Safety Support #435
Comments
Hi @raywhiteside thanks for creating this issue. We don't have any set dates for delivering this, but are actively looking into it. We can update you here. |
I'm pretty sure a lot of people are looking to move to null-safety and not having all dependencies supporting it will be an issue soon. Do you guys have any idea of an ETA for this? |
I would suggest a heavy priority be put on this. Frankly, a brand-new (as opposed to new rev with old legacy code) project/library like Amplify Flutter NOT supporting this amazes me (to the point of it almost being negligent, given null safety was no surprise, been in plan for quite some time in Flutter, almost as if AWS didn't hire or engage proper Flutter architects to plan this and this is taking the SDK team by surprise despite being a major part of Dart 2 plans and discussed heavily in public all through 2020, with beta versions having it). Especially considering that null-safe packages are compatible for those not using it, but you're locking out those who are or at least being the delaying dependency for those who otherwise could move (e.g. people not using null-safety could still use amplify-flutter, but people using null safety cannot use amplify-flutter). The only dependency in our project that doesn't at least have a null-safe version in alpha/preview is Amplify. Somehow, small, understaffed startups, open source projects, etc have managed to pull of what one of the most profitable cloud providers have not (I mean, hell, look at https://pub.dev/packages/amazon_cognito_identity_dart_2/versions/1.0.0-nullsafety.3 - they've already managed to outpace AWS's efforts here in keeping current, why can't AWS?). In that context, AWS's fumbles in the Amplify SDK and CLI continue to amaze me. |
@24601 I understand your frustration, but as you can see above #435 (comment) it is clear that we are actively working on the null safety migrations and acknowledge its importance. We cannot disclose our internal roadmap or dates, but this is one of our top priorities at this time. Also this is not a surprise for us. The project is new, but was started much before migrations of a lot of community packages began. It was planned to have the migration for all packages (we have 12) after GA, and at the same time to ensure they work together as many are interdependent. Please remember null safety migrations are still happening actively across the Dart/Flutter ecosystem with 775 packages migrating just recently, and different projects will take take time based on size, complexity, dependencies, etc. While we encourage feedback we request that it is constructive, respectful and adheres to our community guidelines. I assure you we understand the importance of the null safety migration and are actively working on it. We will update this thread as soon as we have a preview version available for customers to try. |
@Ashish-Nanda Do you need help with this? I would like to make a PR if ya'll need help |
Thanks for the insight, your comment is not visible in this thread so thanks for sharing the link to the separate issue that is not here. I appreciate being heard and you sharing what is going on behind the scenes that is NOT public information and I look forward to AWS releasing the software. I reviewed the community guidelines, I did not find anywhere that my comment violated it. If I did, please help me understand so I can avoid doing so in the future, but being frank and upfront doesn't seem to be against the policy. On the other hand, attempting to use community guidelines designed to create a safe space for everyone (which is a VERY good thing!) to silence criticism of AWS as a company's ability to execute as compared to smaller players is actually more harmful to a "safe space" and inclusive community than anything else if you ask me. I can't seem to find where I ventured into any of the following, but please, feel free to help me understand where I'm going awry here (besides being vocal about a product gap and my expectations of the corporate entity to deliver to paying customers, which, again, I did not detect in the below list of behaviors that are not acceptable):
|
Hi everyone, thanks for your patience as we upgrade Amplify Flutter to support Null Safety. This upgrade is requiring a lot of changes throughout our entire code base so we've created a separate branch here: https://github.com/aws-amplify/amplify-flutter/tree/null-safety-master to aggregate our Null Safety changes. So far we've upgrade our core and flutter modules as well as all of the interfaces. We'll now be migrating individual module plugins starting with Auth. We'd love to get your feedback during this upgrade. We are migrating Auth now so feel free to take a look at the what's changing here: #536 |
Thanks for the effort taken to migrate to null-safety! Looking forward to pub.dev updaes, will be trying Amplify as soon as null-safe versions are rolled out. |
When will these be rolling out? |
Hi, any updates on this? |
Understand it may take quite some efforts. But would it be possible to provide a way to generate models with null safety first? |
@raywhiteside, @sima-11, @yurijdvornyk, @BesavedTech, @maxim-saplin, @cto-leaps Hi everyone the pre-release version of null safety for Auth, Storage, API, and Analytics is now available. To use it please update your pubspec.yaml to use We are currently working on upgrading Datastore to Null Safety and will share updates once that is ready. |
The 0.2.0-nullsafety.0 branch won't compile for me. I'm having the following error:
Looks like the type is missing in the line 35. After changing the code to:
It worked. I'm gonna do further tests. Thanks, guys! |
Thanks for this solution @caravanat, this worked for me. 👍 |
@caravanat and @jonbhanson could you both let me know what version of flutter you are using and what other amplify packages you are using? |
Flutter doctor output:
amplify packages in amplify_auth_cognito: ^0.2.0-nullsafety.0
amplify_flutter: ^0.2.0-nullsafety.0
amplify_analytics_pinpoint: ^0.2.0-nullsafety.0 |
|
I'm having the same problem with amplify packages. Can we release a new version with @caravanat fix? |
It seems the issue is related to Kotlin itself. The Amplify team currently uses the default version in new Flutter packages, 1.3.50, and we're able to recreate the issue only by bumping the Kotlin version. Can those who experienced the issue confirm they are using versions of Kotlin >1.3.50? As the team investigates how to prevent issues like this from happening in the future, we will be releasing the fix proposed by @leonardocustodio soon. Thank you for your time and patience resolving this matter. |
Yes, I'm using kotlin 1.4.32. Had to bump kotlin version because of other packages. |
Thanks @leonardocustodio for the PR... I didn't knew if it was something local here so I just made the change locally until further investigation. Here we use Kotlin 1.4.30 and others devs here had the same problem using the 0.2.0-nullsafety.0 branch. |
@dnys1 in my case I had the problem with an app using Kotlin version 1.5.10. |
does anyone know when will amplify start supporting null safety? |
Amplify Flutter Please take a look at the docs for instructions on how to migrate your app Do let us know if you have any questions or feedback. |
I assume at some point null safety will be supported. I'd like to track the status and interest here.
The text was updated successfully, but these errors were encountered: