-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
77 lines (67 loc) · 2.38 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
import io.customer.android.Dependencies
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'binary-compatibility-validator'
apply plugin: 'org.jetbrains.dokka'
buildscript {
repositories {
google()
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
dependencies {
classpath Dependencies.androidGradlePlugin
classpath Dependencies.kotlinGradlePlugin
classpath Dependencies.kotlinSerialization
classpath Dependencies.kotlinBinaryValidator
classpath Dependencies.gradleNexusPublishPlugin
classpath Dependencies.dokka
// if you have a Gradle plugin dependency in the classpath of the root project,
// it will not be added to all modules even if they don't need it.
// Gradle will only add the plugin to modules that explicitly declare a dependency on it.
// needed for hilt in kotlin sample app
classpath Dependencies.hiltGradlePlugin
classpath Dependencies.googleServicesPlugin
// APKScale plugin to track binary size of the SDK
classpath Dependencies.apkScale
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apiValidation {
ignoredPackages += [
'io/customer/base/extenstions',
'io/customer/sdk/api',
'io/customer/sdk/data/store',
'io/customer/sdk/queue',
'io/customer/sdk/extensions',
'io/customer/sdk/util',
]
ignoredProjects += [
'common-test',
'base',
'kotlin_compose',
'java_layout',
]
nonPublicMarkers += [
'io.customer.base.internal.InternalCustomerIOApi',
]
/**
* Classes (fully qualified) that are excluded from public API dumps even if they
* contain public API.
*/
ignoredClasses.add("io.customer.messagingpush.BuildConfig")
ignoredClasses.add("io.customer.messaginginapp.BuildConfig")
ignoredClasses.add("io.customer.sdk.BuildConfig")
}
apply from: "${rootDir}/scripts/publish-root.gradle"
apply from: "${rootDir}/scripts/sdk-binary-size.gradle"