forked from Hepolise/VolumeKeyTrackControlModule
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
23 lines (20 loc) · 706 Bytes
/
Copy pathbuild.gradle.kts
File metadata and controls
23 lines (20 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
plugins {
id("com.android.application") version "9.2.1" apply false
id("com.android.library") version "9.2.1" apply false
id("org.jetbrains.kotlin.android") version "2.3.21" apply false
id("org.jetbrains.kotlin.plugin.compose") version "2.3.21" apply false
}
val versionName = "1.16.3"
val versionCode = 18
rootProject.ext.set("appVersionName", versionName)
rootProject.ext.set("appVersionCode", versionCode)
tasks.register("getVersion") {
doLast {
val versionFile = file("app/build/version.txt")
versionFile.parentFile.mkdirs()
if (!versionFile.exists()) {
versionFile.createNewFile()
}
versionFile.writeText(versionName)
}
}