-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
45 lines (37 loc) · 1.39 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
import com.storytel.buildsrc.Libs
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath Libs.androidGradlePlugin
classpath Libs.Kotlin.gradlePlugin
}
}
subprojects {
repositories {
google()
mavenCentral()
// Jetpack Compose SNAPSHOTs
if (!Libs.AndroidX.Compose.snapshot.isEmpty()) {
maven { url "https://androidx.dev/snapshots/builds/${Libs.AndroidX.Compose.snapshot}/artifacts/repository/" }
}
if (Libs.Accompanist.version.endsWith('SNAPSHOT')) {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
// Treat all Kotlin warnings as errors (disabled by default)
allWarningsAsErrors = project.hasProperty("warningsAsErrors") ? project.warningsAsErrors : false
freeCompilerArgs += '-opt-in=kotlin.RequiresOptIn'
// Enable experimental coroutines APIs, including Flow
freeCompilerArgs += '-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi'
freeCompilerArgs += '-opt-in=kotlinx.coroutines.FlowPreview'
freeCompilerArgs += '-opt-in=kotlin.Experimental'
// Set JVM target to 1.8
jvmTarget = "1.8"
}
}
}