From d0020c5561f8defa49246f2fb3582d1feaff6596 Mon Sep 17 00:00:00 2001 From: Jack Matthews Date: Wed, 11 Jan 2023 01:12:26 -0500 Subject: [PATCH] [Settings > General] Expose codename in platform info --- src/lib/debug.ts | 6 ++++-- src/ui/settings/pages/General.tsx | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lib/debug.ts b/src/lib/debug.ts index a40ce46..ab21372 100644 --- a/src/lib/debug.ts +++ b/src/lib/debug.ts @@ -92,14 +92,16 @@ export function getDebugInfo(string: boolean = false) { device: { manufacturer: PlatformConstants.Manufacturer, brand: PlatformConstants.Brand, - model: PlatformConstants.Model + model: PlatformConstants.Model, + codename: DCDDeviceManager.device } }, ios: { device: { manufacturer: DCDDeviceManager.deviceManufacturer, brand: DCDDeviceManager.deviceBrand, - model: DCDDeviceManager.device + model: DCDDeviceManager.deviceModel, + codename: DCDDeviceManager.device } } } diff --git a/src/ui/settings/pages/General.tsx b/src/ui/settings/pages/General.tsx index 4e397b4..533f1b4 100644 --- a/src/ui/settings/pages/General.tsx +++ b/src/ui/settings/pages/General.tsx @@ -65,6 +65,11 @@ export default function General() { label: "Model", version: debugInfo.device.model, icon: "ic_phonelink_24px" + }, + { + label: RN.Platform.select({android: "Codename", ios: "Machine ID"})!, + version: debugInfo.device.codename, + icon: "ic_compose_24px" } ];