mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-16 14:46:44 +02:00
Compare commits
18 Commits
v0.11.2-be
...
v0.11.5-be
Author | SHA1 | Date | |
---|---|---|---|
57f7bf44c2 | |||
ce526d8d26 | |||
5f3eeb9971 | |||
e67a6b8627 | |||
f8e99bb0cb | |||
09b5dd41d3 | |||
b1bd36408c | |||
54d8dff32f | |||
7b1416e28e | |||
926e7b89ce | |||
43d4f89d61 | |||
2190da162d | |||
f10bb5ac91 | |||
8e52f9666d | |||
a8a47bb153 | |||
728dafcc28 | |||
d53b21906c | |||
d6dcac0f97 |
@ -209,14 +209,17 @@
|
|||||||
"language": "Sprache",
|
"language": "Sprache",
|
||||||
"storagePermissionDenied": "Speicherberechtigung verweigert",
|
"storagePermissionDenied": "Speicherberechtigung verweigert",
|
||||||
"selectedCategorizeWarning": "Dadurch werden alle bestehenden Kategorieeinstellungen für die ausgewählten Apps ersetzt.",
|
"selectedCategorizeWarning": "Dadurch werden alle bestehenden Kategorieeinstellungen für die ausgewählten Apps ersetzt.",
|
||||||
"filterAPKsByRegEx": "APKs mit regulärem Ausdruck (RegEx) filtern",
|
"filterAPKsByRegEx": "APKs nach regulärem Ausdruck filtern",
|
||||||
"removeFromObtainium": "Aus Obtainium entfernen",
|
"removeFromObtainium": "Aus Obtainium entfernen",
|
||||||
"uninstallFromDevice": "Vom Gerät deinstallieren",
|
"uninstallFromDevice": "Vom Gerät deinstallieren",
|
||||||
"onlyWorksWithNonVersionDetectApps": "Funktioniert nur bei Apps mit deaktivierter Versionserkennung.",
|
"onlyWorksWithNonVersionDetectApps": "Funktioniert nur bei Apps mit deaktivierter Versionserkennung.",
|
||||||
"useReleaseDateAsVersion": "Veröffentlichungsdatum als Version verwenden",
|
"releaseDateAsVersion": "Veröffentlichungsdatum als Version verwenden",
|
||||||
"releaseDateAsVersionExplanation": "Diese Option sollte nur für Apps verwendet werden, bei denen die Versionserkennung nicht korrekt funktioniert, aber ein Veröffentlichungsdatum verfügbar ist.",
|
"releaseDateAsVersionExplanation": "Diese Option sollte nur für Apps verwendet werden, bei denen die Versionserkennung nicht korrekt funktioniert, aber ein Veröffentlichungsdatum verfügbar ist.",
|
||||||
"changes": "Änderungen",
|
"changes": "Änderungen",
|
||||||
"releaseDate": "Veröffentlichungsdatum",
|
"releaseDate": "Veröffentlichungsdatum",
|
||||||
|
"importFromURLsInFile": "Import from URLs in File (like OPML)",
|
||||||
|
"versionDetection": "Version Detection",
|
||||||
|
"standardVersionDetection": "Standard version detection",
|
||||||
"removeAppQuestion": {
|
"removeAppQuestion": {
|
||||||
"one": "App entfernen?",
|
"one": "App entfernen?",
|
||||||
"other": "App entfernen?"
|
"other": "App entfernen?"
|
||||||
|
@ -213,10 +213,13 @@
|
|||||||
"removeFromObtainium": "Remove from Obtainium",
|
"removeFromObtainium": "Remove from Obtainium",
|
||||||
"uninstallFromDevice": "Uninstall from Device",
|
"uninstallFromDevice": "Uninstall from Device",
|
||||||
"onlyWorksWithNonVersionDetectApps": "Only works for Apps with version detection disabled.",
|
"onlyWorksWithNonVersionDetectApps": "Only works for Apps with version detection disabled.",
|
||||||
"useReleaseDateAsVersion": "Use Release Date as Version",
|
"releaseDateAsVersion": "Use Release Date as Version",
|
||||||
"releaseDateAsVersionExplanation": "This option should only be used for Apps where version detection does not work correctly, but a release date is available.",
|
"releaseDateAsVersionExplanation": "This option should only be used for Apps where version detection does not work correctly, but a release date is available.",
|
||||||
"changes": "Changes",
|
"changes": "Changes",
|
||||||
"releaseDate": "Release Date",
|
"releaseDate": "Release Date",
|
||||||
|
"importFromURLsInFile": "Import from URLs in File (like OPML)",
|
||||||
|
"versionDetection": "Version Detection",
|
||||||
|
"standardVersionDetection": "Standard version detection",
|
||||||
"removeAppQuestion": {
|
"removeAppQuestion": {
|
||||||
"one": "Remove App?",
|
"one": "Remove App?",
|
||||||
"other": "Remove Apps?"
|
"other": "Remove Apps?"
|
||||||
|
@ -213,10 +213,13 @@
|
|||||||
"removeFromObtainium": "از Obtainium حذف کنید",
|
"removeFromObtainium": "از Obtainium حذف کنید",
|
||||||
"uninstallFromDevice": "حذف نصب از دستگاه",
|
"uninstallFromDevice": "حذف نصب از دستگاه",
|
||||||
"onlyWorksWithNonVersionDetectApps": "فقط برای برنامههایی کار میکند که تشخیص نسخه غیرفعال است.",
|
"onlyWorksWithNonVersionDetectApps": "فقط برای برنامههایی کار میکند که تشخیص نسخه غیرفعال است.",
|
||||||
"useReleaseDateAsVersion": "Use Release Date as Version",
|
"releaseDateAsVersion": "از تاریخ انتشار به عنوان نسخه استفاده کنید",
|
||||||
"releaseDateAsVersionExplanation": "This option should only be used for Apps where version detection does not work correctly, but a release date is available.",
|
"releaseDateAsVersionExplanation": "این گزینه فقط باید برای برنامه هایی استفاده شود که تشخیص نسخه به درستی کار نمی کند، اما تاریخ انتشار در دسترس است.",
|
||||||
"changes": "Changes",
|
"changes": "تغییرات",
|
||||||
"releaseDate": "Release Date",
|
"releaseDate": "تاریخ انتشار",
|
||||||
|
"importFromURLsInFile": "وارد کردن از آدرس های اینترنتی موجود در فایل (مانند OPML)",
|
||||||
|
"versionDetection": "تشخیص نسخه",
|
||||||
|
"standardVersionDetection": "تشخیص نسخه استاندارد",
|
||||||
"removeAppQuestion": {
|
"removeAppQuestion": {
|
||||||
"one": "برنامه حذف شود؟",
|
"one": "برنامه حذف شود؟",
|
||||||
"other": "برنامه ها حذف شوند؟"
|
"other": "برنامه ها حذف شوند؟"
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
"appsString": "Appok",
|
"appsString": "Appok",
|
||||||
"noApps": "Nincs App",
|
"noApps": "Nincs App",
|
||||||
"noAppsForFilter": "Nincsenek appok a szűrőhöz",
|
"noAppsForFilter": "Nincsenek appok a szűrőhöz",
|
||||||
"byX": "{} által",
|
"byX": "Fejlesztő: {}",
|
||||||
"percentProgress": "Folyamat: {}%",
|
"percentProgress": "Folyamat: {}%",
|
||||||
"pleaseWait": "Kis türelmet",
|
"pleaseWait": "Kis türelmet",
|
||||||
"updateAvailable": "Frissítés érhető el",
|
"updateAvailable": "Frissítés érhető el",
|
||||||
@ -191,7 +191,7 @@
|
|||||||
"update": "Frissít",
|
"update": "Frissít",
|
||||||
"markUpdated": "Frissítettnek jelöl",
|
"markUpdated": "Frissítettnek jelöl",
|
||||||
"additionalOptions": "További lehetőségek",
|
"additionalOptions": "További lehetőségek",
|
||||||
"disableVersionDetection": "Verzióérzékelés letiltása",
|
"disableVersionDetection": "Verzió érzékelés letiltása",
|
||||||
"noVersionDetectionExplanation": "Ezt a beállítást csak olyan alkalmazásoknál szabad használni, ahol a verzióérzékelés nem működik megfelelően.",
|
"noVersionDetectionExplanation": "Ezt a beállítást csak olyan alkalmazásoknál szabad használni, ahol a verzióérzékelés nem működik megfelelően.",
|
||||||
"downloadingX": "{} letöltés",
|
"downloadingX": "{} letöltés",
|
||||||
"downloadNotifDescription": "Értesíti a felhasználót az app letöltésének előrehaladásáról",
|
"downloadNotifDescription": "Értesíti a felhasználót az app letöltésének előrehaladásáról",
|
||||||
@ -212,10 +212,13 @@
|
|||||||
"removeFromObtainium": "Eltávolítás az Obtainiumból",
|
"removeFromObtainium": "Eltávolítás az Obtainiumból",
|
||||||
"uninstallFromDevice": "Eltávolítás a készülékről",
|
"uninstallFromDevice": "Eltávolítás a készülékről",
|
||||||
"onlyWorksWithNonVersionDetectApps": "Csak azoknál az alkalmazásoknál működik, amelyeknél a verzióérzékelés le van tiltva.",
|
"onlyWorksWithNonVersionDetectApps": "Csak azoknál az alkalmazásoknál működik, amelyeknél a verzióérzékelés le van tiltva.",
|
||||||
"useReleaseDateAsVersion": "Használja a Kiadás dátumát, mint verziót",
|
"releaseDateAsVersion": "Használja a Kiadás dátumát, mint verziót",
|
||||||
"releaseDateAsVersionExplanation": "Ezt a beállítást csak olyan alkalmazásoknál szabad használni, ahol a verzió érzékelése nem működik megfelelően, de elérhető a kiadás dátuma.",
|
"releaseDateAsVersionExplanation": "Ezt a beállítást csak olyan alkalmazásoknál szabad használni, ahol a verzió érzékelése nem működik megfelelően, de elérhető a kiadás dátuma.",
|
||||||
"changes": "Változtatások",
|
"changes": "Változtatások",
|
||||||
"releaseDate": "Kiadás dátuma",
|
"releaseDate": "Kiadás dátuma",
|
||||||
|
"importFromURLsInFile": "Importálás fájlban található URL-ből (mint pl. OPML)",
|
||||||
|
"versionDetection": "Verzió érzékelés",
|
||||||
|
"standardVersionDetection": "Alapért. verzió érzékelés",
|
||||||
"removeAppQuestion": {
|
"removeAppQuestion": {
|
||||||
"one": "Eltávolítja az alkalmazást?",
|
"one": "Eltávolítja az alkalmazást?",
|
||||||
"other": "Eltávolítja az alkalmazást?"
|
"other": "Eltávolítja az alkalmazást?"
|
||||||
|
@ -213,10 +213,13 @@
|
|||||||
"removeFromObtainium": "Rimuovi da Obtainium",
|
"removeFromObtainium": "Rimuovi da Obtainium",
|
||||||
"uninstallFromDevice": "Disinstalla dal dispositivo",
|
"uninstallFromDevice": "Disinstalla dal dispositivo",
|
||||||
"onlyWorksWithNonVersionDetectApps": "Funziona solo per le App con il rilevamento della versione disattivato.",
|
"onlyWorksWithNonVersionDetectApps": "Funziona solo per le App con il rilevamento della versione disattivato.",
|
||||||
"useReleaseDateAsVersion": "Usa data di rilascio come versione",
|
"releaseDateAsVersion": "Usa data di rilascio come versione",
|
||||||
"releaseDateAsVersionExplanation": "Questa opzione dovrebbe essere usata solo per le App in cui il rilevamento della versione non funziona correttamente, ma è disponibile una data di rilascio.",
|
"releaseDateAsVersionExplanation": "Questa opzione dovrebbe essere usata solo per le App in cui il rilevamento della versione non funziona correttamente, ma è disponibile una data di rilascio.",
|
||||||
"changes": "Novità",
|
"changes": "Novità",
|
||||||
"releaseDate": "Data di rilascio",
|
"releaseDate": "Data di rilascio",
|
||||||
|
"importFromURLsInFile": "Import from URLs in File (like OPML)",
|
||||||
|
"versionDetection": "Version Detection",
|
||||||
|
"standardVersionDetection": "Standard version detection",
|
||||||
"removeAppQuestion": {
|
"removeAppQuestion": {
|
||||||
"one": "Rimuovere l'App?",
|
"one": "Rimuovere l'App?",
|
||||||
"other": "Rimuovere le App?"
|
"other": "Rimuovere le App?"
|
||||||
|
@ -107,7 +107,7 @@
|
|||||||
"line": "行",
|
"line": "行",
|
||||||
"searchX": "{}で検索",
|
"searchX": "{}で検索",
|
||||||
"noResults": "結果は見つかりませんでした",
|
"noResults": "結果は見つかりませんでした",
|
||||||
"importX": "{}をインポートする",
|
"importX": "{}をインポート",
|
||||||
"importedAppsIdDisclaimer": "インポートしたアプリが「未インストール」と表示されることがあります。\nこれを解決するには、Obtainiumから再インストールしてください。\nアプリのデータには影響しません。\n\nURLとサードパーティのインポートメソッドにのみ影響します。",
|
"importedAppsIdDisclaimer": "インポートしたアプリが「未インストール」と表示されることがあります。\nこれを解決するには、Obtainiumから再インストールしてください。\nアプリのデータには影響しません。\n\nURLとサードパーティのインポートメソッドにのみ影響します。",
|
||||||
"importErrors": "インポートエラー",
|
"importErrors": "インポートエラー",
|
||||||
"importedXOfYApps": "{} / {} アプリをインポートしました",
|
"importedXOfYApps": "{} / {} アプリをインポートしました",
|
||||||
@ -213,10 +213,13 @@
|
|||||||
"removeFromObtainium": "Obtainiumから削除する",
|
"removeFromObtainium": "Obtainiumから削除する",
|
||||||
"uninstallFromDevice": "デバイスからアンインストールする",
|
"uninstallFromDevice": "デバイスからアンインストールする",
|
||||||
"onlyWorksWithNonVersionDetectApps": "バージョン検出を無効にしているアプリにのみ動作します。",
|
"onlyWorksWithNonVersionDetectApps": "バージョン検出を無効にしているアプリにのみ動作します。",
|
||||||
"useReleaseDateAsVersion": "リリース日をバージョンとして使用する",
|
"releaseDateAsVersion": "リリース日をバージョンとして使用する",
|
||||||
"releaseDateAsVersionExplanation": "このオプションは、バージョン検出が正しく機能しないアプリで、リリース日が利用可能な場合にのみ使用する必要があります。",
|
"releaseDateAsVersionExplanation": "このオプションは、バージョン検出が正しく機能しないアプリで、リリース日が利用可能な場合にのみ使用する必要があります。",
|
||||||
"changes": "変更点",
|
"changes": "変更点",
|
||||||
"releaseDate": "リリース日",
|
"releaseDate": "リリース日",
|
||||||
|
"importFromURLsInFile": "ファイル(OPMLなど)内のURLからインポート",
|
||||||
|
"versionDetection": "バージョン検出",
|
||||||
|
"standardVersionDetection": "標準のバージョン検出",
|
||||||
"removeAppQuestion": {
|
"removeAppQuestion": {
|
||||||
"one": "アプリを削除しますか?",
|
"one": "アプリを削除しますか?",
|
||||||
"other": "アプリを削除しますか?"
|
"other": "アプリを削除しますか?"
|
||||||
|
@ -213,10 +213,13 @@
|
|||||||
"filterAPKsByRegEx": "Filter APKs by Regular Expression",
|
"filterAPKsByRegEx": "Filter APKs by Regular Expression",
|
||||||
"removeFromObtainium": "Remove from Obtainium",
|
"removeFromObtainium": "Remove from Obtainium",
|
||||||
"uninstallFromDevice": "Uninstall from Device",
|
"uninstallFromDevice": "Uninstall from Device",
|
||||||
"useReleaseDateAsVersion": "Use Release Date as Version",
|
"releaseDateAsVersion": "Use Release Date as Version",
|
||||||
"releaseDateAsVersionExplanation": "This option should only be used for Apps where version detection does not work correctly, but a release date is available.",
|
"releaseDateAsVersionExplanation": "This option should only be used for Apps where version detection does not work correctly, but a release date is available.",
|
||||||
"changes": "Changes",
|
"changes": "Changes",
|
||||||
"releaseDate": "Release Date",
|
"releaseDate": "Release Date",
|
||||||
|
"importFromURLsInFile": "Import from URLs in File (like OPML)",
|
||||||
|
"versionDetection": "Version Detection",
|
||||||
|
"standardVersionDetection": "Standard version detection",
|
||||||
"removeAppQuestion": {
|
"removeAppQuestion": {
|
||||||
"one": "删除应用?",
|
"one": "删除应用?",
|
||||||
"other": "删除应用?"
|
"other": "删除应用?"
|
||||||
|
@ -21,7 +21,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart';
|
|||||||
// ignore: implementation_imports
|
// ignore: implementation_imports
|
||||||
import 'package:easy_localization/src/localization.dart';
|
import 'package:easy_localization/src/localization.dart';
|
||||||
|
|
||||||
const String currentVersion = '0.11.2';
|
const String currentVersion = '0.11.5';
|
||||||
const String currentReleaseTag =
|
const String currentReleaseTag =
|
||||||
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
|
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
|
||||||
|
|
||||||
@ -211,6 +211,14 @@ class _ObtainiumState extends State<Obtainium> {
|
|||||||
false)
|
false)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
if (!supportedLocales
|
||||||
|
.map((e) => e.languageCode)
|
||||||
|
.contains(context.locale.languageCode) ||
|
||||||
|
settingsProvider.forcedLocale == null &&
|
||||||
|
context.deviceLocale.languageCode !=
|
||||||
|
context.locale.languageCode) {
|
||||||
|
settingsProvider.resetLocaleSafe(context);
|
||||||
|
}
|
||||||
// Register the background update task according to the user's setting
|
// Register the background update task according to the user's setting
|
||||||
if (existingUpdateInterval != settingsProvider.updateInterval) {
|
if (existingUpdateInterval != settingsProvider.updateInterval) {
|
||||||
if (existingUpdateInterval != -1) {
|
if (existingUpdateInterval != -1) {
|
||||||
|
@ -71,10 +71,6 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
var settingsProvider = context.read<SettingsProvider>();
|
var settingsProvider = context.read<SettingsProvider>();
|
||||||
() async {
|
() async {
|
||||||
var userPickedTrackOnly = additionalSettings['trackOnly'] == true;
|
var userPickedTrackOnly = additionalSettings['trackOnly'] == true;
|
||||||
var userPickedNoVersionDetection =
|
|
||||||
additionalSettings['noVersionDetection'] == true;
|
|
||||||
var userPickedReleaseDateAsVersion =
|
|
||||||
additionalSettings['releaseDateAsVersion'] == true;
|
|
||||||
var cont = true;
|
var cont = true;
|
||||||
if ((userPickedTrackOnly || pickedSource!.enforceTrackOnly) &&
|
if ((userPickedTrackOnly || pickedSource!.enforceTrackOnly) &&
|
||||||
// ignore: use_build_context_synchronously
|
// ignore: use_build_context_synchronously
|
||||||
@ -95,13 +91,13 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
null) {
|
null) {
|
||||||
cont = false;
|
cont = false;
|
||||||
}
|
}
|
||||||
if (userPickedReleaseDateAsVersion && // ignore: use_build_context_synchronously
|
if (additionalSettings['versionDetection'] == 'releaseDateAsVersion' &&
|
||||||
// ignore: use_build_context_synchronously
|
// ignore: use_build_context_synchronously
|
||||||
await showDialog(
|
await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext ctx) {
|
builder: (BuildContext ctx) {
|
||||||
return GeneratedFormModal(
|
return GeneratedFormModal(
|
||||||
title: tr('useReleaseDateAsVersion'),
|
title: tr('releaseDateAsVersion'),
|
||||||
items: const [],
|
items: const [],
|
||||||
message: tr('releaseDateAsVersionExplanation'),
|
message: tr('releaseDateAsVersionExplanation'),
|
||||||
);
|
);
|
||||||
@ -109,8 +105,7 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
null) {
|
null) {
|
||||||
cont = false;
|
cont = false;
|
||||||
}
|
}
|
||||||
if (!userPickedReleaseDateAsVersion &&
|
if (additionalSettings['versionDetection'] == 'noVersionDetection' &&
|
||||||
userPickedNoVersionDetection &&
|
|
||||||
// ignore: use_build_context_synchronously
|
// ignore: use_build_context_synchronously
|
||||||
await showDialog(
|
await showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
@ -129,9 +124,7 @@ class _AddAppPageState extends State<AddAppPage> {
|
|||||||
var trackOnly = pickedSource!.enforceTrackOnly || userPickedTrackOnly;
|
var trackOnly = pickedSource!.enforceTrackOnly || userPickedTrackOnly;
|
||||||
App app = await sourceProvider.getApp(
|
App app = await sourceProvider.getApp(
|
||||||
pickedSource!, userInput, additionalSettings,
|
pickedSource!, userInput, additionalSettings,
|
||||||
trackOnlyOverride: trackOnly,
|
trackOnlyOverride: trackOnly);
|
||||||
noVersionDetectionOverride: userPickedNoVersionDetection,
|
|
||||||
releaseDateAsVersionOverride: userPickedReleaseDateAsVersion);
|
|
||||||
if (!trackOnly) {
|
if (!trackOnly) {
|
||||||
await settingsProvider.getInstallPermission();
|
await settingsProvider.getInstallPermission();
|
||||||
}
|
}
|
||||||
|
@ -42,8 +42,6 @@ class _AppPageState extends State<AppPage> {
|
|||||||
getUpdate(app.app.id);
|
getUpdate(app.app.id);
|
||||||
}
|
}
|
||||||
var trackOnly = app?.app.additionalSettings['trackOnly'] == true;
|
var trackOnly = app?.app.additionalSettings['trackOnly'] == true;
|
||||||
var noVersionDetection =
|
|
||||||
app?.app.additionalSettings['noVersionDetection'] == true;
|
|
||||||
|
|
||||||
var infoColumn = Column(
|
var infoColumn = Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
@ -207,7 +205,8 @@ class _AppPageState extends State<AppPage> {
|
|||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||||
children: [
|
children: [
|
||||||
if (noVersionDetection &&
|
if (app?.app.additionalSettings['versionDetection'] !=
|
||||||
|
'standardVersionDetection' &&
|
||||||
!trackOnly &&
|
!trackOnly &&
|
||||||
app?.app.installedVersion != null &&
|
app?.app.installedVersion != null &&
|
||||||
app?.app.installedVersion != app?.app.latestVersion)
|
app?.app.installedVersion != app?.app.latestVersion)
|
||||||
@ -295,13 +294,11 @@ class _AppPageState extends State<AppPage> {
|
|||||||
context);
|
context);
|
||||||
}
|
}
|
||||||
if (app.app.additionalSettings[
|
if (app.app.additionalSettings[
|
||||||
'releaseDateAsVersion'] ==
|
'versionDetection'] ==
|
||||||
true) {
|
'releaseDateAsVersion') {
|
||||||
app.app.additionalSettings[
|
|
||||||
'noVersionDetection'] = true;
|
|
||||||
if (originalSettings[
|
if (originalSettings[
|
||||||
'releaseDateAsVersion'] !=
|
'versionDetection'] !=
|
||||||
true) {
|
'releaseDateAsVersion') {
|
||||||
if (app.app.releaseDate != null) {
|
if (app.app.releaseDate != null) {
|
||||||
bool isUpdated =
|
bool isUpdated =
|
||||||
app.app.installedVersion ==
|
app.app.installedVersion ==
|
||||||
@ -318,10 +315,8 @@ class _AppPageState extends State<AppPage> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (originalSettings[
|
} else if (originalSettings[
|
||||||
'releaseDateAsVersion'] ==
|
'versionDetection'] ==
|
||||||
true) {
|
'releaseDateAsVersion') {
|
||||||
app.app.additionalSettings[
|
|
||||||
'noVersionDetection'] = false;
|
|
||||||
app.app.installedVersion = app
|
app.app.installedVersion = app
|
||||||
.installedInfo
|
.installedInfo
|
||||||
?.versionName ??
|
?.versionName ??
|
||||||
|
@ -704,7 +704,7 @@ class AppsPageState extends State<AppsPage> {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
HapticFeedback.selectionClick();
|
HapticFeedback.selectionClick();
|
||||||
appsProvider.saveApps(selectedApps.map((a) {
|
appsProvider.saveApps(selectedApps.map((a) {
|
||||||
if (a.installedVersion != null && a.additionalSettings['noVersionDetection'] == true) {
|
if (a.installedVersion != null && a.additionalSettings['versionDetection'] != 'standardVersionDetection') {
|
||||||
a.installedVersion = a.latestVersion;
|
a.installedVersion = a.latestVersion;
|
||||||
}
|
}
|
||||||
return a;
|
return a;
|
||||||
|
@ -41,6 +41,66 @@ class _ImportExportPageState extends State<ImportExportPage> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
urlListImport({String? initValue, bool overrideInitValid = false}) {
|
||||||
|
showDialog<Map<String, dynamic>?>(
|
||||||
|
context: context,
|
||||||
|
builder: (BuildContext ctx) {
|
||||||
|
return GeneratedFormModal(
|
||||||
|
initValid: overrideInitValid,
|
||||||
|
title: tr('importFromURLList'),
|
||||||
|
items: [
|
||||||
|
[
|
||||||
|
GeneratedFormTextField('appURLList',
|
||||||
|
defaultValue: initValue ?? '',
|
||||||
|
label: tr('appURLList'),
|
||||||
|
max: 7,
|
||||||
|
additionalValidators: [
|
||||||
|
(dynamic value) {
|
||||||
|
if (value != null && value.isNotEmpty) {
|
||||||
|
var lines = value.trim().split('\n');
|
||||||
|
for (int i = 0; i < lines.length; i++) {
|
||||||
|
try {
|
||||||
|
sourceProvider.getSource(lines[i]);
|
||||||
|
} catch (e) {
|
||||||
|
return '${tr('line')} ${i + 1}: $e';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
])
|
||||||
|
]
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}).then((values) {
|
||||||
|
if (values != null) {
|
||||||
|
var urls = (values['appURLList'] as String).split('\n');
|
||||||
|
setState(() {
|
||||||
|
importInProgress = true;
|
||||||
|
});
|
||||||
|
appsProvider.addAppsByURL(urls).then((errors) {
|
||||||
|
if (errors.isEmpty) {
|
||||||
|
showError(tr('importedX', args: [plural('apps', urls.length)]),
|
||||||
|
context);
|
||||||
|
} else {
|
||||||
|
showDialog(
|
||||||
|
context: context,
|
||||||
|
builder: (BuildContext ctx) {
|
||||||
|
return ImportErrorDialog(
|
||||||
|
urlsLength: urls.length, errors: errors);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}).catchError((e) {
|
||||||
|
showError(e, context);
|
||||||
|
}).whenComplete(() {
|
||||||
|
setState(() {
|
||||||
|
importInProgress = false;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||||
body: CustomScrollView(slivers: <Widget>[
|
body: CustomScrollView(slivers: <Widget>[
|
||||||
@ -150,88 +210,60 @@ class _ImportExportPageState extends State<ImportExportPage> {
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
const Divider(
|
Column(
|
||||||
height: 32,
|
children: [
|
||||||
),
|
const Divider(
|
||||||
TextButton(
|
height: 32,
|
||||||
onPressed: importInProgress
|
),
|
||||||
? null
|
TextButton(
|
||||||
: () {
|
onPressed: importInProgress
|
||||||
showDialog<Map<String, dynamic>?>(
|
? null
|
||||||
context: context,
|
: () {
|
||||||
builder: (BuildContext ctx) {
|
urlListImport();
|
||||||
return GeneratedFormModal(
|
},
|
||||||
title: tr('importFromURLList'),
|
child: Text(
|
||||||
items: [
|
tr('importFromURLList'),
|
||||||
[
|
)),
|
||||||
GeneratedFormTextField(
|
const SizedBox(height: 8),
|
||||||
'appURLList',
|
TextButton(
|
||||||
label: tr('appURLList'),
|
onPressed: importInProgress
|
||||||
max: 7,
|
? null
|
||||||
additionalValidators: [
|
: () {
|
||||||
(dynamic value) {
|
FilePicker.platform
|
||||||
if (value != null &&
|
.pickFiles()
|
||||||
value.isNotEmpty) {
|
.then((result) {
|
||||||
var lines = value
|
if (result != null) {
|
||||||
.trim()
|
urlListImport(
|
||||||
.split('\n');
|
overrideInitValid: true,
|
||||||
for (int i = 0;
|
initValue:
|
||||||
i < lines.length;
|
RegExp('https?://[^"]+')
|
||||||
i++) {
|
.allMatches(File(result
|
||||||
try {
|
.files
|
||||||
sourceProvider
|
.single
|
||||||
.getSource(
|
.path!)
|
||||||
lines[i]);
|
.readAsStringSync())
|
||||||
} catch (e) {
|
.map((e) =>
|
||||||
return '${tr('line')} ${i + 1}: $e';
|
e.input.substring(
|
||||||
}
|
e.start, e.end))
|
||||||
}
|
.toSet()
|
||||||
}
|
.toList()
|
||||||
return null;
|
.where((url) {
|
||||||
}
|
try {
|
||||||
])
|
sourceProvider
|
||||||
]
|
.getSource(url);
|
||||||
],
|
return true;
|
||||||
);
|
} catch (e) {
|
||||||
}).then((values) {
|
return false;
|
||||||
if (values != null) {
|
}
|
||||||
var urls =
|
}).join('\n'));
|
||||||
(values['appURLList'] as String)
|
}
|
||||||
.split('\n');
|
|
||||||
setState(() {
|
|
||||||
importInProgress = true;
|
|
||||||
});
|
|
||||||
appsProvider
|
|
||||||
.addAppsByURL(urls)
|
|
||||||
.then((errors) {
|
|
||||||
if (errors.isEmpty) {
|
|
||||||
showError(
|
|
||||||
tr('importedX', args: [
|
|
||||||
plural('apps', urls.length)
|
|
||||||
]),
|
|
||||||
context);
|
|
||||||
} else {
|
|
||||||
showDialog(
|
|
||||||
context: context,
|
|
||||||
builder: (BuildContext ctx) {
|
|
||||||
return ImportErrorDialog(
|
|
||||||
urlsLength: urls.length,
|
|
||||||
errors: errors);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}).catchError((e) {
|
|
||||||
showError(e, context);
|
|
||||||
}).whenComplete(() {
|
|
||||||
setState(() {
|
|
||||||
importInProgress = false;
|
|
||||||
});
|
});
|
||||||
});
|
},
|
||||||
}
|
child: Text(
|
||||||
});
|
tr('importFromURLsInFile'),
|
||||||
},
|
)),
|
||||||
child: Text(
|
],
|
||||||
tr('importFromURLList'),
|
),
|
||||||
)),
|
|
||||||
...sourceProvider.sources
|
...sourceProvider.sources
|
||||||
.where((element) => element.canSearch)
|
.where((element) => element.canSearch)
|
||||||
.map((source) => Column(
|
.map((source) => Column(
|
||||||
@ -280,6 +312,7 @@ class _ImportExportPageState extends State<ImportExportPage> {
|
|||||||
if (urlsWithDescriptions
|
if (urlsWithDescriptions
|
||||||
.isNotEmpty) {
|
.isNotEmpty) {
|
||||||
var selectedUrls =
|
var selectedUrls =
|
||||||
|
// ignore: use_build_context_synchronously
|
||||||
await showDialog<
|
await showDialog<
|
||||||
List<
|
List<
|
||||||
String>?>(
|
String>?>(
|
||||||
@ -314,6 +347,7 @@ class _ImportExportPageState extends State<ImportExportPage> {
|
|||||||
]),
|
]),
|
||||||
context);
|
context);
|
||||||
} else {
|
} else {
|
||||||
|
// ignore: use_build_context_synchronously
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder:
|
builder:
|
||||||
@ -391,6 +425,7 @@ class _ImportExportPageState extends State<ImportExportPage> {
|
|||||||
e.toString())
|
e.toString())
|
||||||
.toList());
|
.toList());
|
||||||
var selectedUrls =
|
var selectedUrls =
|
||||||
|
// ignore: use_build_context_synchronously
|
||||||
await showDialog<
|
await showDialog<
|
||||||
List<String>?>(
|
List<String>?>(
|
||||||
context: context,
|
context: context,
|
||||||
@ -418,6 +453,7 @@ class _ImportExportPageState extends State<ImportExportPage> {
|
|||||||
]),
|
]),
|
||||||
context);
|
context);
|
||||||
} else {
|
} else {
|
||||||
|
// ignore: use_build_context_synchronously
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder:
|
builder:
|
||||||
|
@ -87,6 +87,7 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var sortDropdown = DropdownButtonFormField(
|
var sortDropdown = DropdownButtonFormField(
|
||||||
|
isExpanded: true,
|
||||||
decoration: InputDecoration(labelText: tr('appSortBy')),
|
decoration: InputDecoration(labelText: tr('appSortBy')),
|
||||||
value: settingsProvider.sortColumn,
|
value: settingsProvider.sortColumn,
|
||||||
items: [
|
items: [
|
||||||
@ -114,6 +115,7 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var orderDropdown = DropdownButtonFormField(
|
var orderDropdown = DropdownButtonFormField(
|
||||||
|
isExpanded: true,
|
||||||
decoration: InputDecoration(labelText: tr('appSortOrder')),
|
decoration: InputDecoration(labelText: tr('appSortOrder')),
|
||||||
value: settingsProvider.sortOrder,
|
value: settingsProvider.sortOrder,
|
||||||
items: [
|
items: [
|
||||||
@ -150,7 +152,7 @@ class _SettingsPageState extends State<SettingsPage> {
|
|||||||
if (value != null) {
|
if (value != null) {
|
||||||
context.setLocale(Locale(value));
|
context.setLocale(Locale(value));
|
||||||
} else {
|
} else {
|
||||||
context.resetLocale();
|
settingsProvider.resetLocaleSafe(context);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -467,8 +467,8 @@ class AppsProvider with ChangeNotifier {
|
|||||||
App? getCorrectedInstallStatusAppIfPossible(App app, AppInfo? installedInfo) {
|
App? getCorrectedInstallStatusAppIfPossible(App app, AppInfo? installedInfo) {
|
||||||
var modded = false;
|
var modded = false;
|
||||||
var trackOnly = app.additionalSettings['trackOnly'] == true;
|
var trackOnly = app.additionalSettings['trackOnly'] == true;
|
||||||
var noVersionDetection =
|
var noVersionDetection = app.additionalSettings['versionDetection'] !=
|
||||||
app.additionalSettings['noVersionDetection'] == true;
|
'standardVersionDetection';
|
||||||
if (installedInfo == null && app.installedVersion != null && !trackOnly) {
|
if (installedInfo == null && app.installedVersion != null && !trackOnly) {
|
||||||
app.installedVersion = null;
|
app.installedVersion = null;
|
||||||
modded = true;
|
modded = true;
|
||||||
|
@ -178,4 +178,15 @@ class SettingsProvider with ChangeNotifier {
|
|||||||
|
|
||||||
bool setEqual(Set<String> a, Set<String> b) =>
|
bool setEqual(Set<String> a, Set<String> b) =>
|
||||||
a.length == b.length && a.union(b).length == a.length;
|
a.length == b.length && a.union(b).length == a.length;
|
||||||
|
|
||||||
|
void resetLocaleSafe(BuildContext context) {
|
||||||
|
if (context.supportedLocales
|
||||||
|
.map((e) => e.languageCode)
|
||||||
|
.contains(context.deviceLocale.languageCode)) {
|
||||||
|
context.resetLocale();
|
||||||
|
} else {
|
||||||
|
context.setLocale(context.fallbackLocale!);
|
||||||
|
context.deleteSaveLocale();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -100,6 +100,20 @@ class App {
|
|||||||
additionalSettings['noVersionDetection'] =
|
additionalSettings['noVersionDetection'] =
|
||||||
json['noVersionDetection'] == 'true' || json['trackOnly'] == true;
|
json['noVersionDetection'] == 'true' || json['trackOnly'] == true;
|
||||||
}
|
}
|
||||||
|
// Convert bool style version detection options to dropdown style
|
||||||
|
if (additionalSettings['noVersionDetection'] == true) {
|
||||||
|
additionalSettings['versionDetection'] = 'noVersionDetection';
|
||||||
|
}
|
||||||
|
if (additionalSettings['releaseDateAsVersion'] == true) {
|
||||||
|
additionalSettings['versionDetection'] = 'releaseDateAsVersion';
|
||||||
|
additionalSettings.remove('releaseDateAsVersion');
|
||||||
|
}
|
||||||
|
if (additionalSettings['noVersionDetection'] != null) {
|
||||||
|
additionalSettings.remove('noVersionDetection');
|
||||||
|
}
|
||||||
|
if (additionalSettings['releaseDateAsVersion'] != null) {
|
||||||
|
additionalSettings.remove('releaseDateAsVersion');
|
||||||
|
}
|
||||||
// Ensure additionalSettings are correctly typed
|
// Ensure additionalSettings are correctly typed
|
||||||
for (var item in formItems) {
|
for (var item in formItems) {
|
||||||
if (additionalSettings[item.key] != null) {
|
if (additionalSettings[item.key] != null) {
|
||||||
@ -234,11 +248,16 @@ class AppSource {
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
GeneratedFormSwitch('releaseDateAsVersion',
|
GeneratedFormDropdown(
|
||||||
label: tr('useReleaseDateAsVersion'))
|
'versionDetection',
|
||||||
],
|
[
|
||||||
[
|
MapEntry(
|
||||||
GeneratedFormSwitch('noVersionDetection', label: tr('noVersionDetection'))
|
'standardVersionDetection', tr('standardVersionDetection')),
|
||||||
|
MapEntry('releaseDateAsVersion', tr('releaseDateAsVersion')),
|
||||||
|
MapEntry('noVersionDetection', tr('noVersionDetection'))
|
||||||
|
],
|
||||||
|
label: tr('versionDetection'),
|
||||||
|
defaultValue: 'standardVersionDetection')
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
GeneratedFormTextField('apkFilterRegEx',
|
GeneratedFormTextField('apkFilterRegEx',
|
||||||
@ -373,26 +392,15 @@ class SourceProvider {
|
|||||||
|
|
||||||
Future<App> getApp(
|
Future<App> getApp(
|
||||||
AppSource source, String url, Map<String, dynamic> additionalSettings,
|
AppSource source, String url, Map<String, dynamic> additionalSettings,
|
||||||
{App? currentApp,
|
{App? currentApp, bool trackOnlyOverride = false}) async {
|
||||||
bool trackOnlyOverride = false,
|
|
||||||
bool noVersionDetectionOverride = false,
|
|
||||||
bool releaseDateAsVersionOverride = false}) async {
|
|
||||||
if (trackOnlyOverride || source.enforceTrackOnly) {
|
if (trackOnlyOverride || source.enforceTrackOnly) {
|
||||||
additionalSettings['trackOnly'] = true;
|
additionalSettings['trackOnly'] = true;
|
||||||
}
|
}
|
||||||
if (releaseDateAsVersionOverride) {
|
|
||||||
additionalSettings['releaseDateAsVersion'] = true;
|
|
||||||
noVersionDetectionOverride =
|
|
||||||
true; // Rel. date as version means no ver. det.
|
|
||||||
}
|
|
||||||
if (noVersionDetectionOverride) {
|
|
||||||
additionalSettings['noVersionDetection'] = true;
|
|
||||||
}
|
|
||||||
var trackOnly = additionalSettings['trackOnly'] == true;
|
var trackOnly = additionalSettings['trackOnly'] == true;
|
||||||
String standardUrl = source.standardizeURL(preStandardizeUrl(url));
|
String standardUrl = source.standardizeURL(preStandardizeUrl(url));
|
||||||
APKDetails apk =
|
APKDetails apk =
|
||||||
await source.getLatestAPKDetails(standardUrl, additionalSettings);
|
await source.getLatestAPKDetails(standardUrl, additionalSettings);
|
||||||
if (additionalSettings['releaseDateAsVersion'] == true &&
|
if (additionalSettings['versionDetection'] == 'releaseDateAsVersion' &&
|
||||||
apk.releaseDate != null) {
|
apk.releaseDate != null) {
|
||||||
apk.version = apk.releaseDate!.microsecondsSinceEpoch.toString();
|
apk.version = apk.releaseDate!.microsecondsSinceEpoch.toString();
|
||||||
}
|
}
|
||||||
|
12
pubspec.lock
12
pubspec.lock
@ -234,10 +234,10 @@ packages:
|
|||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
name: flutter_launcher_icons
|
name: flutter_launcher_icons
|
||||||
sha256: ce0e501cfc258907842238e4ca605e74b7fd1cdf04b3b43e86c43f3e40a1592c
|
sha256: "02dcaf49d405f652b7160e882bacfc02cb497041bb2eab2a49b1c393cf9aac12"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "0.11.0"
|
version: "0.12.0"
|
||||||
flutter_lints:
|
flutter_lints:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description:
|
description:
|
||||||
@ -329,10 +329,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: image
|
name: image
|
||||||
sha256: "8e9d133755c3e84c73288363e6343157c383a0c6c56fc51afcc5d4d7180306d6"
|
sha256: "483a389d6ccb292b570c31b3a193779b1b0178e7eb571986d9a49904b6861227"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.3.0"
|
version: "4.0.15"
|
||||||
install_plugin_v2:
|
install_plugin_v2:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -670,10 +670,10 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: sqflite
|
name: sqflite
|
||||||
sha256: "78324387dc81df14f78df06019175a86a2ee0437624166c382e145d0a7fd9a4f"
|
sha256: "851d5040552cf911f4cabda08d003eca76b27da3ed0002978272e27c8fbf8ecc"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.2.4+1"
|
version: "2.2.5"
|
||||||
sqflite_common:
|
sqflite_common:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 0.11.2+121 # When changing this, update the tag in main() accordingly
|
version: 0.11.5+124 # When changing this, update the tag in main() accordingly
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.18.2 <3.0.0'
|
sdk: '>=2.18.2 <3.0.0'
|
||||||
@ -64,7 +64,7 @@ dependencies:
|
|||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_launcher_icons: ^0.11.0
|
flutter_launcher_icons: ^0.12.0
|
||||||
|
|
||||||
# The "flutter_lints" package below contains a set of recommended lints to
|
# The "flutter_lints" package below contains a set of recommended lints to
|
||||||
# encourage good coding practices. The lint set provided by the package is
|
# encourage good coding practices. The lint set provided by the package is
|
||||||
|
Reference in New Issue
Block a user