feat(update): проверка новой версии через GitHub Releases

This commit is contained in:
klockky
2026-07-05 16:49:12 +03:00
parent 26eca7aae4
commit abf660e10c
11 changed files with 661 additions and 3 deletions
+16 -1
View File
@@ -817,5 +817,20 @@
"fontSettingsLoading": "Loading…",
"fontSettingsSectionFontSize": "Font size",
"fontSettingsPreviewLabel": "PREVIEW",
"fontSettingsReset": "Reset"
"fontSettingsReset": "Reset",
"updateAvailableTitle": "Update available",
"updateAvailableBody": "Version {version} is out. Update the app?",
"@updateAvailableBody": {
"placeholders": {
"version": {
"type": "String"
}
}
},
"updateWhatsNew": "WHAT'S NEW",
"updateAction": "Update",
"updateLater": "Later",
"updateSkip": "Skip",
"updateDownloading": "Downloading update…",
"updateDownloadFailed": "Failed to download the update"
}
+48
View File
@@ -3787,6 +3787,54 @@ abstract class AppLocalizations {
/// In en, this message translates to:
/// **'Reset'**
String get fontSettingsReset;
/// No description provided for @updateAvailableTitle.
///
/// In en, this message translates to:
/// **'Update available'**
String get updateAvailableTitle;
/// No description provided for @updateAvailableBody.
///
/// In en, this message translates to:
/// **'Version {version} is out. Update the app?'**
String updateAvailableBody(String version);
/// No description provided for @updateWhatsNew.
///
/// In en, this message translates to:
/// **'WHAT\'S NEW'**
String get updateWhatsNew;
/// No description provided for @updateAction.
///
/// In en, this message translates to:
/// **'Update'**
String get updateAction;
/// No description provided for @updateLater.
///
/// In en, this message translates to:
/// **'Later'**
String get updateLater;
/// No description provided for @updateSkip.
///
/// In en, this message translates to:
/// **'Skip'**
String get updateSkip;
/// No description provided for @updateDownloading.
///
/// In en, this message translates to:
/// **'Downloading update…'**
String get updateDownloading;
/// No description provided for @updateDownloadFailed.
///
/// In en, this message translates to:
/// **'Failed to download the update'**
String get updateDownloadFailed;
}
class _AppLocalizationsDelegate
+26
View File
@@ -1949,4 +1949,30 @@ class AppLocalizationsEn extends AppLocalizations {
@override
String get fontSettingsReset => 'Reset';
@override
String get updateAvailableTitle => 'Update available';
@override
String updateAvailableBody(String version) {
return 'Version $version is out. Update the app?';
}
@override
String get updateWhatsNew => 'WHAT\'S NEW';
@override
String get updateAction => 'Update';
@override
String get updateLater => 'Later';
@override
String get updateSkip => 'Skip';
@override
String get updateDownloading => 'Downloading update…';
@override
String get updateDownloadFailed => 'Failed to download the update';
}
+26
View File
@@ -1959,4 +1959,30 @@ class AppLocalizationsRu extends AppLocalizations {
@override
String get fontSettingsReset => 'Сбросить';
@override
String get updateAvailableTitle => 'Доступно обновление';
@override
String updateAvailableBody(String version) {
return 'Вышла версия $version. Обновить приложение?';
}
@override
String get updateWhatsNew => 'ЧТО НОВОГО';
@override
String get updateAction => 'Обновить';
@override
String get updateLater => 'Позже';
@override
String get updateSkip => 'Пропустить';
@override
String get updateDownloading => 'Загрузка обновления…';
@override
String get updateDownloadFailed => 'Не удалось скачать обновление';
}
+16 -1
View File
@@ -639,5 +639,20 @@
"fontSettingsLoading": "Загрузка…",
"fontSettingsSectionFontSize": "Размер шрифта",
"fontSettingsPreviewLabel": "ПРЕДПРОСМОТР",
"fontSettingsReset": "Сбросить"
"fontSettingsReset": "Сбросить",
"updateAvailableTitle": "Доступно обновление",
"updateAvailableBody": "Вышла версия {version}. Обновить приложение?",
"@updateAvailableBody": {
"placeholders": {
"version": {
"type": "String"
}
}
},
"updateWhatsNew": "ЧТО НОВОГО",
"updateAction": "Обновить",
"updateLater": "Позже",
"updateSkip": "Пропустить",
"updateDownloading": "Загрузка обновления…",
"updateDownloadFailed": "Не удалось скачать обновление"
}