forked from opencloud-eu/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (59 loc) · 1.9 KB
/
build.gradle
File metadata and controls
72 lines (59 loc) · 1.9 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'com.google.devtools.ksp'
apply plugin: 'kotlin-parcelize'
dependencies {
api 'com.squareup.okhttp3:okhttp:4.9.2'
implementation libs.kotlin.stdlib
api 'com.github.opencloud-eu:android-dav:oc_support_2.1.5'
// Androidx
implementation libs.androidx.core.ktx
implementation libs.androidx.lifecycle.livedata.ktx
implementation libs.androidx.annotation
// Moshi
implementation(libs.moshi.kotlin) {
exclude module: "kotlin-reflect"
}
implementation 'org.apache.commons:commons-lang3:3.12.0'
ksp libs.moshi.kotlin.codegen
// Timber
implementation libs.timber
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.robolectric:robolectric:4.15.1'
// MockWebServer for HTTP integration tests
testImplementation 'com.squareup.okhttp3:mockwebserver:4.9.2'
testImplementation 'com.squareup.okhttp3:okhttp-tls:4.9.2'
// AndroidX test core to obtain application context in unit tests
testImplementation 'androidx.test:core:1.5.0'
debugImplementation 'com.facebook.stetho:stetho-okhttp3:1.6.0'
// Detekt
detektPlugins libs.detekt.formatting
detektPlugins libs.detekt.libraries
}
android {
compileSdkVersion sdkCompileVersion
defaultConfig {
minSdkVersion sdkMinVersion
targetSdkVersion sdkTargetVersion
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_17.toString()
}
lint {
abortOnError false
ignoreWarnings true
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
namespace 'eu.opencloud.android.lib'
}
tasks.withType(io.gitlab.arturbosch.detekt.Detekt).configureEach {
jvmTarget = "17"
}