store current installed version

This commit is contained in:
Kyle Spearrin 2018-05-16 21:19:23 -04:00
parent f9cb8a7a31
commit fc63fd32c8
1 changed files with 6 additions and 0 deletions

View File

@ -116,6 +116,12 @@ export class Main {
const locale = await this.storageService.get<string>(ConstantsService.localeKey);
await this.i18nService.init(locale);
await this.authService.init();
const installedVersion = await this.storageService.get<string>(ConstantsService.installedVersionKey);
const currentVersion = this.platformUtilsService.getApplicationVersion();
if (installedVersion == null || installedVersion !== currentVersion) {
await this.storageService.save(ConstantsService.installedVersionKey, currentVersion);
}
}
}