forked from GetStream/stream-chat-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (75 loc) · 2.83 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
import io.getstream.chat.android.Configuration
import io.getstream.chat.android.Dependencies
import io.getstream.chat.android.Versions
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-parcelize'
apply plugin: "de.mannodermaus.android-junit5"
ext {
PUBLISH_GROUP_ID = Configuration.artifactGroup
PUBLISH_ARTIFACT_ID = 'stream-chat-android-compose'
PUBLISH_VERSION = rootVersionName
}
apply from: "${rootDir}/scripts/publish-module.gradle"
apply from: "${rootDir}/scripts/android.gradle"
apply from: "${rootDir}/scripts/detekt-compose.gradle"
android {
defaultConfig {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}
resourcePrefix 'stream_compose_'
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion Versions.COMPOSE_COMPILER
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += [
'-progressive',
'-Xexplicit-api=strict',
'-Xopt-in=io.getstream.chat.android.core.internal.InternalStreamChatApi',
'-Xopt-in=io.getstream.chat.android.core.ExperimentalStreamChatApi',
'-Xopt-in=kotlin.RequiresOptIn',
]
}
}
dependencies {
api project(':stream-chat-android-ui-common')
implementation project(":stream-chat-android-ui-utils")
implementation Dependencies.androidxAppCompat
// Compose
implementation Dependencies.composeCompiler
implementation Dependencies.composeUi
implementation Dependencies.composeUiTooling
implementation Dependencies.composeFoundation
implementation Dependencies.composeMaterial
implementation Dependencies.composeActivity
implementation Dependencies.composeViewModel
implementation Dependencies.composeAccompanistPermissions
implementation Dependencies.composeAccompanistPager
implementation Dependencies.composeAccompanistSystemUiController
// Coil
implementation Dependencies.composeCoil
implementation Dependencies.coilGif
implementation Dependencies.coilVideo
// Tests
testImplementation project(':stream-chat-android-test')
testImplementation Dependencies.junitJupiterApi
testImplementation Dependencies.junitJupiterParams
testRuntimeOnly Dependencies.junitJupiterEngine
testRuntimeOnly Dependencies.junitVintageEngine
testImplementation Dependencies.kluent
testImplementation Dependencies.mockito
testImplementation Dependencies.mockitoKotlin
detektPlugins(Dependencies.detektFormatting)
}