-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
69 lines (59 loc) · 2.11 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.google.services) apply false
alias(libs.plugins.secrets.gradle.plugin) apply false
alias(libs.plugins.kotlin.android) apply false
}
subprojects {
afterEvaluate {
if (plugins.hasPlugin("com.android.library") ||
plugins.hasPlugin("com.android.application")) {
android {
compileSdk = 35
buildToolsVersion = "35.0.1"
ndkVersion = "27.2.12479018"
lint {
checkReleaseBuilds = false
disable = [
'MissingTranslation',
'ExtraTranslation',
'BlockedPrivateApi'
]
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
coreLibraryDesugaringEnabled = true
}
/*tasks.withType(KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = '21'
languageVersion = '2.0'
useDaemonFallbackStrategy = true
freeCompilerArgs += ['-opt-in=kotlin.RequiresOptIn']
}
}*/
defaultConfig {
minSdk = 21
//noinspection OldTargetApi
targetSdk = 34
}
buildTypes {
play {
initWith(buildTypes.release)
}
}
buildFeatures {
buildConfig = true
}
}
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs_nio:2.1.5'
}
}
}
}
tasks.register('clean', Delete) {
delete layout.buildDirectory.get()
}