[Settings > General] Expose codename in platform info
This commit is contained in:
parent
8b480b92e2
commit
d0020c5561
2 changed files with 9 additions and 2 deletions
|
@ -92,14 +92,16 @@ export function getDebugInfo(string: boolean = false) {
|
||||||
device: {
|
device: {
|
||||||
manufacturer: PlatformConstants.Manufacturer,
|
manufacturer: PlatformConstants.Manufacturer,
|
||||||
brand: PlatformConstants.Brand,
|
brand: PlatformConstants.Brand,
|
||||||
model: PlatformConstants.Model
|
model: PlatformConstants.Model,
|
||||||
|
codename: DCDDeviceManager.device
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ios: {
|
ios: {
|
||||||
device: {
|
device: {
|
||||||
manufacturer: DCDDeviceManager.deviceManufacturer,
|
manufacturer: DCDDeviceManager.deviceManufacturer,
|
||||||
brand: DCDDeviceManager.deviceBrand,
|
brand: DCDDeviceManager.deviceBrand,
|
||||||
model: DCDDeviceManager.device
|
model: DCDDeviceManager.deviceModel,
|
||||||
|
codename: DCDDeviceManager.device
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,11 @@ export default function General() {
|
||||||
label: "Model",
|
label: "Model",
|
||||||
version: debugInfo.device.model,
|
version: debugInfo.device.model,
|
||||||
icon: "ic_phonelink_24px"
|
icon: "ic_phonelink_24px"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: RN.Platform.select({android: "Codename", ios: "Machine ID"})!,
|
||||||
|
version: debugInfo.device.codename,
|
||||||
|
icon: "ic_compose_24px"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue