-
-
Notifications
You must be signed in to change notification settings - Fork 141
/
Copy pathbuild.gradle
95 lines (75 loc) · 2.43 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'de.mannodermaus.android-junit5'
android {
def globalConfiguration = rootProject.extensions.getByName("ext")
compileSdkVersion globalConfiguration["androidCompileSdkVersion"]
buildToolsVersion globalConfiguration["androidBuildToolsVersion"]
defaultConfig {
minSdkVersion globalConfiguration["androidMinSdkVersion"]
targetSdkVersion globalConfiguration["androidTargetSdkVersion"]
buildConfigField 'int', 'VERSION_CODE', "${globalConfiguration["androidVersionCode"]}"
buildConfigField "String", "VERSION_NAME", "\"${globalConfiguration["androidVersionName"]}\""
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
packagingOptions {
jniLibs {
pickFirsts += ['META-INF/*']
}
resources {
pickFirsts += ['META-INF/*']
}
}
lint {
abortOnError false
ignoreWarnings true
quiet true
}
namespace 'org.cryptomator.util'
}
dependencies {
def dependencies = rootProject.ext.dependencies
// cryptomator
api dependencies.cryptolib
api dependencies.dagger
api dependencies.timber
api dependencies.appcompat
api dependencies.androidAnnotations
implementation dependencies.lruFileCache
implementation dependencies.androidxPreference
implementation dependencies.joseJwt
// test
androidTestImplementation dependencies.junitParams
androidTestImplementation dependencies.androidxTestCore
androidTestImplementation(dependencies.runner) {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation(dependencies.rules) {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation dependencies.mockitoAndroid
testImplementation dependencies.junit
testImplementation dependencies.junitApi
testRuntimeOnly dependencies.junitEngine
testImplementation dependencies.junitParams
testRuntimeOnly dependencies.junit4Engine
testImplementation dependencies.hamcrest
testImplementation dependencies.mockito
testImplementation dependencies.mockitoKotlin
testImplementation dependencies.mockitoInline
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
tasks.withType(Test) {
testLogging {
events "failed"
showExceptions true
exceptionFormat "full"
showCauses true
showStackTraces true
showStandardStreams = false
}
}