File tree Expand file tree Collapse file tree 4 files changed +21
-24
lines changed
src/main/java/com/chad/baserecyclerviewadapterhelper Expand file tree Collapse file tree 4 files changed +21
-24
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 25
5
- buildToolsVersion ' 25 .0.2'
4
+ compileSdkVersion 26
5
+ buildToolsVersion ' 26 .0.2'
6
6
7
7
defaultConfig {
8
8
applicationId " com.chad.baserecyclerviewadapterhelper"
9
9
minSdkVersion 14
10
- targetSdkVersion 25
10
+ targetSdkVersion 26
11
11
versionCode 5
12
12
versionName " 2.1"
13
13
}
@@ -29,9 +29,9 @@ dependencies {
29
29
compile project(path : ' :library' )
30
30
compile project(' :material-spinner-1.0.5' )
31
31
compile ' com.github.bumptech.glide:glide:3.7.0'
32
- compile ' com.android.support:design:25.2 .0'
33
- compile ' com.android.support:cardview-v7:25.2 .0'
34
- compile ' com.android.support:appcompat-v7:25.2 .0'
32
+ compile ' com.android.support:design:26.1 .0'
33
+ compile ' com.android.support:cardview-v7:26.1 .0'
34
+ compile ' com.android.support:appcompat-v7:26.1 .0'
35
35
compile ' com.kyleduo.switchbutton:library:1.4.4'
36
- compile ' com.orhanobut:logger:1.15 '
36
+ compile ' com.orhanobut:logger:2.1.1 '
37
37
}
Original file line number Diff line number Diff line change 17
17
import android .app .Application ;
18
18
19
19
import com .chad .baserecyclerviewadapterhelper .util .Utils ;
20
- import com .orhanobut .logger .LogLevel ;
20
+ import com .orhanobut .logger .AndroidLogAdapter ;
21
21
import com .orhanobut .logger .Logger ;
22
22
23
23
/**
@@ -38,15 +38,10 @@ public static MyApplication getInstance() {
38
38
@ Override
39
39
public void onCreate () {
40
40
super .onCreate ();
41
- appContext =this ;
41
+ appContext = this ;
42
42
Utils .init (this );
43
43
if (BuildConfig .DEBUG ) {
44
- Logger
45
- .init ("BaseRecyclerViewAdapter" ) // default PRETTYLOGGER or use just init()
46
- .methodCount (3 ) // default 2
47
- .logLevel (LogLevel .FULL ) // default LogLevel.FULL
48
- .methodOffset (2 ) // default 0
49
- ; //default AndroidLogAdapter
44
+ Logger .addLogAdapter (new AndroidLogAdapter ());
50
45
51
46
52
47
}
Original file line number Diff line number Diff line change 1
1
buildscript {
2
2
repositories {
3
3
jcenter()
4
+ google()
4
5
mavenLocal()
5
6
mavenCentral()
6
7
7
8
}
8
9
dependencies {
9
- classpath ' com.android.tools.build:gradle:2.3.3 '
10
+ classpath ' com.android.tools.build:gradle:3.0.0 '
10
11
}
11
12
}
12
13
13
14
allprojects {
14
- repositories {
15
- jcenter()
16
- mavenCentral ()
17
- }
15
+ repositories {
16
+ jcenter()
17
+ google ()
18
+ mavenCentral()
18
19
}
20
+ }
19
21
20
22
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
android {
3
- compileSdkVersion 25
4
- buildToolsVersion " 25 .0.2"
3
+ compileSdkVersion 26
4
+ buildToolsVersion " 26 .0.2"
5
5
6
6
defaultConfig {
7
7
minSdkVersion 11
8
- targetSdkVersion 23
8
+ targetSdkVersion 26
9
9
versionCode 1
10
10
versionName " 1.0"
11
11
}
@@ -49,5 +49,5 @@ artifacts {
49
49
dependencies {
50
50
51
51
compile fileTree(include : [' *.jar' ], dir : ' libs' )
52
- provided ' com.android.support:recyclerview-v7:25.2 .0'
52
+ provided ' com.android.support:recyclerview-v7:26.1 .0'
53
53
}
You can’t perform that action at this time.
0 commit comments