-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
44 lines (39 loc) · 1.26 KB
/
build.gradle.kts
File metadata and controls
44 lines (39 loc) · 1.26 KB
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 com.android.build.gradle.BaseExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
// Needed until we upstream
buildscript {
dependencies {
classpath("io.realm:realm-gradle-plugin:10.19.0")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.5.2")
}
}
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.google.services) apply false
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
subprojects {
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "17"
}
plugins.withId("com.android.application") {
extensions.configure(BaseExtension::class.java) {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
}
plugins.withId("com.android.library") {
extensions.configure(BaseExtension::class.java) {
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
}
}