forked from lneugebauer/nextcloud-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (48 loc) · 1.71 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
aboutlibs_version = '10.9.1'
accompanist_version = '0.30.1'
acra_version = '5.11.2'
compose_compiler_version = '1.5.3'
compose_destinations_version = '1.9.53'
compose_settings_version = '1.0.2'
hilt_version = '2.48'
kotlin_version = '1.9.10'
ksp_version = '1.0.13'
retrofit_version = '2.9.0'
store_version = '4.0.5'
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'com.google.devtools.ksp' version "$kotlin_version-$ksp_version"
id "com.mikepenz.aboutlibraries.plugin" version "$aboutlibs_version"
}
// https://stackoverflow.com/a/70217715
// https://kotlinlang.org/docs/opt-in-requirements.html
allprojects {
tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
freeCompilerArgs += [
"-opt-in=androidx.compose.animation.ExperimentalAnimationApi",
"-opt-in=androidx.compose.material.ExperimentalLayoutApi",
"-opt-in=androidx.compose.material.ExperimentalMaterialApi",
]
}
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}