Closed svenopdehipt closed 1 month ago
Hi all, i am working on integrating #680, so this should not be needed anymore. Thank you anyway!
I have updated the code with the changes provided above
I have just tested all the changed code and noticed that the get random value does work for javascript but does not work for wasm. I will revert this change.
Thanks! I understand that package:web
completely replaces package:js
, so I think this change will be necessary.
Since package:web ^0.5.0
requires Dart 3.3, it may be a good idea to update the package required dart version. However, in applications that do not use web, this change may seem disruptive.
Nevertheless, plus_package has already been changed to require Dart 3.3 or higher. I would be happy for maintainers to consider this.
https://github.com/fluttercommunity/plus_plugins/issues/2653
I just noticed that the jsonwebkey file isn't used anymore and could also be deleted. Should I delete this?
@svenopdehipt - Thanks for your work on this! Is there any chance you can pull develop into this branch (or rebase) to resolve merge conflicts? 🙏
I have rebased the branch with the develop branch of your repo.
Rapid work @svenopdehipt - Thank you!
My only thoughts now are relating to @koji-1009's comment above. Should our pubspec.yaml
now look like this instead?
environment:
sdk: ">=3.3.0 <4.0.0"
flutter: ">=3.19.0"
I do think that it would make sense to update the pubspec.yaml, because older flutter and dart versions aren't supported anyway due though the package:web dependency.
Keen to hear your thoughts @juliansteenbakker, as I know you were discussing this in #680!
Bump. Any updates on this?
Seems all good! So what i'm gonna do is merge this, change the version constraints of flutter, and release it under a new major version. I created a separate branch where we can continue support for the current version 9, because the sudden change in flutter versions will require lots of people to update flutter, which can be a hassle in some projects.
So, because these changes require a recent version of flutter, i have decided to make it an opt-in. I have publish v2.0.0-beta.1 of the flutter_secure_storage_web package, which you can use by setting the following line in your pubspec.yaml:
dependency_overrides:
flutter_secure_storage_web: ^2.0.0-beta.1
I have also added this in the readme, so users can decide of themself to use this version, or stick with the old implementation which doesn't require the latest flutter version.
Migrate packages to support wasm in the next stable release. Removed unused code in subtle.dart and update dependencies for the example project. I have also used the new index.html structure and tested it wasm on the current beta channel, but I have reverted the index.html because it doesn't work with the current stable release.