Pluto is an on-device debugging framework for Android applications, which helps in the inspection of HTTP requests/responses, captures Crashes, and ANRs, and manipulates application data on the go.
It comes with a UI to monitor and share the information, as well as APIs to access and use that information in your application.
Pluto is distributed through mavenCentral. To use it, you need to add the following Gradle dependency to your build.gradle file of your app module.
Note: add both the
pluto
and thepluto-no-op
variant to isolate Pluto from release builds.
dependencies {
....
debugImplementation 'com.plutolib:pluto:2.1.2'
releaseImplementation 'com.plutolib:pluto-no-op:2.1.2'
....
}
Now to start using Pluto, initialize Pluto SDK from you application class by passing context to it.
Pluto.Installer(this)
.addPlugin(....)
.install()
Unlike version 1.x.x, Pluto now allows developers to add debuggers as plugin bundle or individual plugins based on their need.
Plugin bundle comes with all the basic plugins bundled together as single dependency.
dependencies {
....
debugImplementation 'com.plutolib.plugins:bundle-core:2.1.2'
releaseImplementation 'com.plutolib.plugins:bundle-core-no-op:2.1.2'
....
}
But, if you want to use individual plugins, here is the list of some plugins provided by us
- Network Plugin
- Exceptions & Crashes Plugin
- Logger Plugin
- Shared Preferences Plugin
- Rooms Database Plugin
- Datastore Preferences Plugin
- Layout Inspector Plugin
We will be adding more to the list. So please stay tuned.
Please refer to their respective README for integration steps.
You can also help us expand the Pluto ecosystem now.
Pluto now allows to develop custom debuggers as plugin. Read Develop Custom Plugins.
π You are all set!
Now re-build and run your app, you will receive a notification from Pluto, use it to access Pluto UI.
We're looking for contributors, help us improve Pluto. π
Please refer to your Contribution guidelines
to get started.
Have an idea to improve Pluto? Let's connect on
Copyright 2021 Plutolib.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.