Skip to content
Prateek Srivastava edited this page Oct 20, 2022 · 5 revisions

Pluto is an on-device debugging framework for Android applications. It supports adding debuggers as plugins like inspection of HTTP requests/responses, captures Crashes & ANRs, and manipulates application data, and so on.

Pluto provides APIs and framework support to render UI and access information.


Integrate Pluto in your application

Add Gradle Dependencies

Pluto is distributed through mavenCentral. To use it, you need to add the following Gradle dependency to your build.gradle file of your android app module.

dependencies {
  debugImplementation 'com.plutolib:pluto:2.0.6'
}

Intialize Pluto

Now to start using Pluto, intialize Pluto SDK from you application class by passing context to it.

Pluto.Installer(this)
  .addPlugin(DemoPlugin(PLUGIN_DEV_ID))
  .install()

Install plugins

Unlike version 1.x.x, Pluto now allows developers to add debuggers as plugins based on their need.

Here is the list of some plugins provided by us

We will be adding more to the list. So please stay tuned.

Please refer to their respective README for integration steps.

🎉 You are all set!

Now re-build and run your app, you will receive a notification from Pluto, use it to access Pluto UI.

Using utility methods

  • Handling Notch Pluto now allows developers to show/hide the notch programmatically.
Pluto.showNotch(true)
  • Access Pluto UI via Code To support deeper integration with the apps, developers can directly trigger the Pluto UI.
/* To open the plugin selector view */
Pluto.open()

/* To directly open any plugin, just pass the devIdentifier for the plugin */
Pluto.open(PLUGIN_DEV_ID)