调试工具

Pandora 是一款无需ROOT、可以直接在 应用内 查看和修改包括网络、数据库、UI等的Android工具箱,适合开发和测试阶段的各种问题的快速定位。

功能

查看每条网络请求的详细日志,例如headers、response等;

查看自身应用的内部存储系统;

查看所有数据库,支持直接进行增删改查操作;

查看并编辑所有Shared Preference;

预览当前页面的视图层级、查看/修改常用控件的属性;

测量控件之间距离、检测是否对齐;

选中页面上的任意控件以移动位置、查看自身大小、显示相对关系;

更多功能期待大家探索;

部分效果如下:

展示图片依次为:网络、数据库、UI、文件

image image

image image

集成 Release

具体使用操作

在root’s build.gradle中加入Jitpack仓库:

allprojects {

repositories {

maven { url ‘https://jitpack.io’ }

}

}

在app’s build.gradle中(请使用最新版本):

dependencies {

debugImplementation ‘com.github.whataa:pandora:v1.0.1’

releaseImplementation ‘com.github.whataa:pandora-no-op:v1.0.1’

}

public class MyApp extends Application {

@Override

public void onCreate() {

super.onCreate();

Pandora.init(this).enableShakeOpen();

}

}

你可能感兴趣的:(调试工具)