Closed ThexXTURBOXx closed 1 month ago
This PR now also migrates from html
to web
since package maintainers are advised to do so sooner than later
Is there any date to merge this and create a new version??
@JgomesAT I don't even know if this will ever get merged as the repo owner is not very active currently.
For the time being, you can use my fork through a dependency_override
dependency_overrides: flutter_secure_storage: git: url: https://github.com/ThexXTURBOXx/flutter_secure_storage.git ref: develop path: flutter_secure_storage
With the version of your repo I have an error in compilation:
../../../../.pub-cache/git/flutter_secure_storage-6ac827e457393b5c654c1abda40d31e2cb93f62c/flutter_secure_storage/lib/flutter_secure_storage.dart:268:17: Error: The getter 'onCupertinoProtectedDataAvailabilityChanged' isn't defined for the class 'FlutterSecureStoragePlatform'.
You probably need to override the other packages as well
You probably need to override the other packages as well
What other package??
As described above, the platform interface and web submodules (and probably also linux etc.
As described above, the platform interface and web submodules (and probably also linux etc.
but this library is part of the flutter_storage I don't have this library in the pubspec
IF I put your repo in the pubspec dependencies: and the old one in the dependencies_override
dependencies: flutter_secure_storage: git: url: https://github.com/ThexXTURBOXx/flutter_secure_storage.git ref: develop path: flutter_secure_storage
dependency_overrides:
flutter_secure_storage: ^9.0.0
I have a successful build
IF I put your repo in the pubspec dependencies: and the old one in the dependencies_override
@JgomesAT Then, you are using the official version
but this library is part of the flutter_storage I don't have this library in the pubspec
You have all these packages in your pubspec.lock
and hence you will need to override all of them.
Please refrain from commenting under this PR unless there is an issue with my code. For further information, please consult StackOverflow instead.
I think that is an issue of your code I only use your repo, and I removed all references of package flutter_secure_storage: ^9.0.0 the error is in the run in a flutter in a web in debug mode in an Apple(iMAC) device
This is an issue with your current setup.
Take a look inside your pubspec.lock
(NOT pubspec.yaml
). You will need to override ALL the packages that start with flutter_secure_storage
.
Then it works without any problems.
I won't answer any questions not related to my code here anymore.
I'm sorry, but I didn't understand, this behavior is strange I need to add all submodules, in a possible final merge of the library this won't be necessary, will it?
example I need to add this in the override:
flutter_secure_storage_platform_interface: git: url: https://github.com/ThexXTURBOXx/flutter_secure_storage.git ref: develop path: flutter_secure_storage_platform_interface
Exactly, after merging and releasing these changes properly to pub.dev, this won't be necessary anymore.
Will this be merged soon?
Can this get merged? @ThexXTURBOXx
I think yes. Someone might want to migrate some stuff to js_interop
, though
When will you make the merge of this?
@juliansteenbakker Since I have seen that you are about to incorporate this, I want to mention that the js_interop migration from #698 should also be considered. A mixture of this PR right here and #698 is probably the best way to go. Do you want me to rebase my PR right here onto your upstream master?
Hi @ThexXTURBOXx , that would be awesome ! I am planning on releasing a smaller version with bug fixes first today, and a new major version with some breaking changes and possibly this PR somewhere in the end of this week.
@juliansteenbakker Done! :)
I have released v9.1.0 which has all fixes that are possible for the current lower sdk version. So i will now merge this, and the next release (v10) will use the higher sdk version.
This allows newer versions of
js
being used in conjunction withflutter_secure_storage
. Also, ashtml
is about to get phased out, this PR already migrates toweb
as it is recommended practice to do so.Fixes #670 Fixes #679 Fixes #683
If you want to use this now, you can do so via a
dependency_override
:You probably need to also override the other subpackages similarly (I won't explain how to do that. Just do it as I have shown with the main package above).