-
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Migrate to nnbd #489
Migrate to nnbd #489
Conversation
Hi @nohli do you need help with migrating the package? I can help if you need any. |
@Mayb3Nots Packages fluter_audio_recorder and flutter_audio_query (in example app) are not null safe. If you could replace them with different packages, it would help a lot. |
I can try migrate those package to null safety ;) |
The recorder already has an nnbd PR that you could review (but it only help us if it gets published to pub.dev). |
For now we can use this while waiting for the owners of these packages to update.
As for flutter_audio_query I will migrating the package myself. |
Yeah. Since it's only the example app it should even be fine. So only the other package - migrating or replacing :) Also, this package basically consists of three parts - web, example and lib. You can also work on web and/or example (example would be great) if you like? Sent you an invite for collaborating on the migration fork. Probably best if you create a new branch 'migrate-example-app'? |
@kalismeras61 where do the auto-generated libraries |
i don't think it using anywhere, no idea but Florent created this with flutter_i18n package. |
TODO After assets_audio_player_web is published, the dependency in pubspec.yaml needs to be changed from git to pub.dev in order to publish the main package. The example app has two git dependencies (of PRs from null safety migration, one from Mayb3Nots 🎉), which should be fine for now. Also, I declared it as a prerelease and not a stable 3.0.0 version. So much changed code better needs to be tested before making it the next stable. FYI I've added the linter pedantic which further improved some parts of the code. This, and updated dependencies, will result in 20 more pub.dev points. |
Thank you so much for your contribution. I am sorry I couldn't be of more use. |
Can you please merge this pull request ASAP and release null safety pre release version. so that people can use this changes in production cc: @nohli , @kalismeras61 |
@RR-Reddy you can use it in production with
On a side note, if you're not dependent on sound null safety right now, the well tested stable release would be safer at the moment. |
@nohli to make it work, we have to override web dependency as below. along with main dependency
|
This doesn't look like it's using the nnbd-migrated branch though. |
@kalismeras61 I've tested the package in my apps and it works well. So far no other reported issues. Maybe it can be published to pub.dev (first assets_audio_player_web and then the main package with the updated assets_audio_player_web dependency)? |
@nohli , thanks for the update. I am going to check on my side and will publish new version today. |
@nohli did you test this for both plaform ? or some one did test for android and also ios as well ? |
@kalismeras61 on both platforms, but let me test the example app on both platforms, too, just to make sure.
This crash also appears with the non-nnbd version: |
Closes #486