forked from reveny/Android-Native-Root-Detector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
76 lines (68 loc) · 2.41 KB
/
build.gradle
File metadata and controls
76 lines (68 loc) · 2.41 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
69
70
71
72
73
74
75
76
import com.android.build.api.dsl.ApplicationDefaultConfig
import com.android.build.api.dsl.CommonExtension
import com.android.build.gradle.api.AndroidBasePlugin
buildscript {
ext {
defaultPackageName = 'com.reveny.nativecheck'
verCode = 661
verName = '6.6.1'
androidTargetSdkVersion = 35
androidMinSdkVersion = 27
androidCompileSdkVersion = 35
androidCompileNdkVersion = '28.0.13004108'
androidSourceCompatibility = JavaVersion.VERSION_21
androidTargetCompatibility = JavaVersion.VERSION_21
}
}
plugins {
alias(libs.plugins.agp.app) apply false
alias(libs.plugins.agp.lib) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.ksp) apply false
}
subprojects {
plugins.withType(AndroidBasePlugin).configureEach {
extensions.configure(CommonExtension) { ext ->
ext.compileSdk = androidCompileSdkVersion
ext.ndkVersion = androidCompileNdkVersion
ext.defaultConfig { config ->
config.minSdk = androidMinSdkVersion
if (config instanceof ApplicationDefaultConfig) {
config.targetSdk = androidTargetSdkVersion
config.versionCode = verCode
config.versionName = verName
}
}
ext.lint {
abortOnError = true
checkReleaseBuilds = false
}
ext.compileOptions {
sourceCompatibility = androidSourceCompatibility
targetCompatibility = androidTargetCompatibility
}
ext.buildFeatures {
compose = true
buildConfig = true
prefab = true
}
ext.packaging.resources.excludes += [
"kotlin/**",
"org/**",
"**.properties",
"**.bin",
"**.proto",
]
}
}
plugins.withType(JavaPlugin) {
extensions.configure(JavaPluginExtension) { ext ->
ext.sourceCompatibility = androidSourceCompatibility
ext.targetCompatibility = androidTargetCompatibility
}
}
}