Skip to content

Commit 025dca0

Browse files
committed
修复小米等机型杀进程导致无法发出请求的bug
1 parent 4006a55 commit 025dca0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ allprojects {
4444

4545
```
4646
dependencies {
47-
implementation 'com.github.BolexLiu:AutoEx:v1.0.0'
47+
implementation 'com.github.BolexLiu:AutoEx:v1.0.1'
4848
}
4949
```
5050

5151
- 3.Application初始化一行搞定
5252

5353
```java
54-
AutoEx.apply(this);
54+
if (BuildConfig.DEBUG){AutoEx.apply(this);}
5555
```
5656

5757

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.bolex.test;
22

3-
import com.bolex.autoEx.AutoEx;
3+
import com.bolex.autoEx.*;
4+
import com.bolex.autoEx.BuildConfig;
45

56
/**
67
* Created by Bolex on 2018/4/30.
@@ -9,7 +10,7 @@
910
public class Application extends android.app.Application {
1011
@Override
1112
public void onCreate() {
12-
AutoEx.apply(this);
13+
if (BuildConfig.DEBUG){AutoEx.apply(this);}
1314
super.onCreate();
1415
}
1516
}

0 commit comments

Comments
 (0)