-
-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathbuild.gradle
More file actions
75 lines (68 loc) · 2.74 KB
/
Copy pathbuild.gradle
File metadata and controls
75 lines (68 loc) · 2.74 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
maven { url = "https://plugins.gradle.org/m2/" }
maven { url = 'https://jitpack.io' }
}
dependencies {
classpath libs.android.gradlePlugin
classpath libs.google.services
classpath libs.firebase.crashlytics.gradle
classpath libs.kotlin.gradlePlugin
classpath libs.kotlin.compose.compiler.gradlePlugin
classpath libs.kotlin.serialization.gradlePlugin
classpath libs.roborazzi.gradlePlugin
classpath libs.ktlint.gradle
classpath libs.spotless.gradle
classpath libs.detekt.gradlePlugin
classpath libs.ksp.gradlePlugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
subprojects {
ext {
// Keys properties - these still need to be loaded from treetracker.keys.properties
s3_production_identity_pool_id = "configure in treetracker.keys.properties"
prod_treetracker_client_id = "configure in treetracker.keys.properties"
prod_treetracker_client_secret = "configure in treetracker.keys.properties"
s3_test_identity_pool_id = "configure in treetracker.keys.properties"
test_treetracker_client_id = "configure in treetracker.keys.properties"
test_treetracker_client_secret = "configure in treetracker.keys.properties"
s3_dev_identity_pool_id = "configure in treetracker.keys.properties"
dev_treetracker_client_id = "configure in treetracker.keys.properties"
dev_treetracker_client_secret = "configure in treetracker.keys.properties"
treetracker_client_id = "configure in treetracker.keys.properties"
treetracker_client_secret = "configure in treetracker.keys.properties"
}
apply plugin : 'org.jlleitschuh.gradle.ktlint'
ktlint {
android.set(true)
verbose.set(true)
filter {
exclude { element -> element.file.path.contains("generated/") }
}
}
apply plugin : "io.gitlab.arturbosch.detekt"
detekt {
config = files("${project.rootDir}/detekt.yml")
parallel = true
buildUponDefaultConfig = true
}
apply plugin : "com.diffplug.spotless"
spotless {
kotlin {
target("**/*.kt")
targetExclude("${project.rootDir}/build-logic/**/*.kt")
licenseHeaderFile(
rootProject.file("${project.rootDir}/spotless/copyright.kt"),
"^(package|object|import|interface)"
)
}
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}