Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.whataa:pandora:2.1.0'
}
dependencies {
implementation("com.github.whataa:pandora:2.1.0")
}
<dependency>
<groupId>com.github.whataa</groupId>
<artifactId>pandora</artifactId>
<version>2.1.0</version>
</dependency>
libraryDependencies += "com.github.whataa" % "pandora" % "2.1.0"
:dependencies [[com.github.whataa/pandora "2.1.0"]]
EN | 中文
<p align=center> <img src="https://i.loli.net/2019/03/15/5c8b6158be01e.png" width=40%> </p> <p align=center> <a href="https://youtu.be/pP9jVcxKPsE"> <img src="https://img.shields.io/badge/demo-youtube-red.svg"> </a> <a href="https://jitpack.io/#whataa/pandora"> <img src="https://jitpack.io/v/whataa/pandora.svg"> </a> <a href="https://android-arsenal.com/api?level=14"> <img src="https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat"> </a> <a href="https://developer.android.com/index.html"> <img src="https://img.shields.io/badge/platform-android-brightgreen.svg"> </a> <a href="https://github.com/whataa/pandora-no-op/blob/master/LICENSE"> <img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg"> </a> <a href="https://travis-ci.org/whataa/pandora"> <img src="https://travis-ci.org/whataa/pandora.svg?branch=master"> </a> </p>Pandora is a tool box that allows you to inspect and modify what includes networks, databases, UIs, etc. directly in your application. It is suitable for rapid position of various problems in the development and testing stages.
Declare Jitpack repository and add dependencies:
// android-support
debugImplementation 'com.github.whataa:pandora:v${RELEASE}'
// or androidX
debugImplementation 'com.github.whataa:pandora:androidx_v${RELEASE}'
// No matter android-support or AndroidX
releaseImplementation 'com.github.whataa:pandora-no-op:v${RELEASE}'
(Optional)If your project use OKHttp as a network library, interceptor can be injected into OKhttp by pandora-plugin
:
// in your project's gradle
buildscript {
dependencies {
...
classpath 'com.github.whataa:pandora-plugin:1.0.0'
}
}
// in your app's gradle
apply plugin: 'com.android.application'
apply plugin: 'pandora-plugin'
Grant permission to "Overlay Windows" and shake your device.
Pandora was developed on the shoulders of giants. Thanks to the following open source projects or person:
Logo and Icon are produced by the designer Zularizal.
Inspired by Flipboard's open source iOS platform debugging tool FLEX;
Project database module ideas and part of the source code from Facebook's open source project stetho;
The idea of selecting views in the UI module of the project and part of the source code from eleme's open source project UETool;
The request API in the Demo module comes from jgilfelt's open source project chuck ;