From 8007607e1684ed20e72ec3104d14d4791ca5f28c Mon Sep 17 00:00:00 2001 From: Ksan Date: Thu, 30 Jul 2026 16:34:07 +0200 Subject: [PATCH] show app version from expo config on help page; bump to 1.0.6 --- frontend/app.json | 2 +- frontend/screens/HelpSupport.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/app.json b/frontend/app.json index 82d13a0..407b9f6 100644 --- a/frontend/app.json +++ b/frontend/app.json @@ -2,7 +2,7 @@ "expo": { "name": "etfoglasi", "slug": "etfoglasi", - "version": "1.0.0", + "version": "1.0.6", "orientation": "portrait", "icon": "./assets/images/icon.png", "scheme": "etfoglasi", diff --git a/frontend/screens/HelpSupport.tsx b/frontend/screens/HelpSupport.tsx index 6b73ba8..4d81cfd 100644 --- a/frontend/screens/HelpSupport.tsx +++ b/frontend/screens/HelpSupport.tsx @@ -5,11 +5,14 @@ import { } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; import { Ionicons } from "@expo/vector-icons"; +import Constants from "expo-constants"; const CONTACT_EMAIL = "contact@ksan.dev"; //TODO make github page because yea const GITHUB_URL = "https://git.ksan.dev/ksan"; -const APP_VERSION = "1.0.0"; +// Sourced from app.json's expo.version, which CI stamps on every mobile +// release (scripts/set-mobile-version.js), so this stays in sync automatically. +const APP_VERSION = Constants.expoConfig?.version ?? "unknown"; export default function HelpSupport({ onClose }: { onClose: () => void }) { const dark = useColorScheme() === "dark";