[auth] Bump version

This commit is contained in:
Neeraj Gupta
2024-12-06 12:51:39 +05:30
parent 34a04dd29a
commit 2b4d47d2f6
2 changed files with 13 additions and 9 deletions

View File

@@ -59,9 +59,9 @@ class UpdateService {
return _latestVersion;
}
Future<void> showUpdateNotification() async {
Future<bool> showUpdateNotification() async {
if (!isIndependent()) {
return;
return false;
}
final shouldUpdate = await this.shouldUpdate();
final lastNotificationShownTime =
@@ -72,15 +72,19 @@ class UpdateService {
if (shouldUpdate &&
hasBeen3DaysSinceLastNotification &&
_latestVersion!.shouldNotify!) {
unawaited(
NotificationService.instance.showNotification(
"Update available",
"Click to install our best version yet",
),
);
await _prefs.setInt(kUpdateAvailableShownTimeKey, now);
if (Platform.isAndroid) {
unawaited(
NotificationService.instance.showNotification(
"Update available",
"Click to install our best version yet",
),
);
}
return true;
} else {
_logger.info("Debouncing notification");
return false;
}
}

View File

@@ -1,6 +1,6 @@
name: ente_auth
description: ente two-factor authenticator
version: 4.1.4+414
version: 4.1.4+415
publish_to: none
environment: