-
Notifications
You must be signed in to change notification settings - Fork 278
/
build.gradle
107 lines (92 loc) · 3.37 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
import io.getstream.chat.android.Configuration
import io.getstream.chat.android.Dependencies
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: 'de.mannodermaus.android-junit5'
apply plugin: 'androidx.baselineprofile'
ext {
PUBLISH_GROUP_ID = Configuration.artifactGroup
PUBLISH_ARTIFACT_ID = 'stream-chat-android-ui-components'
PUBLISH_VERSION = rootVersionName
}
apply from: "${rootDir}/scripts/publish-module.gradle"
apply from: "${rootDir}/scripts/android.gradle"
android {
namespace "io.getstream.chat.android.ui"
defaultConfig {
vectorDrawables.useSupportLibrary = true
}
resourcePrefix 'stream_ui_'
buildFeatures {
viewBinding true
}
testOptions {
unitTests {
includeAndroidResources = true
unitTests.returnDefaultValues = true
// Show the result of every unit test, even if it passes.
all {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
}
}
}
sourceSets {
all {
it.java.srcDir "src/$it.name/kotlin"
}
}
}
baselineProfile {
baselineProfileOutputDir = "."
filter {
include("io.getstream.chat.android.ui.**")
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += [
'-progressive',
'-Xexplicit-api=strict',
'-opt-in=kotlin.contracts.ExperimentalContracts',
'-opt-in=io.getstream.chat.android.core.internal.InternalStreamChatApi',
'-opt-in=io.getstream.chat.android.core.ExperimentalStreamChatApi',
]
}
}
dependencies {
api project(":stream-chat-android-ui-common")
implementation project(":stream-chat-android-ui-utils")
implementation Dependencies.streamLog
implementation Dependencies.coroutinesCore
implementation Dependencies.androidxActivityKtx
implementation Dependencies.androidxAppCompat
implementation Dependencies.androidLegacySupport
implementation Dependencies.constraintLayout
implementation Dependencies.materialComponents
implementation Dependencies.androidxFragmentKtx
implementation Dependencies.androidxViewPager2
implementation Dependencies.androidxCoreKtx
implementation Dependencies.photoviewDialog
implementation Dependencies.coil
implementation Dependencies.coilGif
implementation Dependencies.coilVideo
implementation Dependencies.androidxStartup
implementation Dependencies.androidxLifecycleLiveDataKtx
implementation Dependencies.keyboardVisibilityEvent
implementation Dependencies.permissionx
// Tests
testImplementation project(":stream-chat-android-test")
testImplementation testFixtures(project(":stream-chat-android-core"))
testImplementation Dependencies.junitJupiterApi
testImplementation Dependencies.junitJupiterParams
testRuntimeOnly Dependencies.junitJupiterEngine
testRuntimeOnly Dependencies.junitVintageEngine
testImplementation Dependencies.kluent
testImplementation Dependencies.mockitoKotlin
testImplementation Dependencies.androidxArchCoreTest
detektPlugins(Dependencies.detektFormatting)
baselineProfile(project(":stream-chat-android-benchmark"))
}