@@ -3,12 +3,12 @@ apply from: 'version.gradle'
3
3
apply from : ' code_coverage.gradle'
4
4
5
5
android {
6
- compileSdkVersion 26
7
- buildToolsVersion ' 26 .0.2 '
6
+ compileSdkVersion 28
7
+ buildToolsVersion ' 28 .0.3 '
8
8
9
9
defaultConfig {
10
10
minSdkVersion 16
11
- targetSdkVersion 26
11
+ targetSdkVersion 28
12
12
versionCode 3
13
13
versionName foundationVersion
14
14
testInstrumentationRunner ' android.support.test.runner.AndroidJUnitRunner'
@@ -37,31 +37,33 @@ android {
37
37
}
38
38
39
39
dependencies {
40
- compile fileTree(include : [' *.jar' ], dir : ' libs' )
41
- /* Android */
42
- compile ' com.android.support:appcompat-v7:26.1.0'
40
+ implementation fileTree(include : [' *.jar' ], dir : ' libs' )
41
+
43
42
/* testing */
44
- testCompile ' junit:junit:4.12'
45
- androidTestCompile ' junit:junit:4.12'
46
- testCompile ' org.robolectric:robolectric:3.2 .2'
47
- testCompile ' org.robolectric:shadows-play-services:3.2 .2'
48
- testCompile ' org.robolectric:shadows-support-v4:3.2 .2'
49
- androidTestCompile ' com.android.support.test:runner:1.0.1 '
50
- androidTestCompile ' com.android.support.test:rules:1.0.1 '
51
- testCompile ' com.squareup.okhttp3:mockwebserver:3.9.0'
43
+ testImplementation ' junit:junit:4.12'
44
+ androidTestImplementation ' junit:junit:4.12'
45
+ testImplementation ' org.robolectric:robolectric:3.4 .2'
46
+ testImplementation ' org.robolectric:shadows-play-services:3.3 .2'
47
+ testImplementation ' org.robolectric:shadows-support-v4:3.3 .2'
48
+ androidTestImplementation ' com.android.support.test:runner:1.0.2 '
49
+ androidTestImplementation ' com.android.support.test:rules:1.0.2 '
50
+ testImplementation ' com.squareup.okhttp3:mockwebserver:3.9.0'
52
51
/* Rx */
53
- compile ' io.reactivex:rxjava:1.3.3'
54
- compile ' io.reactivex:rxandroid:1.2.1'
55
- compile ' com.squareup.retrofit2:adapter-rxjava:2.3.0'
52
+ implementation ' io.reactivex:rxjava:1.3.3'
53
+ implementation ' io.reactivex:rxandroid:1.2.1'
54
+ implementation ' com.squareup.retrofit2:adapter-rxjava:2.3.0'
56
55
/* Network */
57
- compile ' com.squareup.retrofit2:retrofit:2.3.0'
58
- compile ' com.squareup.retrofit2:converter-gson:2.3.0'
59
- compile ' com.squareup.okhttp3:logging-interceptor:3.6.0'
56
+ implementation ' com.squareup.retrofit2:retrofit:2.3.0'
57
+ implementation ' com.squareup.retrofit2:converter-gson:2.3.0'
58
+ implementation ' com.squareup.okhttp3:logging-interceptor:3.6.0'
59
+
60
60
/* FCM*/
61
- compile ' com.google.android.gms:play-services-base:11.6.2'
62
- compile ' com.google.firebase:firebase-messaging:11.6.2'
61
+ // noinspection GradleCompatible warning disabled (seems to be caused by internal firebase-messaging dependencies versioning)
62
+ implementation ' com.google.firebase:firebase-messaging:17.3.4'
63
+ implementation ' com.google.android.gms:play-services-base:16.1.0'
64
+
63
65
/* Sockets*/
64
- compile ' com.neovisionaries:nv-websocket-client:2.3'
66
+ implementation ' com.neovisionaries:nv-websocket-client:2.3'
65
67
}
66
68
67
69
/*
@@ -83,6 +85,11 @@ def localReleaseDest = "${buildDir}/release/${version}"
83
85
task androidJavadocs (type : Javadoc , overwrite : true ) {
84
86
source = android. sourceSets. main. java. srcDirs
85
87
classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
88
+ options. links(" http://docs.oracle.com/javase/7/docs/api/" )
89
+ options. linksOffline " http://d.android.com/reference" ," ${ android.sdkDirectory} /docs/reference"
90
+ exclude ' **/BuildConfig.java'
91
+ exclude ' **/R.java'
92
+ failOnError = false
86
93
}
87
94
88
95
task androidJavadocsJar (type : Jar , dependsOn : androidJavadocs) {
@@ -185,9 +192,4 @@ generateRelease.dependsOn(zipRelease)
185
192
artifacts {
186
193
archives androidSourcesJar
187
194
archives androidJavadocsJar
188
- }
189
-
190
- apply plugin : ' me.tatarka.retrolambda'
191
- retrolambda {
192
- javaVersion JavaVersion . VERSION_1_7
193
195
}
0 commit comments