feat(settings): show build number alongside the app version

UserInfo now renders "0.54.1 (42)" instead of just the marketing version.
The build number (CFBundleVersion / versionCode, auto-incremented by EAS) is
unique per build, so TestFlight and development reports identify the exact
build even when the marketing version is not a published release.
This commit is contained in:
Gauvino
2026-06-05 13:38:50 +02:00
committed by Gauvain
parent 02ffac167b
commit 4d0a571ad0

View File

@@ -13,10 +13,13 @@ export const UserInfo: React.FC<Props> = ({ ...props }) => {
const [user] = useAtom(userAtom); const [user] = useAtom(userAtom);
const { t } = useTranslation(); const { t } = useTranslation();
const version = // Show "0.54.1 (42)": the build number (CFBundleVersion / versionCode, auto-incremented
Application?.nativeApplicationVersion || // by EAS) uniquely identifies a build, so TestFlight/dev reports still pin the exact build.
Application?.nativeBuildVersion || const appVersion = Application?.nativeApplicationVersion;
"N/A"; const buildVersion = Application?.nativeBuildVersion;
const version = appVersion
? `${appVersion}${buildVersion ? ` (${buildVersion})` : ""}`
: buildVersion || "N/A";
return ( return (
<View {...props}> <View {...props}>