移除调试签名配置,优化KPM版本显示逻辑,添加KPM控制成功和失败的提示字符串

This commit is contained in:
ShirkNeko
2025-04-01 16:09:18 +08:00
parent 0a9cf5f9aa
commit 57c65fdcda
4 changed files with 15 additions and 11 deletions

View File

@@ -25,14 +25,6 @@ apksign {
}
android {
signingConfigs {
getByName("debug") {
storeFile = file("D:\\SukiSU\\release-key.keystore")
storePassword = "2832165"
keyAlias = "shirkneko"
keyPassword = "2832165"
}
}
namespace = "shirkneko.zako.sukisu"
buildTypes {

View File

@@ -549,8 +549,18 @@ private fun InfoCard() {
if (!isSimpleMode) {
Spacer(Modifier.height(16.dp))
InfoCardItem(stringResource(R.string.home_kpm_version), getKpmVersion())
var showKpmVersion by remember { mutableStateOf(true) }
LaunchedEffect(Unit) {
try {
getKpmVersion()
} catch (e: Exception) {
showKpmVersion = false
}
}
AnimatedVisibility(visible = showKpmVersion) {
Spacer(Modifier.height(16.dp))
InfoCardItem(stringResource(R.string.home_kpm_version), getKpmVersion())
}
}

View File

@@ -236,6 +236,8 @@
<string name="kpm_install_failed">加载kpm模块失败</string>
<string name="home_kpm_version">KPM 版本</string>
<string name="close_notice">关闭</string>
<string name="kpm_control_success">成功</string>
<string name="kpm_control_failed">错误</string>
<string name="kernel_module_notice">以下内核模块功能由KernelPatch开发经过修改后加入SukiSU Ultra的内核模块功能</string>
<string name="home_ContributionCard_kernelsu">SukiSU Ultra展望</string>
<string name="home_click_to_ContributionCard_kernelsu">SukiSU Ultra未来将会成为一个相对独立的KSU分支但是依然感谢官方KernelSU和MKSU等做出的贡献</string>

View File

@@ -237,7 +237,7 @@
<string name="kpm_install_success">Load of kpm module successful</string>
<string name="kpm_install_failed">Load of kpm module failed</string>
<string name="kpm_args">kpm parameters</string>
<string name="kpm_control">执行</string>
<string name="kpm_control">fulfillment</string>
<string name="home_kpm_version">KPM Version</string>
<string name="close_notice">close</string>
<string name="kernel_module_notice">The following kernel module functions were developed by KernelPatch and modified to include the kernel module functions of SukiSU Ultra</string>