Giter Site home page Giter Site logo

native_shared_preferences's People

Contributors

btrautmann avatar cznico avatar daisukeueta avatar tbaileysofi avatar theolassonder avatar yeniel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

native_shared_preferences's Issues

Trying to read a native app's shared preferences

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.

[Feature] removeAll method

Add

  Future<void> removeAll(String key) async {
    var tmpRes = false;
    final keys = getKeys();
    for (final key in keys) {
      await remove(key);
    }
  }

Multi file xml

Hi @yeniel @cznico
Current native_shared_preferences only read a flie xml

...
resource_name
...

I want to read many sharePreference from xml files native app android. who can help me .

Deprecated API issue

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.

low build gradle version

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?

Support setString('key', null), setInt('key', null) etc

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.