yeniel / native_shared_preferences Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
I am trying to use this plugin to read a native app's shared preferences.
I manage to successfully substitute the native app via adb -r, but when I query prefs.getKeys() in Flutter code, I get an empty dictionary.
It looks as if the plugin was not reading correctly, or am I missing something?
Thank you so much.
Add
Future<void> removeAll(String key) async {
var tmpRes = false;
final keys = getKeys();
for (final key in keys) {
await remove(key);
}
}
I get this warning during build:
Note: /Users/XXX/Flutter/.pub-cache/hosted/pub.dartlang.org/native_shared_preferences-2.0.6/android/src/main/java/yeniellandestoy/native_shared_preferences/NativeSharedPreferencesPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Hi, I would like to update my build gradle version but I can't, because you are a dependency in my project. Are you planning to update your gradle version?
It's just so convenient to be able to set a string to null to mean "remove the value". It's also what shared_preferences
package does.
Instead of code like:
if (from == null) {
await prefs.remove('epochFrom');
} else {
await prefs.setInt('epochFrom', from.millisecondsSinceEpoch);
}
you can write:
await prefs.setInt('epochFrom', from?.millisecondsSinceEpoch);
Best of all, this feature can be added with backwards compatibility.
Are there any plans to migrate this package to null safety?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.