-
-
Notifications
You must be signed in to change notification settings - Fork 87
/
build.gradle
91 lines (82 loc) · 3.22 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.9.24'
repositories {
google()
// jcenter()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
maven { url 'https://jitpack.io' }
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.2'
classpath 'com.google.gms:google-services:4.4.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.5.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.5.0"
classpath 'org.jlleitschuh.gradle:ktlint-gradle:11.0.0'
classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.18.0'
classpath 'io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.18.0-RC2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
apply plugin : "org.jlleitschuh.gradle.ktlint"
ktlint {
android.set(true)
verbose.set(true)
filter {
exclude { element -> element.file.path.contains("generated/") }
}
}
repositories {
google()
// jcenter()
mavenCentral()
maven {
url "https://maven.google.com" // Google's Maven repository
}
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url 'https://jitpack.io' }
}
ext {
compose_version = "1.1.1"
koin_version= "3.2.0-beta-1"
androidSupportVersion = '1.0.0'
retrofit2Version = '2.6.0'
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"
}
}
subprojects {
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
}