File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
app/src/main/java/com/bolex/test Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,14 @@ allprojects {
44
44
45
45
```
46
46
dependencies {
47
- implementation 'com.github.BolexLiu:AutoEx:v1.0.0 '
47
+ implementation 'com.github.BolexLiu:AutoEx:v1.0.1 '
48
48
}
49
49
```
50
50
51
51
- 3.Application初始化一行搞定
52
52
53
53
``` java
54
- AutoEx . apply(this );
54
+ if ( BuildConfig . DEBUG ){ AutoEx . apply(this );}
55
55
```
56
56
57
57
Original file line number Diff line number Diff line change 1
1
package com .bolex .test ;
2
2
3
- import com .bolex .autoEx .AutoEx ;
3
+ import com .bolex .autoEx .*;
4
+ import com .bolex .autoEx .BuildConfig ;
4
5
5
6
/**
6
7
* Created by Bolex on 2018/4/30.
9
10
public class Application extends android .app .Application {
10
11
@ Override
11
12
public void onCreate () {
12
- AutoEx .apply (this );
13
+ if ( BuildConfig . DEBUG ){ AutoEx .apply (this );}
13
14
super .onCreate ();
14
15
}
15
16
}
You can’t perform that action at this time.
0 commit comments