mirror of
https://github.com/MetaCubeX/ClashMetaForAndroid.git
synced 2025-03-29 03:39:56 +03:00
Chore: add version to output apks name
This commit is contained in:
parent
4033994111
commit
c8994d8488
1 changed files with 10 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
@file:Suppress("UNUSED_VARIABLE")
|
@file:Suppress("UNUSED_VARIABLE")
|
||||||
|
|
||||||
|
import com.android.build.gradle.AppExtension
|
||||||
import com.android.build.gradle.BaseExtension
|
import com.android.build.gradle.BaseExtension
|
||||||
import java.net.URL
|
import java.net.URL
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
@ -65,6 +66,8 @@ subprojects {
|
||||||
|
|
||||||
if (!isApp) {
|
if (!isApp) {
|
||||||
consumerProguardFiles("consumer-rules.pro")
|
consumerProguardFiles("consumer-rules.pro")
|
||||||
|
} else {
|
||||||
|
setProperty("archivesBaseName", "cfa-$versionName")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,7 +102,11 @@ subprojects {
|
||||||
tracker.inputStream().use(this::load)
|
tracker.inputStream().use(this::load)
|
||||||
}
|
}
|
||||||
|
|
||||||
buildConfigField("String", "APP_CENTER_KEY", "\"${prop.getProperty("appcenter.key")!!}\"")
|
buildConfigField(
|
||||||
|
"String",
|
||||||
|
"APP_CENTER_KEY",
|
||||||
|
"\"${prop.getProperty("appcenter.key")!!}\""
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,6 +149,8 @@ subprojects {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isApp) {
|
if (isApp) {
|
||||||
|
this as AppExtension
|
||||||
|
|
||||||
splits {
|
splits {
|
||||||
abi {
|
abi {
|
||||||
isEnable = true
|
isEnable = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue