forked from GetStream/stream-chat-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
118 lines (100 loc) · 3.59 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import io.getstream.chat.android.Dependencies
import io.getstream.chat.android.Configuration
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'de.mannodermaus.android-junit5'
apply plugin: 'org.jlleitschuh.gradle.ktlint'
ext {
PUBLISH_GROUP_ID = Configuration.artifactGroup
PUBLISH_ARTIFACT_ID = 'stream-chat-android-offline'
PUBLISH_VERSION = rootVersionName
}
apply from: "${rootDir}/scripts/publish-module.gradle"
apply from: "${rootDir}/scripts/android.gradle"
android {
defaultConfig {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
testOptions.unitTests {
includeAndroidResources = true
returnDefaultValues = true
all {
testLogging {
events 'failed', 'standardOut', 'standardError'
showExceptions true
showCauses true
showStackTraces true
exceptionFormat 'full'
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
testCoverageEnabled true
}
}
}
kapt {
arguments {
arg("room.incremental", "true")
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += [
'-progressive',
'-Xexplicit-api=strict',
'-Xopt-in=kotlin.RequiresOptIn',
'-Xopt-in=io.getstream.chat.android.core.internal.InternalStreamChatApi',
]
}
}
dependencies {
api project(":stream-chat-android-client")
// Kotlin
implementation Dependencies.kotlinReflect
implementation Dependencies.coroutinesCore
// Google libs
implementation Dependencies.androidxAppCompat
implementation Dependencies.androidxCoreKtx
implementation Dependencies.androidxLifecycleLiveDataKtx
implementation Dependencies.roomRuntime
implementation Dependencies.roomKtx
kapt Dependencies.roomCompiler
implementation Dependencies.workRuntimeKtx
// Serialization
implementation Dependencies.moshi
kapt Dependencies.moshiCodegen
// Tests
testImplementation project(":stream-chat-android-test")
testImplementation Dependencies.moshiKotlin
testImplementation Dependencies.junitJupiterApi
testImplementation Dependencies.junitJupiterParams
testRuntimeOnly Dependencies.junitJupiterEngine
testRuntimeOnly Dependencies.junitVintageEngine
testImplementation Dependencies.androidxTest
testImplementation Dependencies.androidxTestJunit
testImplementation Dependencies.androidxArchCoreTest
testImplementation Dependencies.androidxRecyclerview // for performance test
testImplementation Dependencies.roomTesting
testImplementation Dependencies.workTesting
testImplementation Dependencies.coroutinesTest
testImplementation Dependencies.robolectric
testImplementation Dependencies.dotenv
testImplementation Dependencies.kfixture
testImplementation Dependencies.kluent
testImplementation Dependencies.mockito
testImplementation Dependencies.mockitoKotlin
// Instrumentation tests
androidTestImplementation Dependencies.androidxTestJunit
androidTestImplementation Dependencies.espressoCore
androidTestImplementation Dependencies.junit4
androidTestImplementation Dependencies.kluent
androidTestImplementation Dependencies.mockito
androidTestImplementation Dependencies.mockitoKotlin
}