1
1
group = ' com.spoonacular'
2
- project. version = ' 1.0 '
2
+ project. version = ' 1.1 '
3
3
4
4
buildscript {
5
5
repositories {
6
- mavenCentral()
6
+ mavenLocal()
7
+ google()
8
+ maven {
9
+ url ' https://dl.google.com/dl/android/maven2'
10
+ }
7
11
jcenter()
8
12
}
9
13
dependencies {
10
- classpath ' com.android.tools.build:gradle:2.3 .+'
14
+ classpath ' com.android.tools.build:gradle:3.2 .+'
11
15
classpath ' com.github.dcendents:android-maven-gradle-plugin:1.5'
12
16
}
13
17
}
14
18
15
19
allprojects {
16
20
repositories {
21
+ google()
17
22
jcenter()
18
23
}
19
24
}
@@ -23,51 +28,52 @@ apply plugin: 'com.android.library'
23
28
apply plugin : ' com.github.dcendents.android-maven'
24
29
25
30
android {
26
- compileSdkVersion 25
27
- buildToolsVersion ' 25.0.2'
28
- useLibrary ' org.apache.http.legacy'
31
+ compileSdkVersion 26
32
+ buildToolsVersion ' 28.0.3'
29
33
defaultConfig {
30
34
minSdkVersion 14
31
- targetSdkVersion 25
35
+ targetSdkVersion 26
32
36
}
33
37
compileOptions {
34
- sourceCompatibility JavaVersion . VERSION_1_7
35
- targetCompatibility JavaVersion . VERSION_1_7
38
+ sourceCompatibility JavaVersion . VERSION_1_8
39
+ targetCompatibility JavaVersion . VERSION_1_8
40
+ }
41
+ lintOptions {
42
+ abortOnError false
36
43
}
37
44
38
45
// Rename the aar correctly
39
46
libraryVariants. all { variant ->
40
- variant. outputs. each { output ->
41
- def outputFile = output. outputFile
42
- if (outputFile != null && outputFile. name. endsWith(' .aar' )) {
43
- def fileName = " ${ project.name} -${ variant.baseName} -${ version} .aar"
44
- output. outputFile = new File (outputFile. parent, fileName)
47
+ variant. outputs. all { output ->
48
+ if (outputFile != null && outputFileName. endsWith(' .aar' )) {
49
+ outputFileName = " ${ archivesBaseName} -${ version} .aar"
45
50
}
46
51
}
47
52
}
48
- }
49
53
54
+ testOptions {
55
+ unitTests. returnDefaultValues = true
56
+ }
57
+ }
50
58
51
59
ext {
52
- swagger_annotations_version = " 1.5.0"
53
- gson_version = " 2.3.1"
54
- httpclient_version = " 4.5.2"
55
- httpcore_version = " 4.4.4"
56
- junit_version = " 4.12"
60
+ swagger_annotations_version = " 1.6.6"
61
+ gson_version = " 2.8.9"
62
+ httpmime_version = " 4.5.13"
63
+ volley_version = " 1.2.1"
64
+ junit_version = " 4.13.2"
65
+ robolectric_version = " 4.5.1"
66
+ concurrent_unit_version = " 0.4.6"
57
67
}
58
68
59
69
dependencies {
60
- compile " io.swagger:swagger-annotations:$swagger_annotations_version "
61
- compile " com.google.code.gson:gson:$gson_version "
62
- compile " org.apache.httpcomponents:httpcore:$httpcore_version "
63
- compile " org.apache.httpcomponents:httpclient:$httpclient_version "
64
- compile (" org.apache.httpcomponents:httpcore:$httpcore_version " ) {
65
- exclude(group : ' org.apache.httpcomponents' , module : ' httpclient' )
66
- }
67
- compile (" org.apache.httpcomponents:httpmime:$httpclient_version " ) {
68
- exclude(group : ' org.apache.httpcomponents' , module : ' httpclient' )
69
- }
70
- testCompile " junit:junit:$junit_version "
70
+ implementation " io.swagger:swagger-annotations:$swagger_annotations_version "
71
+ implementation " com.google.code.gson:gson:$gson_version "
72
+ implementation " org.apache.httpcomponents:httpmime:$httpmime_version "
73
+ implementation " com.android.volley:volley:${ volley_version} "
74
+ testImplementation " junit:junit:$junit_version "
75
+ testImplementation " org.robolectric:robolectric:${ robolectric_version} "
76
+ testImplementation " net.jodah:concurrentunit:${ concurrent_unit_version} "
71
77
}
72
78
73
79
afterEvaluate {
0 commit comments