移除调试签名配置,优化KPM版本显示逻辑,添加KPM控制成功和失败的提示字符串
This commit is contained in:
@@ -25,14 +25,6 @@ apksign {
|
|||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
signingConfigs {
|
|
||||||
getByName("debug") {
|
|
||||||
storeFile = file("D:\\SukiSU\\release-key.keystore")
|
|
||||||
storePassword = "2832165"
|
|
||||||
keyAlias = "shirkneko"
|
|
||||||
keyPassword = "2832165"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
namespace = "shirkneko.zako.sukisu"
|
namespace = "shirkneko.zako.sukisu"
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|||||||
@@ -549,9 +549,19 @@ private fun InfoCard() {
|
|||||||
|
|
||||||
|
|
||||||
if (!isSimpleMode) {
|
if (!isSimpleMode) {
|
||||||
|
var showKpmVersion by remember { mutableStateOf(true) }
|
||||||
|
LaunchedEffect(Unit) {
|
||||||
|
try {
|
||||||
|
getKpmVersion()
|
||||||
|
} catch (e: Exception) {
|
||||||
|
showKpmVersion = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
AnimatedVisibility(visible = showKpmVersion) {
|
||||||
Spacer(Modifier.height(16.dp))
|
Spacer(Modifier.height(16.dp))
|
||||||
InfoCardItem(stringResource(R.string.home_kpm_version), getKpmVersion())
|
InfoCardItem(stringResource(R.string.home_kpm_version), getKpmVersion())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!isSimpleMode) {
|
if (!isSimpleMode) {
|
||||||
|
|||||||
@@ -236,6 +236,8 @@
|
|||||||
<string name="kpm_install_failed">加载kpm模块失败</string>
|
<string name="kpm_install_failed">加载kpm模块失败</string>
|
||||||
<string name="home_kpm_version">KPM 版本</string>
|
<string name="home_kpm_version">KPM 版本</string>
|
||||||
<string name="close_notice">关闭</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="kernel_module_notice">以下内核模块功能由KernelPatch开发,经过修改后加入SukiSU Ultra的内核模块功能</string>
|
||||||
<string name="home_ContributionCard_kernelsu">SukiSU Ultra展望</string>
|
<string name="home_ContributionCard_kernelsu">SukiSU Ultra展望</string>
|
||||||
<string name="home_click_to_ContributionCard_kernelsu">SukiSU Ultra未来将会成为一个相对独立的KSU分支,但是依然感谢官方KernelSU和MKSU等做出的贡献</string>
|
<string name="home_click_to_ContributionCard_kernelsu">SukiSU Ultra未来将会成为一个相对独立的KSU分支,但是依然感谢官方KernelSU和MKSU等做出的贡献</string>
|
||||||
|
|||||||
@@ -237,7 +237,7 @@
|
|||||||
<string name="kpm_install_success">Load of kpm module successful</string>
|
<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_install_failed">Load of kpm module failed</string>
|
||||||
<string name="kpm_args">kpm parameters</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="home_kpm_version">KPM Version</string>
|
||||||
<string name="close_notice">close</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>
|
<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>
|
||||||
|
|||||||
Reference in New Issue
Block a user