fix(mining-app): 移除 debug applicationIdSuffix 修复升级后双图标
debug buildType 设置了 applicationIdSuffix = ".debug",导致 debug 包名为 com.rwadurian.mining_app.debug,release 包名为 com.rwadurian.mining_app。Android 将它们视为两个不同应用, 升级安装 release 包时不覆盖 debug 包,出现两个相同图标。 移除 applicationIdSuffix 后 debug/release 使用同一包名, 升级安装时会正确覆盖旧版本。versionNameSuffix 保留用于区分版本号。 注:用户手机上需手动卸载旧的 debug 包才能清除已存在的重复图标。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
03cc5bc324
commit
0ffa875a85
|
|
@ -66,7 +66,8 @@ android {
|
||||||
debug {
|
debug {
|
||||||
// Debug配置
|
// Debug配置
|
||||||
isDebuggable = true
|
isDebuggable = true
|
||||||
applicationIdSuffix = ".debug"
|
// 不设置 applicationIdSuffix,确保 debug/release 包名一致
|
||||||
|
// 避免升级时出现两个相同图标的应用
|
||||||
versionNameSuffix = "-debug"
|
versionNameSuffix = "-debug"
|
||||||
}
|
}
|
||||||
release {
|
release {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue