-
Notifications
You must be signed in to change notification settings - Fork 41
/
settings.gradle.kts
89 lines (81 loc) · 2.75 KB
/
settings.gradle.kts
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
@file:Suppress("UnstableApiUsage")
import com.github.burrunan.s3cache.AwsS3BuildCache
pluginManagement {
includeBuild("build-logic")
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven(url = "https://plugins.gradle.org/m2/")
}
}
plugins {
id("com.gradle.enterprise").version("3.17.4")
id("com.github.burrunan.s3-build-cache").version("1.2")
}
rootProject.name = "stream-video-android"
// Sample apps
include(":demo-app")
// SDK
include(":benchmark")
include(":stream-video-android-core")
include(":stream-video-android-ui-core")
include(":stream-video-android-ui-xml")
include(":stream-video-android-ui-compose")
include(":stream-video-android-filters-video")
include(":stream-video-android-previewdata")
include(":stream-video-android-bom")
// Tutorials
include(":tutorials:tutorial-video")
include(":tutorials:tutorial-audio")
include(":tutorials:tutorial-livestream")
include(":tutorials:tutorial-ringing")
buildCache {
local {
isEnabled = !System.getenv().containsKey("CI")
removeUnusedEntriesAfterDays = 7
}
val localProperties = java.util.Properties()
val file = File("local.properties")
if (file.exists()) {
file.inputStream().use { localProperties.load(it) }
}
val streamAWSRegion = (localProperties["buildCache.AWSRegion"] as? String)
?: System.getenv("BUILD_CACHE_AWS_REGION") ?: ""
val streamAWSBucket = (localProperties["buildCache.AWSBucket"] as? String)
?: System.getenv("BUILD_CACHE_AWS_BUCKET") ?: ""
val streamAWSAccessKeyId = (localProperties["buildCache.AWSAccessKeyId"] as? String)
?: System.getenv("BUILD_CACHE_AWS_ACCESS_KEY_ID") ?: ""
val streamAWSSecretKey = (localProperties["buildCache.AWSSecretKey"] as? String)
?: System.getenv("BUILD_CACHE_AWS_SECRET_KEY") ?: ""
val streamBuildCacheDisabled =
(localProperties.get("buildCache.disabled") as? String).toBoolean()
if (!streamBuildCacheDisabled &&
streamAWSRegion.isNotBlank() &&
streamAWSBucket.isNotBlank() &&
streamAWSAccessKeyId.isNotBlank() &&
streamAWSSecretKey.isNotBlank()
) {
remote(AwsS3BuildCache::class.java) {
region = streamAWSRegion
bucket = streamAWSBucket
prefix = "cache/"
awsAccessKeyId = streamAWSAccessKeyId
awsSecretKey = streamAWSSecretKey
isPush = System.getenv().containsKey("CI")
}
}
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}