-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
44 lines (40 loc) · 1.3 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
ext {
navigation_compose_version = "2.5.0"
smack_version = "4.4.6"
}
dependencies {
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.43.2'
classpath 'com.google.gms:google-services:4.3.15'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0"
}
repositories {
mavenCentral()
gradlePluginPortal()
google()
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.0.0' apply false
id 'com.android.library' version '8.0.0' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
id 'org.jetbrains.kotlin.jvm' version '1.8.0' apply false
id 'com.google.devtools.ksp' version '1.8.10-1.0.9' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs += ['-Xlint:deprecation', '-Xlint:unchecked']
}
tasks.withType(KotlinCompile) {
kotlinOptions.allWarningsAsErrors = true
}
static def gitVersion() {
Process process = "git rev-list --count HEAD".execute()
process.waitFor()
return process.getText().toInteger()
}