-
-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathbuild.gradle
39 lines (32 loc) · 1.25 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'com.adarshr.test-logger'
id 'jacoco'
}
android {
defaultConfig {
namespace 'com.trynoice.api.client'
consumerProguardFiles 'retrofit2.pro', 'gson.pro'
}
buildFeatures {
buildConfig true
}
}
dependencies {
// TODO: pin okhttp to a stable version. 5.x is needed for this fix:
// https://github.com/square/okhttp/issues/6258
def okhttpVersion = '5.0.0-alpha.12'
def retrofitVersion = '2.9.0'
api "com.squareup.okhttp3:okhttp:$okhttpVersion"
api "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "androidx.core:core-ktx:$deps.androidXCoreVersion"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttpVersion"
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$deps.coroutinesVersion"
testImplementation "androidx.test:core:$deps.testCoreVersion"
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttpVersion"
testImplementation "junit:junit:$deps.junitVersion"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$deps.coroutinesVersion"
testImplementation "org.robolectric:robolectric:$deps.robolectricVersion"
}