-
Notifications
You must be signed in to change notification settings - Fork 88
/
build.gradle.kts
37 lines (32 loc) · 902 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
37
buildscript {
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
classpath("com.android.tools.build:gradle:7.2.2")
}
}
plugins {
kotlin("android") version "1.7.0" apply false
}
fun String.execute(currentWorkingDir: File = file("./")): String {
val byteOut = java.io.ByteArrayOutputStream()
exec {
workingDir = currentWorkingDir
commandLine = split("\\s".toRegex())
standardOutput = byteOut
}
return String(byteOut.toByteArray()).trim()
}
val verCode by extra("git rev-list HEAD --count".execute().toInt())
var verName by extra("2.4")
val minSdkVer by extra(23)
val targetSdkVer by extra(29)
val compileSdkVer by extra(33)
val ndkVer by extra("25.0.8775105")
val javaVer by extra(JavaVersion.VERSION_11)
tasks.register<Delete>("clean") {
delete(rootProject.buildDir)
}