forked from GetStream/stream-chat-android
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (83 loc) · 2.89 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
import io.getstream.chat.android.Dependencies
import io.getstream.chat.android.command.unittest.plugin.UnitTestsPlugin
apply plugin: "com.github.ben-manes.versions"
apply plugin: "org.jlleitschuh.gradle.ktlint"
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'binary-compatibility-validator'
apply plugin: 'org.jetbrains.dokka'
apply from: "${rootDir}/scripts/sample-app-versioner.gradle"
apply plugin: UnitTestsPlugin
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
google()
mavenCentral()
maven {
url 'https://developer.huawei.com/repo/'
content {
includeGroup("com.huawei.agconnect")
}
}
}
dependencies {
classpath Dependencies.androidGradlePlugin
classpath Dependencies.kotlinGradlePlugin
classpath Dependencies.googleServicesPlugin
classpath Dependencies.androidJunit5GradlePlugin
classpath Dependencies.gitversionerPlugin
classpath Dependencies.firebaseCrashlyticsPlugin
classpath Dependencies.ktlintPlugin
classpath Dependencies.gradleVersionsPlugin
classpath Dependencies.navigationSafeArgsGradlePlugin
classpath Dependencies.gradleNexusPublishPlugin
classpath Dependencies.dokka
classpath Dependencies.kotlinBinaryValidator
classpath Dependencies.huaweiPlugin
classpath Dependencies.shot
}
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://jitpack.io"
content {
includeModule("com.github.chrisbanes", "PhotoView")
includeModule("com.github.duanhong169", "drawabletoolbox")
// https://github.com/brianwernick/ExoMedia/issues/723
includeModule("com.github.brianwernick", "ExoMedia")
// https://github.com/stfalcon-studio/StfalconImageViewer/issues/69
includeModule("com.github.stfalcon-studio", "StfalconImageViewer")
}
}
}
}
unitTestDebugScript {
outputPath = "unit-tests-command.sh"
}
task clean(type: Delete) {
delete rootProject.buildDir
}
dependencyUpdates {
rejectVersionIf {
Dependencies.isStable(it.currentVersion) && Dependencies.isNonStable(it.candidate.version)
}
}
apiValidation {
ignoredPackages += [
'com/getstream/sdk/chat/databinding',
'io/getstream/chat/android/ui/databinding',
]
ignoredProjects += [
'stream-chat-android-docs',
'stream-chat-android-sample',
'stream-chat-android-ui-components-sample',
'stream-chat-android-test',
'stream-chat-android-compose-sample',
]
nonPublicMarkers += [
'io.getstream.chat.android.core.internal.InternalStreamChatApi',
]
}
apply from: "${rootDir}/scripts/publish-root.gradle"