-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (51 loc) · 1.93 KB
/
build.gradle.kts
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
buildscript {
repositories {
gradlePluginPortal()
google()
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21")
classpath("com.android.tools.build:gradle:7.4.0-alpha02")
classpath(Google.playServicesGradlePlugin)
classpath(Google.dagger.hilt.android.gradlePlugin)
classpath(Square.sqlDelight.gradlePlugin)
classpath(Firebase.crashlyticsGradlePlugin)
classpath("com.google.android.libraries.mapsplatform.secrets-gradle-plugin:secrets-gradle-plugin:2.0.1")
classpath("com.codingfeline.buildkonfig:buildkonfig-gradle-plugin:0.11.0")
}
}
plugins {
id("com.google.devtools.ksp") version "1.6.21-1.0.5"
}
allprojects {
repositories {
google()
mavenCentral()
maven { url = uri("https://jitpack.io") }
maven(url = "https://androidx.dev/snapshots/builds/7909927/artifacts/repository")
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).all {
kotlinOptions {
jvmTarget = "11"
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlin.OptIn",
"-Xopt-in=kotlinx.coroutines.FlowPreview",
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi",
"-Xopt-in=androidx.compose.foundation.ExperimentalFoundationApi",
"-Xopt-in=com.google.accompanist.pager.ExperimentalPagerApi",
"-Xopt-in=androidx.compose.material.ExperimentalMaterialApi",
"-Xopt-in=coil.annotation.ExperimentalCoilApi",
)
}
}
}
tasks.register("clean", Delete::class) {
rootProject.subprojects {
delete(buildDir)
}
delete(rootProject.buildDir)
}