Skip to content

Commit 53140a5

Browse files
Merge pull request #17 from comapi/dev
merge dev to master
2 parents 4a409dd + 1d12d6b commit 53140a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+883
-648
lines changed

COMAPI/build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@ buildscript {
44
repositories {
55
jcenter()
66
mavenCentral()
7+
maven {
8+
url 'https://maven.google.com/'
9+
name 'Google'
10+
}
711
}
812
dependencies {
913

10-
classpath 'com.android.tools.build:gradle:2.3.3'
14+
classpath 'com.android.tools.build:gradle:3.2.1'
1115

12-
classpath 'com.google.gms:google-services:3.1.1'
16+
classpath 'com.google.gms:google-services:4.0.1'
1317

1418
// For test coverage
1519
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.6.3"
1620
classpath 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.1'
1721

18-
classpath 'me.tatarka:gradle-retrolambda:3.2.4'
22+
classpath 'me.tatarka:gradle-retrolambda:3.7.0'
1923
}
2024
}
2125

@@ -27,16 +31,12 @@ allprojects {
2731
url 'http://clojars.org/repo'
2832
}
2933
maven {
30-
url 'https://maven.google.com'
34+
url 'https://maven.google.com/'
35+
name 'Google'
3136
}
3237
}
3338
}
3439

3540
task clean(type: Delete) {
3641
delete rootProject.buildDir
37-
}
38-
39-
// Running 'gradle wrapper' will generate gradlew
40-
task wrapper(type: Wrapper) {
41-
gradleVersion = '3.4.1'
4242
}

COMAPI/foundation/build.gradle

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ apply from: 'version.gradle'
33
apply from: 'code_coverage.gradle'
44

55
android {
6-
compileSdkVersion 26
7-
buildToolsVersion '26.0.2'
6+
compileSdkVersion 28
7+
buildToolsVersion '28.0.3'
88

99
defaultConfig {
1010
minSdkVersion 16
11-
targetSdkVersion 26
11+
targetSdkVersion 28
1212
versionCode 3
1313
versionName foundationVersion
1414
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
@@ -37,31 +37,33 @@ android {
3737
}
3838

3939
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+
4342
/* 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'
5251
/* 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'
5655
/* 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+
6060
/*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+
6365
/*Sockets*/
64-
compile 'com.neovisionaries:nv-websocket-client:2.3'
66+
implementation 'com.neovisionaries:nv-websocket-client:2.3'
6567
}
6668

6769
/*
@@ -83,6 +85,11 @@ def localReleaseDest = "${buildDir}/release/${version}"
8385
task androidJavadocs(type: Javadoc, overwrite: true) {
8486
source = android.sourceSets.main.java.srcDirs
8587
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
8693
}
8794

8895
task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
@@ -185,9 +192,4 @@ generateRelease.dependsOn(zipRelease)
185192
artifacts {
186193
archives androidSourcesJar
187194
archives androidJavadocsJar
188-
}
189-
190-
apply plugin: 'me.tatarka.retrolambda'
191-
retrolambda {
192-
javaVersion JavaVersion.VERSION_1_7
193195
}

COMAPI/foundation/code_coverage.gradle

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,15 @@ task jacocoTestReport(type: JacocoReport, dependsOn: "testDebugUnitTest") {
6969
classesPath = 'foundation/build/intermediates/classes/debug'
7070
}
7171

72-
new File(classesPath).eachFileRecurse { file ->
73-
if (file.name.contains('$$')) {
74-
def oldPath = file.path
75-
def newPath = oldPath.replace('$$', '$')
76-
file.renameTo(newPath)
77-
renamedFilesMap[newPath] = oldPath
72+
File dir = new File(classesPath)
73+
if (dir.exists()) {
74+
dir.eachFileRecurse { file ->
75+
if (file.name.contains('$$')) {
76+
def oldPath = file.path
77+
def newPath = oldPath.replace('$$', '$')
78+
file.renameTo(newPath)
79+
renamedFilesMap[newPath] = oldPath
80+
}
7881
}
7982
}
8083
}

COMAPI/foundation/src/build.gradle

Lines changed: 0 additions & 198 deletions
This file was deleted.

0 commit comments

Comments
 (0)