forked from winlaemyathu-cmyk/Shizuku
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
34 lines (31 loc) · 937 Bytes
/
Copy pathbuild.gradle
File metadata and controls
34 lines (31 loc) · 937 Bytes
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
plugins {
id("idea")
}
idea.module {
excludeDirs += file('out')
}
subprojects {
plugins.withId("com.android.base") {
android {
compileSdk = 36
buildToolsVersion = "36.0.0"
ndkVersion = "29.0.13113456"
defaultConfig {
minSdk = 24
targetSdk = 36
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
}
}
}
apply from: 'api/manifest.gradle'
def gitCommitId = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
def gitCommitCount = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
def baseVersionName = "${api_version_major}.6.0"
ext {
versionCode = gitCommitCount
versionName = "${baseVersionName}.r${gitCommitCount}.${gitCommitId}"
}