-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
79 lines (67 loc) · 2.04 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath libs.gp.androidGradle
classpath libs.gp.dependencyUpdates
classpath libs.gp.detekt
classpath libs.gp.firebaseCrashlytics
classpath libs.gp.googleServices
classpath libs.gp.kotlin.gradle
classpath libs.gp.kotlin.serialization
classpath libs.gp.snapshotPublisher
}
}
plugins {
id 'com.google.devtools.ksp' version libs.versions.ksp apply false
}
ext {
// App version
versionName = '0.0.1' // X.Y.Z; X = Major, Y = minor, Z = Patch level
moduleName = "Gong"
name = "Gong"
configPropertiesFile = file('config.properties') // All configurations are saved here
secretsPropertiesFile = file('secrets/keys.properties') // All secrets are saved here
def androidVersions = [:]
androidVersions.minSdk = 23
androidVersions.compileSdk = 34
androidVersions.buildTools = '34.0.0'
androidVersions.targetSdk = 34
ext.androidVersions = androidVersions
}
apply from: rootProject.file('scripts/dependency_updates.gradle')
apply from: rootProject.file('scripts/stop_ship_check_xmls.gradle.kts')
apply plugin: "io.gitlab.arturbosch.detekt"
dependencies {
detektPlugins libs.detekt.formatting
}
detekt {
autoCorrect = true
config = files("$rootDir/.detekt/detekt-config.yml")
input = files("app/src")
parallel = true
toolVersion = libs.versions.detekt.get()
}
allprojects {
repositories {
google()
mavenCentral()
gradlePluginPortal()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
task check() {
dependsOn("checkStopShipXmls")
}
// `./gradlew wrapper --gradle-version=[version]` uses the distribution type all
wrapper {
distributionType = Wrapper.DistributionType.ALL
}