Skip to content

Latest commit

 

History

History
 
 

shared-preferences

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Integrate Shared Preferences Plugin in your application

Add Gradle Dependencies

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"
}

Install plugin to Pluto

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.


Open Plugin view programmatically

To open Shared Preferences screen via code, use this

Pluto.open(PlutoSharePreferencesPlugin.ID)