forked from Dr-TSNG/Hide-My-Applist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
36 lines (31 loc) · 965 Bytes
/
build.gradle.kts
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
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.1.1")
classpath("com.google.gms:google-services:4.3.10")
}
}
fun String.execute(currentWorkingDir: File = file("./")): String {
val byteOut = java.io.ByteArrayOutputStream()
project.exec {
workingDir = currentWorkingDir
commandLine = split("\\s".toRegex())
standardOutput = byteOut
}
return String(byteOut.toByteArray()).trim()
}
val minSdkVer by extra(24)
val targetSdkVer by extra(32)
val appVerName by extra("2.3.3")
val appVerCode by extra(74)
val serviceVer by extra(74)
val minExtensionVer by extra(35)
val minBackupVer by extra(65)
val gitCommitCount by extra("git rev-list HEAD --count".execute())
val gitCommitHash by extra("git rev-parse --verify --short HEAD".execute())
tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}