This commit is contained in:
Li ZongYing
2023-12-06 20:07:27 +08:00
parent c524e6c0fb
commit 20ddba6ad7
7 changed files with 4 additions and 26 deletions
+4 -5
View File
@@ -11,8 +11,8 @@ android {
applicationId "com.lizongying.mytv"
minSdk 23
targetSdk 33
versionCode getVersionCode()
versionName getVersionName()
versionCode VersionCode()
versionName VersionName()
}
buildTypes {
@@ -32,7 +32,7 @@ android {
}
}
static def getVersionCode() {
static def VersionCode() {
try {
def process = 'git rev-list --count HEAD'.execute()
process.waitFor()
@@ -42,7 +42,7 @@ static def getVersionCode() {
}
}
static def getVersionName() {
static def VersionName() {
try {
def process = 'git describe --tags --always'.execute()
process.waitFor()
@@ -53,7 +53,6 @@ static def getVersionName() {
}
dependencies {
implementation 'androidx.core:core-ktx:1.11.0-beta02'
implementation 'androidx.leanback:leanback:1.0.0'
implementation 'com.github.bumptech.glide:glide:4.11.0'