Skip to content

Commit 7380a74

Browse files
author
linjiang
committed
fix #2, #3 and update README
1 parent 12a40c0 commit 7380a74

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The display pictures are: network, database, UI, file
3131

3232
![image](https://note.youdao.com/yws/api/personal/file/WEB46cceded39144f21327bbc113938eb42?method=download&shareKey=6a7a0a7e863a4c75a5f62fcd62d5092a) ![image](https://note.youdao.com/yws/api/personal/file/WEB710b73c107e189afab614b00428b4f7a?method=download&shareKey=d53c1f09302225d6aa293ae023f40d13)
3333

34-
## Set-up [![Release](https://jitpack.io/v/whataa/pandora-no-op.svg)](https://jitpack.io/#whataa/pandora)
34+
## Set-up [![Release](https://jitpack.io/v/whataa/pandora.svg)](https://jitpack.io/#whataa/pandora)
3535

3636
1. Add the JitPack repository to your root build file:
3737
```
@@ -46,8 +46,8 @@ allprojects {
4646
```
4747
dependencies {
4848
...
49-
debugImplementation 'com.github.whataa:pandora:v1.0.0'
50-
releaseImplementation 'com.github.whataa:pandora-no-op:v1.0.0'
49+
debugImplementation 'com.github.whataa:pandora:v1.0.1'
50+
releaseImplementation 'com.github.whataa:pandora-no-op:v1.0.1'
5151
}
5252
```
5353

@@ -79,6 +79,8 @@ Pandora.get().close();
7979
```
8080

8181
If your project uses OKHttp as the underlying network library, you can add the following interceptor to enable the function of the network debugging module:
82+
83+
> Note: Please use Pandora as the last interceptor to prevent request-headers and request-params from getting;
8284
```
8385
new OkHttpClient.Builder()
8486
...

README_CN.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Pandora 是一款无需ROOT、可以直接在 **应用内** 查看和修改包
3030

3131

3232

33-
## 集成 [![Release](https://jitpack.io/v/whataa/pandora-no-op.svg)](https://jitpack.io/#whataa/pandora-no-op)
33+
## 集成 [![Release](https://jitpack.io/v/whataa/pandora.svg)](https://jitpack.io/#whataa/pandora)
3434

3535
1. 在root's build.gradle中加入Jitpack仓库:
3636
```
@@ -45,8 +45,8 @@ allprojects {
4545
```
4646
dependencies {
4747
...
48-
debugImplementation 'com.github.whataa:pandora:v1.0.0'
49-
releaseImplementation 'com.github.whataa:pandora-no-op:v1.0.0'
48+
debugImplementation 'com.github.whataa:pandora:v1.0.1'
49+
releaseImplementation 'com.github.whataa:pandora-no-op:v1.0.1'
5050
}
5151
```
5252

@@ -78,6 +78,9 @@ Pandora.get().close();
7878
```
7979

8080
如果你的项目中使用了OKHttp作为底层网络库,可以为其添加以下拦截器开启网络调试模块的功能:
81+
82+
> 注意:请将Pandora作为最后一个拦截器,以防request-headers, request-params获取不到;
83+
8184
```
8285
new OkHttpClient.Builder()
8386
...

pandora-core/src/main/java/tech/linjiang/pandora/ui/Dispatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class Dispatcher extends AppCompatActivity implements UIStateCallback {
3636
public static void start(Context context, @Type int type) {
3737
Intent intent = new Intent(context, Dispatcher.class)
3838
.putExtra(PARAM1, type);
39-
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
39+
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
4040
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
4141
}
4242
context.startActivity(intent);

0 commit comments

Comments
 (0)