-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (57 loc) · 2.04 KB
/
build.gradle
File metadata and controls
68 lines (57 loc) · 2.04 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Top-level build file where you can add configuration options common to all sub-projects/modules.
//buildscript {
// repositories {
// mavenCentral()
// maven { url 'https://developer.huawei.com/repo/' }
// }
// dependencies {
// classpath 'com.android.tools.build:gradle:8.8.0'
// classpath 'com.huawei.agconnect:agcp:1.9.3.300'
// }
//}
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 {
compileSdkVersion 36
buildToolsVersion "36.0.0"
ndkVersion "27.2.12479018"
//ndkVersion "21.4.7075529" // 26.3.11579264
lint {
checkReleaseBuilds = false
disable 'MissingTranslation', 'ExtraTranslation', 'BlockedPrivateApi'
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
coreLibraryDesugaringEnabled = true
}
// tasks.withType(JavaCompile).configureEach {
// options.compilerArgs += ['-Xlint:deprecation', '-Xlint:unchecked']
// }
defaultConfig {
minSdkVersion 21
targetSdkVersion 35
}
buildTypes {
play {
initWith(buildTypes.release)
}
}
buildFeatures.buildConfig = true
}
dependencies {
coreLibraryDesugaring libs.desugar.jdk.libs.nio
}
}
}
}
tasks.register('clean', Delete) {
delete layout.buildDirectory.get()
}