androidPluto/pluto
소개
Android Pluto는 Android 앱을 위한 온디바이스 디버깅 프레임워크입니다. 네트워크 호출을 가로채고, 크래시와 ANR을 기록하며, 앱 데이터를 실시간으로 조작하는 등 다양한 기능을 제공합니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAndroid Pluto
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.
🖇 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 app module.
Note: add both the
plutoand thepluto-no-opvariant to isolate Pluto from release builds.
def plutoVersion = "3.0.0"
dependencies {
....
debugImplementation "com.androidpluto:pluto:$plutoVersion"
releaseImplementation "com.androidpluto:pluto-no-op:$plutoVersion"
....
}
Initialize Pluto
Now to start using Pluto, initialize Pluto SDK from you application class by passing context to it.
Pluto.Installer(this)
.addPlugin(....)
.install()
Install plugins
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.androidpluto.plugins:bundle-core:$plutoVersion"
releaseImplementation "com.androidpluto.plugins:bundle-core-no-op:$plutoVersion"
....
}
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.
Grouping Plugins (Optional)
Pluto now allows to group similar plugins together to have better readability & categorization.
To create a group, we need to override PluginGroup & attach Plugins to it. (We have taken the example of grouping datasource plugins together)
class DataSourcePluginGroup : PluginGroup("datasource-group") {
override fun getConfig() = PluginGroupConfiguration(
name = "DataSource Group"
)
override fun getPlugins() = listOf(
PlutoSharePreferencesPlugin(),
PlutoDatastorePreferencesPlugin(),
PlutoRoomsDatabasePlugin()
)
}
Then add the group to Plugin installer.
Pluto.Installer(this)
.addPluginGroup(DataSourcePluginGroup())
.install()
📝 Contribution
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
📃 License
Copyright 2021 Android Pluto.
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.
관련 프로젝트 살펴보기
불러오는 중…