修复 build.gradle 中 buildType 属性重复设置,统一使用 initWith 初始化
本次变更将各产品变体的 `initWith(debug/release)` 调用移至对应 buildType 块内部,并移除显式设置的 `debuggable true`,改由继承的 debug 基础类型提供,避免重复配置并统一构建类型定义方式。
This commit is contained in:
1 parent
5528dbdb12
commit
5c037fb676
1 file changed
+24
-36
+24
-36
@@ -217,19 +217,18 @@ android {
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
MT6789Debug.initWith(debug)
|
||||
MT6789Debug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "63e2c211ad3bf161969582a58cf3c598"
|
||||
]
|
||||
buildConfigField "String", "platform", '"G12NL"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.MT6789
|
||||
}
|
||||
|
||||
MT6789Release.initWith(release)
|
||||
MT6789Release {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "63e2c211ad3bf161969582a58cf3c598"
|
||||
]
|
||||
@@ -237,19 +236,18 @@ android {
|
||||
signingConfig signingConfigs.MT6789
|
||||
}
|
||||
|
||||
Huaruian8768Debug.initWith(debug)
|
||||
Huaruian8768Debug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "a4d58ed320000359544e99e1189438c7"
|
||||
]
|
||||
buildConfigField "String", "platform", '"G10J"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.Huaruian8768
|
||||
}
|
||||
|
||||
Huaruian8768Release.initWith(release)
|
||||
Huaruian8768Release {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "a4d58ed320000359544e99e1189438c7"
|
||||
]
|
||||
@@ -257,19 +255,18 @@ android {
|
||||
signingConfig signingConfigs.Huaruian8768
|
||||
}
|
||||
|
||||
iPlay50SEDebug.initWith(debug)
|
||||
iPlay50SEDebug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "adfc5099b8305d05bff03dcfd6579640"
|
||||
]
|
||||
buildConfigField "String", "platform", '"ipaly50"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.iPlay50SE
|
||||
}
|
||||
|
||||
iPlay50SERelease.initWith(release)
|
||||
iPlay50SERelease {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "adfc5099b8305d05bff03dcfd6579640"
|
||||
]
|
||||
@@ -277,19 +274,18 @@ android {
|
||||
signingConfig signingConfigs.iPlay50SE
|
||||
}
|
||||
|
||||
unisocDebug.initWith(debug)
|
||||
unisocDebug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "a45f52890415873d7fe97731b9ff27a7"
|
||||
]
|
||||
buildConfigField "String", "platform", '"ZhanRui"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.unisoc
|
||||
}
|
||||
|
||||
unisocRelease.initWith(release)
|
||||
unisocRelease {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "a45f52890415873d7fe97731b9ff27a7"
|
||||
]
|
||||
@@ -297,19 +293,18 @@ android {
|
||||
signingConfig signingConfigs.unisoc
|
||||
}
|
||||
|
||||
mtk11Debug.initWith(debug)
|
||||
mtk11Debug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "2faeb0552117ccbbeb2fd63afd5d71f3"
|
||||
]
|
||||
buildConfigField "String", "platform", '"MTK"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.mtkAndroid11
|
||||
}
|
||||
|
||||
mtk11Release.initWith(release)
|
||||
mtk11Release {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "2faeb0552117ccbbeb2fd63afd5d71f3"
|
||||
]
|
||||
@@ -317,19 +312,18 @@ android {
|
||||
signingConfig signingConfigs.mtkAndroid11
|
||||
}
|
||||
|
||||
teclastMTKDebug.initWith(debug)
|
||||
teclastMTKDebug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "4ba0125745b17d0c73a6638dcda43d2f"
|
||||
]
|
||||
buildConfigField "String", "platform", '"T30PRO"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.teclastMTK
|
||||
}
|
||||
|
||||
teclastMTKRelease.initWith(release)
|
||||
teclastMTKRelease {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "4ba0125745b17d0c73a6638dcda43d2f"
|
||||
]
|
||||
@@ -337,19 +331,18 @@ android {
|
||||
signingConfig signingConfigs.teclastMTK
|
||||
}
|
||||
|
||||
G6Debug.initWith(debug)
|
||||
G6Debug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "418069ea951c42cdaa39a4d2015f23b9"
|
||||
]
|
||||
buildConfigField "String", "platform", '"G6"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.G10P
|
||||
}
|
||||
|
||||
G6Release.initWith(release)
|
||||
G6Release {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "418069ea951c42cdaa39a4d2015f23b9"
|
||||
]
|
||||
@@ -357,19 +350,18 @@ android {
|
||||
signingConfig signingConfigs.G10P
|
||||
}
|
||||
|
||||
G13Debug.initWith(debug)
|
||||
G13Debug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "418069ea951c42cdaa39a4d2015f23b9"
|
||||
]
|
||||
buildConfigField "String", "platform", '"G13"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.G10P
|
||||
}
|
||||
|
||||
G13Release.initWith(release)
|
||||
G13Release {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "418069ea951c42cdaa39a4d2015f23b9"
|
||||
]
|
||||
@@ -377,19 +369,18 @@ android {
|
||||
signingConfig signingConfigs.G10P
|
||||
}
|
||||
|
||||
Teclast8515Debug.initWith(debug)
|
||||
Teclast8515Debug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "29db21d44be7ae2cadb6ea7189ebec72"
|
||||
]
|
||||
buildConfigField "String", "platform", '"8515"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.Teclast8515
|
||||
}
|
||||
|
||||
Teclast8515Release.initWith(release)
|
||||
Teclast8515Release {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "29db21d44be7ae2cadb6ea7189ebec72"
|
||||
]
|
||||
@@ -398,19 +389,18 @@ android {
|
||||
}
|
||||
|
||||
//m40se
|
||||
teclastUnisocdebug.initWith(debug)
|
||||
teclastUnisocdebug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "ef180363f53f3ea07af84be26b797f5d"
|
||||
]
|
||||
buildConfigField "String", "platform", '"M40SE"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.teclastUnisoc
|
||||
}
|
||||
|
||||
teclastUnisocrelease.initWith(release)
|
||||
teclastUnisocrelease {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "ef180363f53f3ea07af84be26b797f5d"
|
||||
]
|
||||
@@ -418,30 +408,28 @@ android {
|
||||
signingConfig signingConfigs.teclastUnisoc
|
||||
}
|
||||
|
||||
teclastUnisocUserdebug.initWith(debug)
|
||||
teclastUnisocUserdebug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "a89c464a7e619791d65bf683602b9e30"
|
||||
]
|
||||
buildConfigField "String", "platform", '"M40SE"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.teclastUnisocUserdebug
|
||||
}
|
||||
|
||||
zhanRuiDebug.initWith(debug)
|
||||
zhanRuiDebug {
|
||||
initWith(debug)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "63d3bf78053d530926309bb25e007e1a"
|
||||
]
|
||||
buildConfigField "String", "platform", '"ZhanRui"'
|
||||
versionNameSuffix "-debug"
|
||||
debuggable true
|
||||
signingConfig signingConfigs.zhanRui
|
||||
}
|
||||
|
||||
zhanRuiRelease.initWith(release)
|
||||
zhanRuiRelease {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "63d3bf78053d530926309bb25e007e1a"
|
||||
]
|
||||
@@ -449,8 +437,8 @@ android {
|
||||
signingConfig signingConfigs.zhanRui
|
||||
}
|
||||
|
||||
zhanRuiUserdebugReleas.initWith(release)
|
||||
zhanRuiUserdebugReleas {
|
||||
initWith(release)
|
||||
manifestPlaceholders = [
|
||||
AMAP_KEY: "4ebbc3a36c028f6749fed5257f17c77e"
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user