feat(app-update): add in-app update flow with native e2e coverage

This commit is contained in:
Tommaso Casaburi
2026-03-19 20:19:48 +08:00
parent bc870ae438
commit a2286aa68e
61 changed files with 1900 additions and 249 deletions
+15
View File
@@ -0,0 +1,15 @@
import packageJson from '../../package.json';
const resolveCurrentAppVersion = (): string => {
const configuredVersion = import.meta.env.VITE_APP_VERSION;
if (typeof configuredVersion === 'string' && configuredVersion.trim().length > 0) {
return configuredVersion.trim();
}
return packageJson.version;
};
const currentAppVersion = resolveCurrentAppVersion();
export { currentAppVersion };