Pluto Shared Preferences is distributed through mavenCentral. To use it, you need to add the following Gradle dependency to your build.gradle file of you android app module.
Note: add the
no-op
variant to isolate the plugin from release builds.
dependencies {
debugImplementation "com.plutolib.plugins:preferences:$plutoVersion"
releaseImplementation "com.plutolib.plugins:preferences-no-op:$plutoVersion"
}
Now to start using the plugin, add it to Pluto
Pluto.Installer(this)
.addPlugin(PlutoSharePreferencesPlugin())
.install()
🎉 You are all done!
Now re-build and run your app and open Pluto, you will see the Shared Preferences plugin installed.
To open Shared Preferences screen via code, use this
Pluto.open(PlutoSharePreferencesPlugin.ID)