fix: remove broken settings section on android and broken device info command

This commit is contained in:
cocobo1 2026-07-27 16:50:02 +00:00
parent 791956daac
commit 4f4a84ebce
2 changed files with 8 additions and 3 deletions

View file

@ -15,6 +15,10 @@ export default () => <ApplicationCommand>{
],
execute([ephemeral], ctx) {
const info = getDebugInfo();
if(info.device.codename === undefined) { info.device.codename = ""}
else{ info.device.codename = "(" + info.device.codename + ")" }
const content = [
"**Kettu Debug Info**",
`> Kettu: ${info.bunny.version} (${info.bunny.loader.name} ${info.bunny.loader.version})`,
@ -22,7 +26,7 @@ export default () => <ApplicationCommand>{
`> React: ${info.react.version} (RN ${info.react.nativeVersion})`,
`> Hermes: ${info.hermes.version} (bcv${info.hermes.bytecodeVersion})`,
`> System: ${info.os.name} ${info.os.version} ${info.os.sdk ? `(SDK ${info.os.sdk})` : ""}`.trimEnd(),
`> Device: ${info.device.model} (${info.device.codename})`,
`> Device: ${info.device.model} ${info.device.codename}`,
].join("\n");
if (ephemeral?.value) {

View file

@ -70,11 +70,12 @@ export default function About() {
version: debugInfo.device.model,
icon: "MobilePhoneIcon"
},
{
// this is renamed now on android but i cant be bothered to find it
...(Platform.OS !== "android" ? [{
label: Platform.select({ android: Strings.CODENAME, ios: Strings.MODELID })!,
version: debugInfo.device.codename,
icon: "TagIcon"
}
}] : []),
];
return (