version:2.5

fix:
add:增加台电userdebug版本
This commit is contained in:
2022-07-01 18:14:28 +08:00
parent 19dae5a2d7
commit f6396ad72d
2 changed files with 20 additions and 8 deletions

View File

@@ -39,8 +39,8 @@ android {
productFlavors {
beta {
flavorDimensions "default"
versionCode 14
versionName "2.3"
versionCode 16
versionName "2.5"
manifestPlaceholders = [
JPUSH_PKGNAME: "com.uiui.appstore",
JPUSH_APPKEY : "c93d01f43046fa500d162817", //JPush 上注册的包名对应的 Appkey.
@@ -70,15 +70,17 @@ android {
v1SigningEnabled true
v2SigningEnabled true
}
debug {
storeFile file("src/keys/xueshibaoos.jks")
teclastuserdebug {
storeFile file("src/keys/TeclastUserDebug.jks")
storePassword "123456"
keyAlias "xueshibaoos"
keyAlias "teclast"
keyPassword "123456"
v1SigningEnabled true
v2SigningEnabled true
}
release {// 签名文件
mtk {
storeFile file("src/keys/xueshibaoos.jks")
storePassword "123456"
keyAlias "xueshibaoos"
@@ -102,13 +104,23 @@ android {
debuggable true
signingConfig signingConfigs.zhanRui
}
//userdebug rom使用这个版本
zhanRuiUserdebug.initWith(zhanRuiDebug)
zhanRuiUserdebug {
buildConfigField "String", "platform", '"ZhanRui"'
versionNameSuffix "-debug"
debuggable true
signingConfig signingConfigs.teclastuserdebug
}
debug {
buildConfigField "String", "platform", '"MTK"'
versionNameSuffix "-debug"
minifyEnabled false
//Zipalign优化
zipAlignEnabled true
signingConfig signingConfigs.debug
signingConfig signingConfigs.mtk
applicationVariants.all { variant ->
variant.outputs.each { output ->
if (outputFile != null) {
@@ -127,7 +139,7 @@ android {
//前一部分代表系统默认的android程序的混淆文件该文件已经包含了基本的混淆声明后一个文件是自己的定义混淆文件
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
//签名
signingConfig signingConfigs.release
signingConfig signingConfigs.mtk
// 将release版本的包名重命名加上版本及日期
applicationVariants.all { variant ->
variant.outputs.each { output ->

Binary file not shown.