mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-17 07:06:43 +02:00
Compare commits
45 Commits
v0.15.10-b
...
v0.16.0-be
Author | SHA1 | Date | |
---|---|---|---|
b3de2e5d6b | |||
0183070b2b | |||
089bbc3ee9 | |||
b085801c2c | |||
ad4cae4288 | |||
95c285e1f7 | |||
c31a1912a5 | |||
99da1f8481 | |||
bf6b3a7da0 | |||
4ab4f58f65 | |||
29a76ac8e6 | |||
e2761ce284 | |||
dc45334cb9 | |||
56052bfd79 | |||
f5067d636a | |||
b173b1300a | |||
15a34e53bf | |||
183fb26988 | |||
2da9a8cd59 | |||
bb07000280 | |||
3a46ad2957 | |||
6b631d119c | |||
051762fcc1 | |||
595d5dc283 | |||
1d328f07e2 | |||
b1c8ac6f2a | |||
da619d37f7 | |||
236c4722e5 | |||
92f59116a0 | |||
c28040f0cb | |||
e8b9654320 | |||
be1a793a37 | |||
440720afb6 | |||
900d3e734e | |||
0bf096abb5 | |||
632efb9e22 | |||
bfc506e450 | |||
ffe612708c | |||
5d161160aa | |||
eadf3e5a29 | |||
6b6b4084a0 | |||
30a4633f72 | |||
5b78de5d61 | |||
f2ae078723 | |||
c3dacf2b9b |
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
@ -2,6 +2,10 @@ name: Build and Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
beta:
|
||||
type: boolean
|
||||
description: Is beta?
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@ -19,11 +23,23 @@ jobs:
|
||||
gpg_private_key: ${{ secrets.PGP_KEY_BASE64 }}
|
||||
passphrase: ${{ secrets.PGP_PASSPHRASE }}
|
||||
|
||||
- name: Extract Version
|
||||
id: extract_version
|
||||
run: |
|
||||
VERSION=$(grep -oP "^version: [^\+]+" pubspec.yaml | tail -c +10)
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
if [ ${{ inputs.beta }} == true ]; then BETA=true; else BETA=false; fi
|
||||
echo "beta=$BETA" >> $GITHUB_OUTPUT
|
||||
TAG="v$VERSION"
|
||||
if [ $BETA == true ]; then TAG="$TAG"-beta; fi
|
||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build APKs
|
||||
run: |
|
||||
sed -i 's/signingConfig signingConfigs.release//g' android/app/build.gradle
|
||||
flutter build apk --flavor normal && flutter build apk --split-per-abi --flavor normal
|
||||
for file in build/app/outputs/flutter-apk/app-*normal*.apk*; do mv "$file" "${file//-normal/}"; done
|
||||
flutter build apk --flavor fdroid -t lib/main_fdroid.dart && flutter build apk --split-per-abi --flavor fdroid -t lib/main_fdroid.dart
|
||||
rm ./build/app/outputs/flutter-apk/*.sha1
|
||||
ls -l ./build/app/outputs/flutter-apk/
|
||||
|
||||
@ -43,16 +59,6 @@ jobs:
|
||||
done
|
||||
rm apksign.keystore
|
||||
PGP_KEY_FINGERPRINT="${{ steps.import_pgp_key.outputs.fingerprint }}"
|
||||
|
||||
- name: Extract Version
|
||||
id: extract_version
|
||||
run: |
|
||||
VERSION=$(grep -oP "currentVersion = '\K[^']+" lib/main.dart)
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
TAG=$(grep -oP "'.*\\\$currentVersion.*'" lib/main.dart | head -c -2 | tail -c +2 | sed "s/\$currentVersion/$VERSION/g")
|
||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||
if [ -n "$(echo $TAG | grep -oP '\-beta$')" ]; then BETA=true; else BETA=false; fi
|
||||
echo "beta=$BETA" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Create Tag
|
||||
uses: mathieudutour/github-tag-action@v6.1
|
||||
|
BIN
assets/graphics/badge_obtainium.png
Normal file
BIN
assets/graphics/badge_obtainium.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Napredak: {}%",
|
||||
"pleaseWait": "Molimo sačekajte",
|
||||
"updateAvailable": "Ažuriranje dostupno",
|
||||
"estimateInBracketsShort": "(Procjena)",
|
||||
"notInstalled": "Nije instalirano",
|
||||
"estimateInBrackets": "(Procjena)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Označi sve",
|
||||
"deselectX": "Poništi odabir {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} će biti uklonjen iz Obtainiuma, ali će ostati instaliran na uređaju.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Promjene",
|
||||
"releaseDate": "Datum izdavanja",
|
||||
"importFromURLsInFile": "Uvoz iz URL-ova u datoteci (kao što je OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Otkrivanje verzije",
|
||||
"standardVersionDetection": "Detekcija standardne verzije",
|
||||
"groupByCategory": "Grupiši po kategoriji",
|
||||
@ -291,6 +291,15 @@
|
||||
"shizukuBinderNotFound": "Shizuku is not running",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Želite li ukloniti aplikaciju?",
|
||||
"other": "Želite li ukloniti aplikacije?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Pokrok: {}%",
|
||||
"pleaseWait": "Počkejte prosím",
|
||||
"updateAvailable": "Aktualizace je k dispozici",
|
||||
"estimateInBracketsShort": "(approx.)",
|
||||
"notInstalled": "Není nainstalováno",
|
||||
"estimateInBrackets": "(přibližně)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Vybrat vše",
|
||||
"deselectX": "{} deselected",
|
||||
"xWillBeRemovedButRemainInstalled": "{} bude odstraněn z Obtainium, ale zůstane nainstalován v zařízení.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Změny",
|
||||
"releaseDate": "Datum vydání",
|
||||
"importFromURLsInFile": "Importovat adresy URL ze souboru (např. OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Detekce verze",
|
||||
"standardVersionDetection": "Standardní detekce verze",
|
||||
"groupByCategory": "Seskupit podle kategorie",
|
||||
@ -291,6 +291,15 @@
|
||||
"shizukuBinderNotFound": "Shizuku neběží",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Odstranit Apku?",
|
||||
"other": "Odstranit Apky?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Fortschritt: {}%",
|
||||
"pleaseWait": "Bitte warten",
|
||||
"updateAvailable": "Aktualisierung verfügbar",
|
||||
"estimateInBracketsShort": "(ca.)",
|
||||
"notInstalled": "Nicht installiert",
|
||||
"estimateInBrackets": "(Ungefähr)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Alle auswählen",
|
||||
"deselectX": "{} abgewählt",
|
||||
"xWillBeRemovedButRemainInstalled": "{} wird aus Obtainium entfernt, bleibt aber auf dem Gerät installiert.",
|
||||
@ -73,8 +72,8 @@
|
||||
"unpinFromTop": "„Oben anheften“ aufheben",
|
||||
"resetInstallStatusForSelectedAppsQuestion": "Installationsstatus für ausgewählte Apps zurücksetzen?",
|
||||
"installStatusOfXWillBeResetExplanation": "Der Installationsstatus der ausgewählten Apps wird zurückgesetzt. Dies kann hilfreich sein, wenn die in Obtainium angezeigte App-Version aufgrund fehlgeschlagener Aktualisierungen oder anderer Probleme falsch ist.",
|
||||
"customLinkMessage": "These links work on devices with Obtainium installed",
|
||||
"shareAppConfigLinks": "Share app configuration as HTML link",
|
||||
"customLinkMessage": "Diese Links funktionieren auf Geräten, wo Obtainium installiert ist",
|
||||
"shareAppConfigLinks": "Teile die Appkonfiguration als HTML-Link",
|
||||
"shareSelectedAppURLs": "Ausgewählte App-URLs teilen",
|
||||
"resetInstallStatus": "Installationsstatus zurücksetzen",
|
||||
"more": "Mehr",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Änderungen",
|
||||
"releaseDate": "Veröffentlichungsdatum",
|
||||
"importFromURLsInFile": "Importieren von URLs aus Datei (z. B. OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Versionserkennung",
|
||||
"standardVersionDetection": "Standardversionserkennung",
|
||||
"groupByCategory": "Nach Kategorie gruppieren",
|
||||
@ -288,9 +288,20 @@
|
||||
"normal": "Normal",
|
||||
"shizuku": "Shizuku",
|
||||
"root": "Root",
|
||||
"shizukuBinderNotFound": "Shizuku läuft nicht",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"shizukuBinderNotFound": "Kompatibler Shizukudienst wurde nicht gefunden",
|
||||
"useSystemFont": "Verwende die Systemschriftart",
|
||||
"systemFontError": "Fehler beim Laden der Systemschriftart: {}",
|
||||
"useVersionCodeAsOSVersion": "Verwende die Appversion als erkannte Version vom Betriebssystem",
|
||||
"requestHeader": "Request Header",
|
||||
"useLatestAssetDateAsReleaseDate": "Den letzten Asset-Upload als Veröffentlichungsdatum verwenden",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "App entfernen?",
|
||||
"other": "Apps entfernen?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Progress: {}%",
|
||||
"pleaseWait": "Please Wait",
|
||||
"updateAvailable": "Update Available",
|
||||
"estimateInBracketsShort": "(Est.)",
|
||||
"notInstalled": "Not Installed",
|
||||
"estimateInBrackets": "(Estimate)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Select All",
|
||||
"deselectX": "Deselect {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} will be removed from Obtainium but remain installed on device.",
|
||||
@ -166,8 +165,8 @@
|
||||
"unknown": "Unknown",
|
||||
"none": "None",
|
||||
"never": "Never",
|
||||
"latestVersionX": "Latest Version: {}",
|
||||
"installedVersionX": "Installed Version: {}",
|
||||
"latestVersionX": "Latest: {}",
|
||||
"installedVersionX": "Installed: {}",
|
||||
"lastUpdateCheckX": "Last Update Check: {}",
|
||||
"remove": "Remove",
|
||||
"yesMarkUpdated": "Yes, Mark as Updated",
|
||||
@ -208,11 +207,12 @@
|
||||
"removeFromObtainium": "Remove from Obtainium",
|
||||
"uninstallFromDevice": "Uninstall from Device",
|
||||
"onlyWorksWithNonVersionDetectApps": "Only works for Apps with version detection disabled.",
|
||||
"releaseDateAsVersion": "Use Release Date as Version",
|
||||
"releaseDateAsVersion": "Use release date as version string",
|
||||
"releaseDateAsVersionExplanation": "This option should only be used for Apps where version detection does not work correctly, but a release date is available.",
|
||||
"changes": "Changes",
|
||||
"releaseDate": "Release Date",
|
||||
"importFromURLsInFile": "Import from URLs in File (like OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Version Detection",
|
||||
"standardVersionDetection": "Standard version detection",
|
||||
"groupByCategory": "Group by Category",
|
||||
@ -254,8 +254,8 @@
|
||||
"exemptFromBackgroundUpdates": "Exempt from background updates (if enabled)",
|
||||
"bgUpdatesOnWiFiOnly": "Disable background updates when not on WiFi",
|
||||
"autoSelectHighestVersionCode": "Auto-select highest versionCode APK",
|
||||
"versionExtractionRegEx": "Version Extraction RegEx",
|
||||
"matchGroupToUse": "Match Group to Use for Version Extraction Regex",
|
||||
"versionExtractionRegEx": "Version String Extraction RegEx",
|
||||
"matchGroupToUse": "Match Group to Use for Version String Extraction Regex",
|
||||
"highlightTouchTargets": "Highlight less obvious touch targets",
|
||||
"pickExportDir": "Pick Export Directory",
|
||||
"autoExportOnChanges": "Auto-export on changes",
|
||||
@ -269,7 +269,7 @@
|
||||
"debugMenu": "Debug Menu",
|
||||
"bgTaskStarted": "Background task started - check logs.",
|
||||
"runBgCheckNow": "Run Background Update Check Now",
|
||||
"versionExtractWholePage": "Apply Version Extraction Regex to Entire Page",
|
||||
"versionExtractWholePage": "Apply version string extraction Regex to entire page",
|
||||
"installing": "Installing",
|
||||
"skipUpdateNotifications": "Skip update notifications",
|
||||
"updatesAvailableNotifChannel": "Updates Available",
|
||||
@ -293,6 +293,15 @@
|
||||
"systemFontError": "Error loading the system font: {}",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Remove App?",
|
||||
"other": "Remove Apps?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Progreso: {}%",
|
||||
"pleaseWait": "Por favor, espere",
|
||||
"updateAvailable": "Actualización Disponible",
|
||||
"estimateInBracketsShort": "(Aprox.)",
|
||||
"notInstalled": "No Instalado",
|
||||
"estimateInBrackets": "(Aproximado)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Seleccionar Todo",
|
||||
"deselectX": "Deseleccionar {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} será eliminada de Obtainium pero continuará instalada en el dispositivo.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Cambios",
|
||||
"releaseDate": "Fecha de Publicación",
|
||||
"importFromURLsInFile": "Importar URLs desde archivo (como OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Detección de Versiones",
|
||||
"standardVersionDetection": "Por versión",
|
||||
"groupByCategory": "Agrupar por categoría",
|
||||
@ -291,6 +291,15 @@
|
||||
"shizukuBinderNotFound": "Shizuku no está operativo",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "¿Eliminar Aplicación?",
|
||||
"other": "¿Eliminar Aplicaciones?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "پیش رفتن: {}%",
|
||||
"pleaseWait": "لطفا صبر کنید",
|
||||
"updateAvailable": "بروزرسانی در دسترس",
|
||||
"estimateInBracketsShort": "(تخمین)",
|
||||
"notInstalled": "نصب نشده",
|
||||
"estimateInBrackets": "(تخمین زدن)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "انتخاب همه",
|
||||
"deselectX": "لغو انتخاب {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} از Obtainium حذف میشود اما روی دستگاه نصب میماند.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "تغییرات",
|
||||
"releaseDate": "تاریخ انتشار",
|
||||
"importFromURLsInFile": "درون ریزی از آدرس های اینترنتی موجود در فایل (مانند OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "تشخیص نسخه",
|
||||
"standardVersionDetection": "تشخیص نسخه استاندارد",
|
||||
"groupByCategory": "گروه بر اساس دسته",
|
||||
@ -291,6 +291,15 @@
|
||||
"shizukuBinderNotFound": "Shizuku در حال اجرا نیست",
|
||||
"useVersionCodeAsOSVersion": "استفاده کد نسخه برنامه به جای نسخه شناسایی شده توسط سیستم عامل استفاده کنید",
|
||||
"requestHeader": "درخواست سطر بالایی",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "برنامه حذف شود؟",
|
||||
"other": "برنامه ها حذف شوند؟"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Progrès: {}%",
|
||||
"pleaseWait": "Veuillez patienter",
|
||||
"updateAvailable": "Mise à jour disponible",
|
||||
"estimateInBracketsShort": "(Est.)",
|
||||
"notInstalled": "Pas installé",
|
||||
"estimateInBrackets": "(Estimation)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Tout sélectionner",
|
||||
"deselectX": "Déselectionner {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} sera supprimé d'Obtainium mais restera installé sur l'appareil.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Changements",
|
||||
"releaseDate": "Date de sortie",
|
||||
"importFromURLsInFile": "Importer à partir d'URL dans un fichier (comme OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Détection des versions",
|
||||
"standardVersionDetection": "Détection de version standard",
|
||||
"groupByCategory": "Group by Category",
|
||||
@ -291,6 +291,15 @@
|
||||
"shizukuBinderNotFound": "Shizuku is not running",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Supprimer l'application ?",
|
||||
"other": "Supprimer les applications ?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Folyamat: {}%",
|
||||
"pleaseWait": "Kis türelmet",
|
||||
"updateAvailable": "Frissítés érhető el",
|
||||
"estimateInBracketsShort": "(Becsült)",
|
||||
"notInstalled": "Nem telepített",
|
||||
"estimateInBrackets": "(Becslés)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Mindet kiválaszt",
|
||||
"deselectX": "Törölje {} kijelölését",
|
||||
"xWillBeRemovedButRemainInstalled": "A(z) {} el lesz távolítva az Obtainiumból, de továbbra is telepítve marad az eszközön.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Változtatások",
|
||||
"releaseDate": "Kiadás dátuma",
|
||||
"importFromURLsInFile": "Importálás fájlban található URL-ből (mint pl. OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Verzió érzékelés",
|
||||
"standardVersionDetection": "Alapért. verzió érzékelés",
|
||||
"groupByCategory": "Csoportosítás Kategória alapján",
|
||||
@ -291,6 +291,15 @@
|
||||
"shizukuBinderNotFound": "A Shizuku nem fut",
|
||||
"useVersionCodeAsOSVersion": "Az app versionCode használata a rendszer által észlelt verzióként",
|
||||
"requestHeader": "Kérelem fejléc",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Eltávolítja az alkalmazást?",
|
||||
"other": "Eltávolítja az alkalmazást?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Avanzamento: {}%",
|
||||
"pleaseWait": "In attesa",
|
||||
"updateAvailable": "Aggiornamento disponibile",
|
||||
"estimateInBracketsShort": "(stim.)",
|
||||
"notInstalled": "Non installato",
|
||||
"estimateInBrackets": "(stimato)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Seleziona tutto",
|
||||
"deselectX": "Deseleziona {}",
|
||||
"xWillBeRemovedButRemainInstalled": "Verà effettuata la rimozione di {}, ma non la disinstallazione.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Novità",
|
||||
"releaseDate": "Data di rilascio",
|
||||
"importFromURLsInFile": "Importa da URL in file (come OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Rilevamento di versione",
|
||||
"standardVersionDetection": "Rilevamento di versione standard",
|
||||
"groupByCategory": "Raggruppa per categoria",
|
||||
@ -291,6 +291,15 @@
|
||||
"shizukuBinderNotFound": "Shizuku non è in esecuzione",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Rimuovere l'app?",
|
||||
"other": "Rimuovere le app?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "ダウンロード中: {}%",
|
||||
"pleaseWait": "しばらくお待ちください",
|
||||
"updateAvailable": "アップデートが利用可能",
|
||||
"estimateInBracketsShort": "(推定)",
|
||||
"notInstalled": "未インストール",
|
||||
"estimateInBrackets": "(推定)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "すべて選択",
|
||||
"deselectX": "{}件の選択を解除",
|
||||
"xWillBeRemovedButRemainInstalled": "{} はObtainiumから削除されますが、デバイスにはインストールされたままです。",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "変更点",
|
||||
"releaseDate": "リリース日",
|
||||
"importFromURLsInFile": "ファイル(OPMLなど)内のURLからインポート",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "バージョン検出",
|
||||
"standardVersionDetection": "標準のバージョン検出",
|
||||
"groupByCategory": "カテゴリ別にグループ化する",
|
||||
@ -293,6 +293,15 @@
|
||||
"systemFontError": "システムフォントの読み込みエラー: {}",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "アプリを削除しますか?",
|
||||
"other": "アプリを削除しますか?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Vooruitgang: {}%",
|
||||
"pleaseWait": "Even geduld",
|
||||
"updateAvailable": "Update beschikbaar",
|
||||
"estimateInBracketsShort": "(Ong.)",
|
||||
"notInstalled": "Niet geinstalleerd",
|
||||
"estimateInBrackets": "(Ongeveer)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Selecteer alles",
|
||||
"deselectX": "Deselecteer {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} zal worden verwijderd uit Obtainium, maar blijft geïnstalleerd op het apparaat.",
|
||||
@ -73,8 +72,8 @@
|
||||
"unpinFromTop": "Losmaken van de bovenkant",
|
||||
"resetInstallStatusForSelectedAppsQuestion": "Installatiestatus resetten voor geselecteerde apps?",
|
||||
"installStatusOfXWillBeResetExplanation": "De installatiestatus van alle geselecteerde apps zal worden gereset.\n\nDit kan helpen wanneer de versie van de app die in Obtainium wordt weergegeven onjuist is vanwege mislukte updates of andere problemen.",
|
||||
"customLinkMessage": "These links work on devices with Obtainium installed",
|
||||
"shareAppConfigLinks": "Share app configuration as HTML link",
|
||||
"customLinkMessage": "Deze links werken op apparaten waarop Obtainium is geïnstalleerd",
|
||||
"shareAppConfigLinks": "App-configuratie delen als HTML-link",
|
||||
"shareSelectedAppURLs": "Deel geselecteerde app URL's",
|
||||
"resetInstallStatus": "Reset installatiestatus",
|
||||
"more": "Meer",
|
||||
@ -213,12 +212,13 @@
|
||||
"changes": "Veranderingen",
|
||||
"releaseDate": "Releasedatum",
|
||||
"importFromURLsInFile": "Importeren vanaf URL's in een bestand (zoals OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Versieherkenning",
|
||||
"standardVersionDetection": "Standaard versieherkenning",
|
||||
"groupByCategory": "Groepeer op categorie",
|
||||
"autoApkFilterByArch": "Poging om APK's te filteren op CPU-architectuur indien mogelijk",
|
||||
"overrideSource": "Bron overschrijven",
|
||||
"dontShowAgain": "Don't show this again",
|
||||
"dontShowAgain": "Laat dit niet meer zien",
|
||||
"dontShowTrackOnlyWarnings": "Geen waarschuwingen voor 'Track-Only' weergeven",
|
||||
"dontShowAPKOriginWarnings": "APK-herkomstwaarschuwingen niet weergeven",
|
||||
"moveNonInstalledAppsToBottom": "Verplaats niet-geïnstalleerde apps naar de onderkant van de apps-weergave",
|
||||
@ -237,7 +237,7 @@
|
||||
"addInfoInSettings": "Voeg deze informatie toe in de instellingen.",
|
||||
"githubSourceNote": "Beperkingen van GitHub kunnen worden vermeden door het gebruik van een API-sleutel.",
|
||||
"gitlabSourceNote": "GitLab APK-extractie werkt mogelijk niet zonder een API-sleutel.",
|
||||
"sortByLastLinkSegment": "Sort by only the last segment of the link",
|
||||
"sortByLastLinkSegment": "Sorteren op alleen het laatste segment van de link",
|
||||
"filterReleaseNotesByRegEx": "Filter release-opmerkingen met een reguliere expressie.",
|
||||
"customLinkFilterRegex": "Aangepaste APK-linkfilter met een reguliere expressie (Standaard '.apk$').",
|
||||
"appsPossiblyUpdated": "Poging tot app-updates",
|
||||
@ -247,10 +247,10 @@
|
||||
"backgroundUpdateReqsExplanation": "Achtergrondupdates zijn mogelijk niet voor alle apps mogelijk.",
|
||||
"backgroundUpdateLimitsExplanation": "Het succes van een installatie in de achtergrond kan alleen worden bepaald wanneer Obtainium is geopend.",
|
||||
"verifyLatestTag": "Verifieer de 'Laatste'-tag",
|
||||
"intermediateLinkRegex": "Filter for an 'Intermediate' Link to Visit",
|
||||
"filterByLinkText": "Filter links by link text",
|
||||
"intermediateLinkRegex": "Filter voor een 'Intermediaire' link om te bezoeken",
|
||||
"filterByLinkText": "Links filteren op linktekst",
|
||||
"intermediateLinkNotFound": "Tussenliggende link niet gevonden",
|
||||
"intermediateLink": "Intermediate link",
|
||||
"intermediateLink": "Intermediaire link",
|
||||
"exemptFromBackgroundUpdates": "Vrijgesteld van achtergrondupdates (indien ingeschakeld)",
|
||||
"bgUpdatesOnWiFiOnly": "Achtergrondupdates uitschakelen wanneer niet verbonden met WiFi",
|
||||
"autoSelectHighestVersionCode": "Automatisch de APK met de hoogste versiecode selecteren",
|
||||
@ -259,13 +259,13 @@
|
||||
"highlightTouchTargets": "Markeer minder voor de hand liggende aanraakdoelen.",
|
||||
"pickExportDir": "Kies de exportmap",
|
||||
"autoExportOnChanges": "Automatisch exporteren bij wijzigingen",
|
||||
"includeSettings": "Include settings",
|
||||
"includeSettings": "Instellingen opnemen",
|
||||
"filterVersionsByRegEx": "Filter versies met een reguliere expressie",
|
||||
"trySelectingSuggestedVersionCode": "Probeer de voorgestelde versiecode APK te selecteren",
|
||||
"dontSortReleasesList": "Volgorde van releases behouden vanuit de API",
|
||||
"reverseSort": "Sortering omkeren",
|
||||
"takeFirstLink": "Take first link",
|
||||
"skipSort": "Skip sorting",
|
||||
"takeFirstLink": "Neem de eerste link",
|
||||
"skipSort": "Sorteren overslaan",
|
||||
"debugMenu": "Debug menu",
|
||||
"bgTaskStarted": "Achtergrondtaak gestart - controleer de logs.",
|
||||
"runBgCheckNow": "Voer nu een achtergrondupdatecontrole uit",
|
||||
@ -281,16 +281,25 @@
|
||||
"completeAppInstallationNotifChannel": "Voltooien van de app-installatie",
|
||||
"checkingForUpdatesNotifChannel": "Controleren op updates",
|
||||
"onlyCheckInstalledOrTrackOnlyApps": "Alleen geïnstalleerde en Track-Only apps controleren op updates",
|
||||
"supportFixedAPKURL": "Support fixed APK URLs",
|
||||
"selectX": "Select {}",
|
||||
"parallelDownloads": "Allow parallel downloads",
|
||||
"installMethod": "Installation method",
|
||||
"normal": "Normal",
|
||||
"supportFixedAPKURL": "Ondersteuning vaste APK URL's",
|
||||
"selectX": "Selecteer {}",
|
||||
"parallelDownloads": "Parallelle downloads toestaan",
|
||||
"installMethod": "Installatiemethode",
|
||||
"normal": "Normaal",
|
||||
"shizuku": "Shizuku",
|
||||
"root": "Root",
|
||||
"shizukuBinderNotFound": "Shizuku is not running",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"shizukuBinderNotFound": "Shizuku draait niet",
|
||||
"useVersionCodeAsOSVersion": "Gebruik app versieCode als door OS gedetecteerde versie",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Gebruik laatste upload als releasedatum",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "App verwijderen?",
|
||||
"other": "Apps verwijderen?"
|
||||
@ -343,4 +352,4 @@
|
||||
"one": "{} en nog 1 app zijn mogelijk bijgewerkt.",
|
||||
"other": "{} en {} meer apps zijn mogelijk bijgwerkt."
|
||||
}
|
||||
}
|
||||
}
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Postęp: {}%",
|
||||
"pleaseWait": "Proszę czekać",
|
||||
"updateAvailable": "Dostępna aktualizacja",
|
||||
"estimateInBracketsShort": "(Szac.)",
|
||||
"notInstalled": "Nie zainstalowano",
|
||||
"estimateInBrackets": "(Szacunkowo)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Zaznacz wszystkie",
|
||||
"deselectX": "Odznacz {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} zostanie usunięty z Obtainium, ale pozostanie zainstalowany na urządzeniu.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Zmiany",
|
||||
"releaseDate": "Data wydania",
|
||||
"importFromURLsInFile": "Importuj z adresów URL w pliku (typu OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Wykrywanie wersji",
|
||||
"standardVersionDetection": "Standardowe wykrywanie wersji",
|
||||
"groupByCategory": "Grupuj według kategorii",
|
||||
@ -291,6 +291,15 @@
|
||||
"shizukuBinderNotFound": "Shizuku is not running",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Usunąć aplikację?",
|
||||
"few": "Usunąć aplikacje?",
|
||||
|
@ -54,6 +54,7 @@
|
||||
"estimateInBracketsShort": "(Aprox.)",
|
||||
"notInstalled": "Não instalado",
|
||||
"estimateInBrackets": "(Aproximado)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Selecionar todos",
|
||||
"deselectX": "Deselecionar {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} será removido do Obtainium mais permanecerá instalado no dispositivo.",
|
||||
@ -213,7 +214,7 @@
|
||||
"changes": "Mudanças",
|
||||
"releaseDate": "Data de lançamento",
|
||||
"importFromURLsInFile": "Importar de URLs em arquivo (como OPML)",
|
||||
"versionDetection": "Detecção de Versão",
|
||||
"versionDetection": "Detecção de versão",
|
||||
"standardVersionDetection": "Detecção de versão padrão",
|
||||
"groupByCategory": "Agroupar por categoria",
|
||||
"autoApkFilterByArch": "Tente filtrar APKs por arquitetura de CPU, se possível",
|
||||
@ -222,81 +223,91 @@
|
||||
"dontShowTrackOnlyWarnings": "Não mostrar avisos 'Apenas Monitorar'",
|
||||
"dontShowAPKOriginWarnings": "Não mostrar avisos de origem da APK",
|
||||
"moveNonInstalledAppsToBottom": "Mover aplicativos não instalados para o fundo da lista de aplicativos",
|
||||
"gitlabPATLabel": "Token de Acceso Pessoal do Gitlab\n(Ativa Pesquisa e Melhor Descoberta de APKs)",
|
||||
"gitlabPATLabel": "Token de Acesso Pessoal do Gitlab\n(Ativa pesquisa e melhora a descoberta de APKs)",
|
||||
"about": "Sobre",
|
||||
"requiresCredentialsInSettings": "{}: Isso requer credenciais adicionais (em Configurações)",
|
||||
"checkOnStart": "Checar por atualizações ao iniciar ",
|
||||
"checkOnStart": "Verificar se há atualizações ao iniciar",
|
||||
"tryInferAppIdFromCode": "Tente inferir o ID do aplicativo pelo código-fonte",
|
||||
"removeOnExternalUninstall": "Remover automaticamente aplicativos desinstalados externamente",
|
||||
"pickHighestVersionCode": "Auto-selecionar o maior numero de versão do APK",
|
||||
"pickHighestVersionCode": "Auto-selecionar o maior número de versão do APK",
|
||||
"checkUpdateOnDetailPage": "Checar por atualizações ao abrir a página de detalhes de um aplicativo",
|
||||
"disablePageTransitions": "Desativar animações de transição de pagina",
|
||||
"reversePageTransitions": "Reverter animações de transição de pagina",
|
||||
"minStarCount": "Contagem Minima de Estrelas",
|
||||
"disablePageTransitions": "Desativar animações de transição de página",
|
||||
"reversePageTransitions": "Reverter animações de transição de página",
|
||||
"minStarCount": "Contagem mínima de estrelas",
|
||||
"addInfoBelow": "Adicionar essa informação abaixo.",
|
||||
"addInfoInSettings": "Adicionar essa informação nas configurações.",
|
||||
"githubSourceNote": "A limitação de taxa do GitHub pode ser evitada usando uma chave de API.",
|
||||
"gitlabSourceNote": "A extração de APK do GitLab pode não funcionar sem uma chave de API.",
|
||||
"sortByLastLinkSegment": "Sort by only the last segment of the link",
|
||||
"filterReleaseNotesByRegEx": "Filtrar Notas de Lançamento por Expressão Regular",
|
||||
"customLinkFilterRegex": "Filtro de Link Personalizado por Expressão Regular (Padrão '.apk$')",
|
||||
"gitlabSourceNote": "A extração de endereço de download do APK no GitLab provavelmente não funcione sem que seja fornecido uma chave de API.",
|
||||
"sortByLastLinkSegment": "Ordenar apenas usando o último segmento do link",
|
||||
"filterReleaseNotesByRegEx": "Filtrar notas de versão usando Regex",
|
||||
"customLinkFilterRegex": "Filtro de link personalizado usando expressão regular (Padrão '.apk$')",
|
||||
"appsPossiblyUpdated": "Tentativas de atualização de aplicativos",
|
||||
"appsPossiblyUpdatedNotifDescription": "Notifica o usuário de que atualizações de um ou mais aplicativos foram potencialmente aplicadas em segundo-plano",
|
||||
"xWasPossiblyUpdatedToY": "{} pode ter sido atualizado para {}.",
|
||||
"enableBackgroundUpdates": "Ativar atualizações em segundo-plano",
|
||||
"backgroundUpdateReqsExplanation": "Atualizações em segundo-plano podem não ser possíveis para todos os aplicativos.",
|
||||
"backgroundUpdateLimitsExplanation": "O sucesso de uma instalação em segundo-plano só pode ser determinado quando o Obtainium é aberto.",
|
||||
"verifyLatestTag": "Verifique a 'ultima' etiqueta",
|
||||
"verifyLatestTag": "Verifique a 'última' etiqueta",
|
||||
"intermediateLinkRegex": "Filter for an 'Intermediate' Link to Visit",
|
||||
"filterByLinkText": "Filter links by link text",
|
||||
"filterByLinkText": "Filtrar links pelo texto do link",
|
||||
"intermediateLinkNotFound": "Link intermediário não encontrado",
|
||||
"intermediateLink": "Intermediate link",
|
||||
"intermediateLink": "Link intermediário",
|
||||
"exemptFromBackgroundUpdates": "Isento de atualizações em segundo-plano (se ativadas)",
|
||||
"bgUpdatesOnWiFiOnly": "Desative atualizações em segundo-plano quando não estiver em WiFi",
|
||||
"autoSelectHighestVersionCode": "Auto-selecionar o maior codigo de versão",
|
||||
"versionExtractionRegEx": "RegEx para Extração de Versão",
|
||||
"matchGroupToUse": "Grupo de Seleção para Usar",
|
||||
"highlightTouchTargets": "Destaque areas de toque menos óbvias",
|
||||
"pickExportDir": "Escolher Diretorio de Exportação",
|
||||
"bgUpdatesOnWiFiOnly": "Desative as atualizações em segundo-plano quando não estiver conectado no Wi-Fi",
|
||||
"autoSelectHighestVersionCode": "Auto-selecionar a versão mais recente",
|
||||
"versionExtractionRegEx": "Regex de extração de versão",
|
||||
"matchGroupToUse": "Grupo correspondente a ser usado no Regex de extração de versão",
|
||||
"highlightTouchTargets": "Realçar áreas sensíveis ao toque que são menos óbvias",
|
||||
"pickExportDir": "Escolher diretório para a exportação",
|
||||
"autoExportOnChanges": "Auto-exportar em mudanças",
|
||||
"includeSettings": "Include settings",
|
||||
"filterVersionsByRegEx": "Filtrar Versões por Expressão Regular",
|
||||
"includeSettings": "Incluir configurações",
|
||||
"filterVersionsByRegEx": "Filtrar versões por expressão regular",
|
||||
"trySelectingSuggestedVersionCode": "Tente selecionar a versão sugerida",
|
||||
"dontSortReleasesList": "Reter a ordem de lançamento da API",
|
||||
"reverseSort": "Ordenação reversa",
|
||||
"takeFirstLink": "Take first link",
|
||||
"skipSort": "Skip sorting",
|
||||
"debugMenu": "Menu Debug",
|
||||
"takeFirstLink": "Obter primeiro link",
|
||||
"skipSort": "Ignorar ordenação",
|
||||
"debugMenu": "Menu debug",
|
||||
"bgTaskStarted": "Tarefa em segundo-plano iniciada - verifique os logs.",
|
||||
"runBgCheckNow": "Execute a verificação de atualização em segundo-plano agora",
|
||||
"versionExtractWholePage": "Aplicar Regex de Extração de Versão à Página Inteira",
|
||||
"runBgCheckNow": "Execute agora em segundo-plano a verificação de atualizações",
|
||||
"versionExtractWholePage": "Aplicar regex de extração de versão à página inteira",
|
||||
"installing": "Instalando",
|
||||
"skipUpdateNotifications": "Pular notificações de update",
|
||||
"updatesAvailableNotifChannel": "Atualizações Disponíveis",
|
||||
"appsUpdatedNotifChannel": "Aplicativos Atualizados",
|
||||
"updatesAvailableNotifChannel": "Atualizações disponíveis",
|
||||
"appsUpdatedNotifChannel": "Aplicativos atualizados",
|
||||
"appsPossiblyUpdatedNotifChannel": "Tentativas de atualização de aplicativos",
|
||||
"errorCheckingUpdatesNotifChannel": "Erro ao Procurar por Atualizações",
|
||||
"appsRemovedNotifChannel": "Aplicativos Removidos",
|
||||
"appsRemovedNotifChannel": "Aplicativos removidos",
|
||||
"downloadingXNotifChannel": "Baixando {}",
|
||||
"completeAppInstallationNotifChannel": "Instalação completa do aplicativo",
|
||||
"checkingForUpdatesNotifChannel": "Checando por Atualizações",
|
||||
"onlyCheckInstalledOrTrackOnlyApps": "Apenas checar apps instalados e 'Apenas Seguir' por updates",
|
||||
"supportFixedAPKURL": "Suporte APK com URLs fixas",
|
||||
"onlyCheckInstalledOrTrackOnlyApps": "Apenas checar aplicativos instalados e 'Apenas Seguir' por updates",
|
||||
"supportFixedAPKURL": "Suporte a APK com URLs fixas",
|
||||
"selectX": "Selecionar {}",
|
||||
"parallelDownloads": "Permitir downloads paralelos",
|
||||
"installMethod": "Método de instalação",
|
||||
"normal": "Normal",
|
||||
"shizuku": "Shizuku",
|
||||
"root": "Root",
|
||||
"shizukuBinderNotFound": "Shizuku não está rodando",
|
||||
"shizukuBinderNotFound": "O Shizuku não está rodando",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useSystemFont": "Usar fonte padrão do sistema",
|
||||
"systemFontError": "Erro ao carregar a fonte do sistema: {}",
|
||||
"requestHeader": "Requisitar cabeçalho",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Remover aplicativo?",
|
||||
"other": "Remover aplicativos?"
|
||||
},
|
||||
"tooManyRequestsTryAgainInMinutes": {
|
||||
"one": "Muitas solicitações (taxa limitada) - tente novamente em {} minuto",
|
||||
"one": "Muitas solicitações (taxa de solicitações limitada) - tente novamente em {} minuto",
|
||||
"other": "Muitas solicitações (taxa limitada) - tente novamente em {} minutos"
|
||||
},
|
||||
"bgUpdateGotErrorRetryInMinutes": {
|
||||
@ -328,19 +339,19 @@
|
||||
"other": "{} Dias"
|
||||
},
|
||||
"clearedNLogsBeforeXAfterY": {
|
||||
"one": "Limpo {n} log (antes = {antes}, depois = {depois})",
|
||||
"other": "Limpados {n} logs (antes = {antes}, depois = {depois})"
|
||||
"one": "Foi limpo {n} log (antes = {antes}, depois = {depois})",
|
||||
"other": "Foram limpos {n} logs (antes = {antes}, depois = {depois})"
|
||||
},
|
||||
"xAndNMoreUpdatesAvailable": {
|
||||
"one": "{} e 1 outro app tem atualizações.",
|
||||
"other": "{} e {} outros apps tem atualizações."
|
||||
"one": "{} e 1 outro aplicativo possui atualizações.",
|
||||
"other": "{} e {} outros aplicativo possuem atualizações."
|
||||
},
|
||||
"xAndNMoreUpdatesInstalled": {
|
||||
"one": "{} e 1 outro app foi atualizado.",
|
||||
"other": "{} e {} outros apps foram atualizados."
|
||||
"one": "{} e um outro aplicativo foi atualizado.",
|
||||
"other": "{} e {} outros aplicativos foram atualizados."
|
||||
},
|
||||
"xAndNMoreUpdatesPossiblyInstalled": {
|
||||
"one": "{} e 1 outro app pode ter sido atualizado.",
|
||||
"other": "{} e {} outros apps podem ter sido atualizados."
|
||||
"one": "{} e 1 outro aplicativo pode ter sido atualizado.",
|
||||
"other": "{} e {} outros aplicativos podem ter sido atualizados."
|
||||
}
|
||||
}
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Прогресс: {}%",
|
||||
"pleaseWait": "Пожалуйста, подождите",
|
||||
"updateAvailable": "Доступно обновление",
|
||||
"estimateInBracketsShort": "(Оценка)",
|
||||
"notInstalled": "Не установлено",
|
||||
"estimateInBrackets": "(Оценка)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Выбрать всё",
|
||||
"deselectX": "Отменить выбор {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} будет удалено из Obtainium, но останется на устройстве",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Изменения",
|
||||
"releaseDate": "Дата выпуска",
|
||||
"importFromURLsInFile": "Импорт из файла URL-адресов (например: OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Определение версии",
|
||||
"standardVersionDetection": "Стандартное",
|
||||
"groupByCategory": "Группировать по категориям",
|
||||
@ -293,6 +293,15 @@
|
||||
"systemFontError": "Ошибка загрузки системного шрифта: {}",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Удалить приложение?",
|
||||
"other": "Удалить приложения?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Progress: {}%",
|
||||
"pleaseWait": "Vänta",
|
||||
"updateAvailable": "Uppdatering Tillgänglig",
|
||||
"estimateInBracketsShort": "(Est.)",
|
||||
"notInstalled": "Inte Installerad",
|
||||
"estimateInBrackets": "(Uppskattning)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Välj Alla",
|
||||
"deselectX": "Avmarkera {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} kommer tas bort från Obtainium men kommer vara fortsatt installerad på enheten.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Ändringar",
|
||||
"releaseDate": "Releasedatum",
|
||||
"importFromURLsInFile": "Importera från URL:er i fil (som OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Versionsdetektering",
|
||||
"standardVersionDetection": "Standardversionsdetektering",
|
||||
"groupByCategory": "Gruppera via Kategori",
|
||||
@ -277,6 +277,15 @@
|
||||
"shizukuBinderNotFound": "Shizuku is not running",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Ta Bort App?",
|
||||
"other": "Ta Bort Appar?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "İlerleme: {}%",
|
||||
"pleaseWait": "Lütfen Bekleyin",
|
||||
"updateAvailable": "Güncelleme Var",
|
||||
"estimateInBracketsShort": "(Est.)",
|
||||
"notInstalled": "Yüklenmedi",
|
||||
"estimateInBrackets": "(Tahmini)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Hepsini Seç",
|
||||
"deselectX": "{}'yi Seçimden Kaldır",
|
||||
"xWillBeRemovedButRemainInstalled": "{} Obtainium'dan kaldırılacak ancak cihazınızda yüklü kalacaktır.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Değişiklikler",
|
||||
"releaseDate": "Yayın Tarihi",
|
||||
"importFromURLsInFile": "Dosyadaki URL'lerden İçe Aktar",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Sürüm Tespiti",
|
||||
"standardVersionDetection": "Standart sürüm tespiti",
|
||||
"groupByCategory": "Kategoriye Göre Grupla",
|
||||
@ -291,6 +291,15 @@
|
||||
"shizukuBinderNotFound": "Shizuku is not running",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "Uygulamayı Kaldır?",
|
||||
"other": "Uygulamaları Kaldır?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "Đang tải {}%",
|
||||
"pleaseWait": "Vui lòng chờ",
|
||||
"updateAvailable": "Có sẵn bản cập nhật",
|
||||
"estimateInBracketsShort": "(Ước lượng.)",
|
||||
"notInstalled": "Chưa cài đặt",
|
||||
"estimateInBrackets": "(Ước lượng)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "Chọn tất cả",
|
||||
"deselectX": "Bỏ chọn {}",
|
||||
"xWillBeRemovedButRemainInstalled": "{} sẽ bị xóa khỏi Obtainium nhưng vẫn còn cài đặt trên thiết bị.",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "Thay đổi",
|
||||
"releaseDate": "Ngày phát hành",
|
||||
"importFromURLsInFile": "Nhập từ URL trong Tệp (như OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "Phát hiện phiên bản",
|
||||
"standardVersionDetection": "Phát hiện phiên bản tiêu chuẩn",
|
||||
"groupByCategory": "Nhóm theo thể loại",
|
||||
@ -289,6 +289,15 @@
|
||||
"shizuku": "Shizuku",
|
||||
"root": "Root",
|
||||
"shizukuBinderNotFound": "Shizuku chưa khởi động",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion":{
|
||||
"one": "Gỡ ứng dụng?",
|
||||
"other": "Gỡ ứng dụng?"
|
||||
|
@ -51,9 +51,8 @@
|
||||
"percentProgress": "进度:{}%",
|
||||
"pleaseWait": "请稍候",
|
||||
"updateAvailable": "更新可用",
|
||||
"estimateInBracketsShort": "(推测)",
|
||||
"notInstalled": "未安装",
|
||||
"estimateInBrackets": "(推测)",
|
||||
"pseudoVersion": "pseudo-version",
|
||||
"selectAll": "全选",
|
||||
"deselectX": "取消选择 {}",
|
||||
"xWillBeRemovedButRemainInstalled": "“{}”将从 Obtainium 中删除,但仍安装在您的设备中。",
|
||||
@ -213,6 +212,7 @@
|
||||
"changes": "更新日志",
|
||||
"releaseDate": "发行日期",
|
||||
"importFromURLsInFile": "从文件中的 URL 导入(如 OPML)",
|
||||
"versionDetectionExplanation": "Reconcile version string with version detected from OS",
|
||||
"versionDetection": "版本检测",
|
||||
"standardVersionDetection": "常规版本检测",
|
||||
"groupByCategory": "按类别分组显示",
|
||||
@ -293,6 +293,15 @@
|
||||
"systemFontError": "加载系统字体出错:{}",
|
||||
"useVersionCodeAsOSVersion": "Use app versionCode as OS-detected version",
|
||||
"requestHeader": "Request header",
|
||||
"useLatestAssetDateAsReleaseDate": "Use latest asset upload as release date",
|
||||
"defaultPseudoVersioningMethod": "Default Pseudo-Versioning Method",
|
||||
"partialAPKHash": "Partial APK Hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"directAPKLink": "Direct APK Link",
|
||||
"pseudoVersionInUse": "A Pseudo-Version is in Use",
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"removeAppQuestion": {
|
||||
"one": "是否删除应用?",
|
||||
"other": "是否删除应用?"
|
||||
|
@ -6,6 +6,7 @@ import 'package:obtainium/providers/source_provider.dart';
|
||||
class APKCombo extends AppSource {
|
||||
APKCombo() {
|
||||
hosts = ['apkcombo.com'];
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -11,6 +11,7 @@ class APKMirror extends AppSource {
|
||||
APKMirror() {
|
||||
hosts = ['apkmirror.com'];
|
||||
enforceTrackOnly = true;
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
|
||||
additionalSourceAppSpecificSettingFormItems = [
|
||||
[
|
||||
|
@ -23,6 +23,7 @@ class APKPure extends AppSource {
|
||||
hosts = ['apkpure.net', 'apkpure.com'];
|
||||
allowSubDomains = true;
|
||||
naiveStandardVersionDetection = true;
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -10,6 +10,7 @@ class Aptoide extends AppSource {
|
||||
name = 'Aptoide';
|
||||
allowSubDomains = true;
|
||||
naiveStandardVersionDetection = true;
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
}
|
||||
|
||||
@override
|
||||
|
44
lib/app_sources/directAPKLink.dart
Normal file
44
lib/app_sources/directAPKLink.dart
Normal file
@ -0,0 +1,44 @@
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:obtainium/app_sources/html.dart';
|
||||
import 'package:obtainium/providers/source_provider.dart';
|
||||
|
||||
class DirectAPKLink extends AppSource {
|
||||
HTML html = HTML();
|
||||
|
||||
DirectAPKLink() {
|
||||
neverAutoSelect = true;
|
||||
name = tr('directAPKLink');
|
||||
additionalSourceAppSpecificSettingFormItems = html
|
||||
.additionalSourceAppSpecificSettingFormItems
|
||||
.where((element) => element
|
||||
.where((element) => element.key == 'requestHeader')
|
||||
.isNotEmpty)
|
||||
.toList();
|
||||
excludeCommonSettingKeys = [
|
||||
'versionExtractionRegEx',
|
||||
'matchGroupToUse',
|
||||
'versionDetection',
|
||||
'useVersionCodeAsOSVersion',
|
||||
'apkFilterRegEx',
|
||||
'autoApkFilterByArch'
|
||||
];
|
||||
}
|
||||
|
||||
@override
|
||||
Future<APKDetails> getLatestAPKDetails(
|
||||
String standardUrl,
|
||||
Map<String, dynamic> additionalSettings,
|
||||
) async {
|
||||
var additionalSettingsNew =
|
||||
getDefaultValuesFromFormItems(html.combinedAppSpecificSettingFormItems);
|
||||
for (var s in additionalSettings.keys) {
|
||||
if (additionalSettingsNew.containsKey(s)) {
|
||||
additionalSettingsNew[s] = additionalSettings[s];
|
||||
}
|
||||
}
|
||||
additionalSettingsNew['defaultPseudoVersioningMethod'] = 'partialAPKHash';
|
||||
additionalSettingsNew['directAPKLink'] = true;
|
||||
additionalSettings['versionDetection'] = false;
|
||||
return html.getLatestAPKDetails(standardUrl, additionalSettingsNew);
|
||||
}
|
||||
}
|
@ -10,6 +10,7 @@ class FDroidRepo extends AppSource {
|
||||
canSearch = true;
|
||||
excludeFromMassSearch = true;
|
||||
neverAutoSelect = true;
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
|
||||
additionalSourceAppSpecificSettingFormItems = [
|
||||
[
|
||||
|
@ -16,6 +16,7 @@ class GitHub extends AppSource {
|
||||
GitHub() {
|
||||
hosts = ['github.com'];
|
||||
appIdInferIsOptional = true;
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
|
||||
sourceConfigSettingFormItems = [
|
||||
GeneratedFormTextField('github-creds',
|
||||
@ -76,6 +77,10 @@ class GitHub extends AppSource {
|
||||
[
|
||||
GeneratedFormSwitch('dontSortReleasesList',
|
||||
label: tr('dontSortReleasesList'))
|
||||
],
|
||||
[
|
||||
GeneratedFormSwitch('useLatestAssetDateAsReleaseDate',
|
||||
label: tr('useLatestAssetDateAsReleaseDate'), defaultValue: false)
|
||||
]
|
||||
];
|
||||
|
||||
@ -237,6 +242,8 @@ class GitHub extends AppSource {
|
||||
bool verifyLatestTag = additionalSettings['verifyLatestTag'] == true;
|
||||
bool dontSortReleasesList =
|
||||
additionalSettings['dontSortReleasesList'] == true;
|
||||
bool useLatestAssetDateAsReleaseDate =
|
||||
additionalSettings['useLatestAssetDateAsReleaseDate'] == true;
|
||||
dynamic latestRelease;
|
||||
if (verifyLatestTag) {
|
||||
var temp = requestUrl.split('?');
|
||||
@ -277,10 +284,31 @@ class GitHub extends AppSource {
|
||||
.toList() ??
|
||||
[];
|
||||
|
||||
DateTime? getReleaseDateFromRelease(dynamic rel) =>
|
||||
DateTime? getPublishDateFromRelease(dynamic rel) =>
|
||||
rel?['published_at'] != null
|
||||
? DateTime.parse(rel['published_at'])
|
||||
: null;
|
||||
DateTime? getNewestAssetDateFromRelease(dynamic rel) {
|
||||
var t = (rel['assets'] as List<dynamic>?)
|
||||
?.map((e) {
|
||||
return e?['updated_at'] != null
|
||||
? DateTime.parse(e['updated_at'])
|
||||
: null;
|
||||
})
|
||||
.where((e) => e != null)
|
||||
.toList();
|
||||
t?.sort((a, b) => b!.compareTo(a!));
|
||||
if (t?.isNotEmpty == true) {
|
||||
return t!.first;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
DateTime? getReleaseDateFromRelease(dynamic rel, bool useAssetDate) =>
|
||||
!useAssetDate
|
||||
? getPublishDateFromRelease(rel)
|
||||
: getNewestAssetDateFromRelease(rel);
|
||||
|
||||
if (dontSortReleasesList) {
|
||||
releases = releases.reversed.toList();
|
||||
} else {
|
||||
@ -305,8 +333,12 @@ class GitHub extends AppSource {
|
||||
(nameA as String).substring(matchA!.start, matchA.end),
|
||||
(nameB as String).substring(matchB!.start, matchB.end));
|
||||
} else {
|
||||
return (getReleaseDateFromRelease(a) ?? DateTime(1))
|
||||
.compareTo(getReleaseDateFromRelease(b) ?? DateTime(0));
|
||||
return (getReleaseDateFromRelease(
|
||||
a, useLatestAssetDateAsReleaseDate) ??
|
||||
DateTime(1))
|
||||
.compareTo(getReleaseDateFromRelease(
|
||||
b, useLatestAssetDateAsReleaseDate) ??
|
||||
DateTime(0));
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -350,11 +382,8 @@ class GitHub extends AppSource {
|
||||
continue;
|
||||
}
|
||||
var apkUrls = getReleaseAPKUrls(releases[i]);
|
||||
if (additionalSettings['apkFilterRegEx'] != null) {
|
||||
var reg = RegExp(additionalSettings['apkFilterRegEx']);
|
||||
apkUrls =
|
||||
apkUrls.where((element) => reg.hasMatch(element.key)).toList();
|
||||
}
|
||||
apkUrls = filterApks(apkUrls, additionalSettings['apkFilterRegEx'],
|
||||
additionalSettings['invertAPKFilter']);
|
||||
if (apkUrls.isEmpty && additionalSettings['trackOnly'] != true) {
|
||||
continue;
|
||||
}
|
||||
@ -366,7 +395,8 @@ class GitHub extends AppSource {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
String? version = targetRelease['tag_name'] ?? targetRelease['name'];
|
||||
DateTime? releaseDate = getReleaseDateFromRelease(targetRelease);
|
||||
DateTime? releaseDate = getReleaseDateFromRelease(
|
||||
targetRelease, useLatestAssetDateAsReleaseDate);
|
||||
if (version == null) {
|
||||
throw NoVersionError();
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ class GitLab extends AppSource {
|
||||
GitLab() {
|
||||
hosts = ['gitlab.com'];
|
||||
canSearch = true;
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
|
||||
sourceConfigSettingFormItems = [
|
||||
GeneratedFormTextField('gitlab-creds',
|
||||
|
@ -108,11 +108,7 @@ class HTML extends AppSource {
|
||||
[
|
||||
GeneratedFormSwitch('versionExtractWholePage',
|
||||
label: tr('versionExtractWholePage'))
|
||||
],
|
||||
[
|
||||
GeneratedFormSwitch('supportFixedAPKURL',
|
||||
defaultValue: true, label: tr('supportFixedAPKURL')),
|
||||
],
|
||||
]
|
||||
];
|
||||
var commonFormItems = [
|
||||
[GeneratedFormSwitch('filterByLinkText', label: tr('filterByLinkText'))],
|
||||
@ -172,10 +168,18 @@ class HTML extends AppSource {
|
||||
'User-Agent: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36'
|
||||
}
|
||||
])
|
||||
],
|
||||
[
|
||||
GeneratedFormDropdown(
|
||||
'defaultPseudoVersioningMethod',
|
||||
[
|
||||
MapEntry('partialAPKHash', tr('partialAPKHash')),
|
||||
MapEntry('APKLinkHash', tr('APKLinkHash'))
|
||||
],
|
||||
label: tr('defaultPseudoVersioningMethod'),
|
||||
defaultValue: 'partialAPKHash')
|
||||
]
|
||||
];
|
||||
overrideVersionDetectionFormDefault('noVersionDetection',
|
||||
disableStandard: false, disableRelDate: true);
|
||||
}
|
||||
|
||||
@override
|
||||
@ -288,17 +292,21 @@ class HTML extends AppSource {
|
||||
currentUrl = intLinks.last.key;
|
||||
}
|
||||
}
|
||||
|
||||
var uri = Uri.parse(currentUrl);
|
||||
Response res = await sourceRequest(currentUrl, additionalSettings);
|
||||
var links = await grabLinksCommon(res, additionalSettings);
|
||||
|
||||
if ((additionalSettings['apkFilterRegEx'] as String?)?.isNotEmpty == true) {
|
||||
var reg = RegExp(additionalSettings['apkFilterRegEx']);
|
||||
links = links.where((element) => reg.hasMatch(element.key)).toList();
|
||||
}
|
||||
if (links.isEmpty) {
|
||||
throw NoReleasesError();
|
||||
List<MapEntry<String, String>> links = [];
|
||||
String versionExtractionWholePageString = currentUrl;
|
||||
if (additionalSettings['directAPKLink'] != true) {
|
||||
Response res = await sourceRequest(currentUrl, additionalSettings);
|
||||
versionExtractionWholePageString =
|
||||
res.body.split('\r\n').join('\n').split('\n').join('\\n');
|
||||
links = await grabLinksCommon(res, additionalSettings);
|
||||
links = filterApks(links, additionalSettings['apkFilterRegEx'],
|
||||
additionalSettings['invertAPKFilter']);
|
||||
if (links.isEmpty) {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
} else {
|
||||
links = [MapEntry(currentUrl, currentUrl)];
|
||||
}
|
||||
var rel = links.last.key;
|
||||
String? version;
|
||||
@ -306,11 +314,12 @@ class HTML extends AppSource {
|
||||
additionalSettings['versionExtractionRegEx'] as String?,
|
||||
additionalSettings['matchGroupToUse'] as String?,
|
||||
additionalSettings['versionExtractWholePage'] == true
|
||||
? res.body.split('\r\n').join('\n').split('\n').join('\\n')
|
||||
? versionExtractionWholePageString
|
||||
: rel);
|
||||
version ??= additionalSettings['supportFixedAPKURL'] != true
|
||||
? rel.hashCode.toString()
|
||||
: (await checkDownloadHash(rel)).toString();
|
||||
version ??=
|
||||
additionalSettings['defaultPseudoVersioningMethod'] == 'APKLinkHash'
|
||||
? rel.hashCode.toString()
|
||||
: (await checkPartialDownloadHashDynamc(rel)).toString();
|
||||
return APKDetails(version, [rel].map((e) => MapEntry(e, e)).toList(),
|
||||
AppNames(uri.host, tr('app')));
|
||||
}
|
||||
|
@ -7,8 +7,8 @@ class HuaweiAppGallery extends AppSource {
|
||||
HuaweiAppGallery() {
|
||||
name = 'Huawei AppGallery';
|
||||
hosts = ['appgallery.huawei.com'];
|
||||
overrideVersionDetectionFormDefault('releaseDateAsVersion',
|
||||
disableStandard: true);
|
||||
versionDetectionDisallowed = true;
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -6,9 +6,9 @@ import 'package:obtainium/providers/source_provider.dart';
|
||||
|
||||
class Jenkins extends AppSource {
|
||||
Jenkins() {
|
||||
overrideVersionDetectionFormDefault('releaseDateAsVersion',
|
||||
disableStandard: true);
|
||||
versionDetectionDisallowed = true;
|
||||
neverAutoSelect = true;
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
}
|
||||
|
||||
String trimJobUrl(String url) {
|
||||
|
@ -6,6 +6,7 @@ import 'package:obtainium/providers/source_provider.dart';
|
||||
class NeutronCode extends AppSource {
|
||||
NeutronCode() {
|
||||
hosts = ['neutroncode.com'];
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -9,6 +9,7 @@ import 'package:easy_localization/easy_localization.dart';
|
||||
class SourceHut extends AppSource {
|
||||
SourceHut() {
|
||||
hosts = ['git.sr.ht'];
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
|
||||
additionalSourceAppSpecificSettingFormItems = [
|
||||
[
|
||||
|
@ -9,6 +9,7 @@ class Uptodown extends AppSource {
|
||||
hosts = ['uptodown.com'];
|
||||
allowSubDomains = true;
|
||||
naiveStandardVersionDetection = true;
|
||||
showReleaseDateAsVersionToggle = true;
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -6,8 +6,7 @@ import 'package:obtainium/providers/source_provider.dart';
|
||||
class WhatsApp extends AppSource {
|
||||
WhatsApp() {
|
||||
hosts = ['whatsapp.com'];
|
||||
overrideVersionDetectionFormDefault('noVersionDetection',
|
||||
disableStandard: true, disableRelDate: true);
|
||||
versionDetectionDisallowed = true;
|
||||
}
|
||||
|
||||
@override
|
||||
|
@ -96,11 +96,14 @@ class GeneratedFormDropdown extends GeneratedFormItem {
|
||||
}
|
||||
|
||||
class GeneratedFormSwitch extends GeneratedFormItem {
|
||||
bool disabled = false;
|
||||
|
||||
GeneratedFormSwitch(
|
||||
super.key, {
|
||||
super.label,
|
||||
super.belowWidgets,
|
||||
bool super.defaultValue = false,
|
||||
bool disabled = false,
|
||||
List<String? Function(bool value)> super.additionalValidators = const [],
|
||||
});
|
||||
|
||||
@ -115,6 +118,7 @@ class GeneratedFormSwitch extends GeneratedFormItem {
|
||||
label: label,
|
||||
belowWidgets: belowWidgets,
|
||||
defaultValue: defaultValue,
|
||||
disabled: false,
|
||||
additionalValidators: List.from(additionalValidators));
|
||||
}
|
||||
}
|
||||
@ -368,15 +372,51 @@ class _GeneratedFormState extends State<GeneratedForm> {
|
||||
),
|
||||
Switch(
|
||||
value: values[fieldKey],
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
values[fieldKey] = value;
|
||||
someValueChanged();
|
||||
});
|
||||
})
|
||||
onChanged:
|
||||
(widget.items[r][e] as GeneratedFormSwitch).disabled
|
||||
? null
|
||||
: (value) {
|
||||
setState(() {
|
||||
values[fieldKey] = value;
|
||||
someValueChanged();
|
||||
});
|
||||
})
|
||||
],
|
||||
);
|
||||
} else if (widget.items[r][e] is GeneratedFormTagInput) {
|
||||
onAddPressed() {
|
||||
showDialog<Map<String, dynamic>?>(
|
||||
context: context,
|
||||
builder: (BuildContext ctx) {
|
||||
return GeneratedFormModal(
|
||||
title: widget.items[r][e].label,
|
||||
items: [
|
||||
[GeneratedFormTextField('label', label: tr('label'))]
|
||||
]);
|
||||
}).then((value) {
|
||||
String? label = value?['label'];
|
||||
if (label != null) {
|
||||
setState(() {
|
||||
var temp =
|
||||
values[fieldKey] as Map<String, MapEntry<int, bool>>?;
|
||||
temp ??= {};
|
||||
if (temp[label] == null) {
|
||||
var singleSelect =
|
||||
(widget.items[r][e] as GeneratedFormTagInput)
|
||||
.singleSelect;
|
||||
var someSelected = temp.entries
|
||||
.where((element) => element.value.value)
|
||||
.isNotEmpty;
|
||||
temp[label] = MapEntry(generateRandomLightColor().value,
|
||||
!(someSelected && singleSelect));
|
||||
values[fieldKey] = temp;
|
||||
someValueChanged();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
formInputs[r][e] =
|
||||
Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
|
||||
if ((values[fieldKey] as Map<String, MapEntry<int, bool>>?)
|
||||
@ -402,14 +442,14 @@ class _GeneratedFormState extends State<GeneratedForm> {
|
||||
(widget.items[r][e] as GeneratedFormTagInput).alignment,
|
||||
crossAxisAlignment: WrapCrossAlignment.center,
|
||||
children: [
|
||||
(values[fieldKey] as Map<String, MapEntry<int, bool>>?)
|
||||
?.isEmpty ==
|
||||
true
|
||||
? Text(
|
||||
(widget.items[r][e] as GeneratedFormTagInput)
|
||||
.emptyMessage,
|
||||
)
|
||||
: const SizedBox.shrink(),
|
||||
// (values[fieldKey] as Map<String, MapEntry<int, bool>>?)
|
||||
// ?.isEmpty ==
|
||||
// true
|
||||
// ? Text(
|
||||
// (widget.items[r][e] as GeneratedFormTagInput)
|
||||
// .emptyMessage,
|
||||
// )
|
||||
// : const SizedBox.shrink(),
|
||||
...(values[fieldKey] as Map<String, MapEntry<int, bool>>?)
|
||||
?.entries
|
||||
.map((e2) {
|
||||
@ -533,49 +573,26 @@ class _GeneratedFormState extends State<GeneratedForm> {
|
||||
tooltip: tr('remove'),
|
||||
))
|
||||
: const SizedBox.shrink(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
child: IconButton(
|
||||
onPressed: () {
|
||||
showDialog<Map<String, dynamic>?>(
|
||||
context: context,
|
||||
builder: (BuildContext ctx) {
|
||||
return GeneratedFormModal(
|
||||
title: widget.items[r][e].label,
|
||||
items: [
|
||||
[
|
||||
GeneratedFormTextField('label',
|
||||
label: tr('label'))
|
||||
]
|
||||
]);
|
||||
}).then((value) {
|
||||
String? label = value?['label'];
|
||||
if (label != null) {
|
||||
setState(() {
|
||||
var temp = values[fieldKey]
|
||||
as Map<String, MapEntry<int, bool>>?;
|
||||
temp ??= {};
|
||||
if (temp[label] == null) {
|
||||
var singleSelect = (widget.items[r][e]
|
||||
as GeneratedFormTagInput)
|
||||
.singleSelect;
|
||||
var someSelected = temp.entries
|
||||
.where((element) => element.value.value)
|
||||
.isNotEmpty;
|
||||
temp[label] = MapEntry(
|
||||
generateRandomLightColor().value,
|
||||
!(someSelected && singleSelect));
|
||||
values[fieldKey] = temp;
|
||||
someValueChanged();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
icon: const Icon(Icons.add),
|
||||
visualDensity: VisualDensity.compact,
|
||||
tooltip: tr('add'),
|
||||
)),
|
||||
(values[fieldKey] as Map<String, MapEntry<int, bool>>?)
|
||||
?.isEmpty ==
|
||||
true
|
||||
? Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
child: TextButton.icon(
|
||||
onPressed: onAddPressed,
|
||||
icon: const Icon(Icons.add),
|
||||
label: Text(
|
||||
(widget.items[r][e] as GeneratedFormTagInput)
|
||||
.label),
|
||||
))
|
||||
: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 4),
|
||||
child: IconButton(
|
||||
onPressed: onAddPressed,
|
||||
icon: const Icon(Icons.add),
|
||||
visualDensity: VisualDensity.compact,
|
||||
tooltip: tr('add'),
|
||||
)),
|
||||
],
|
||||
)
|
||||
]);
|
||||
|
@ -7,6 +7,7 @@ import 'package:obtainium/providers/apps_provider.dart';
|
||||
import 'package:obtainium/providers/logs_provider.dart';
|
||||
import 'package:obtainium/providers/notifications_provider.dart';
|
||||
import 'package:obtainium/providers/settings_provider.dart';
|
||||
import 'package:obtainium/providers/source_provider.dart';
|
||||
import 'package:permission_handler/permission_handler.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:dynamic_color/dynamic_color.dart';
|
||||
@ -18,10 +19,6 @@ import 'package:easy_localization/src/easy_localization_controller.dart';
|
||||
// ignore: implementation_imports
|
||||
import 'package:easy_localization/src/localization.dart';
|
||||
|
||||
const String currentVersion = '0.15.10';
|
||||
const String currentReleaseTag =
|
||||
'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES
|
||||
|
||||
List<MapEntry<Locale, String>> supportedLocales = const [
|
||||
MapEntry(Locale('en'), 'English'),
|
||||
MapEntry(Locale('zh'), '简体中文'),
|
||||
@ -143,6 +140,7 @@ class _ObtainiumState extends State<Obtainium> {
|
||||
BackgroundFetchConfig(
|
||||
minimumFetchInterval: 15,
|
||||
stopOnTerminate: false,
|
||||
startOnBoot: true,
|
||||
enableHeadless: true,
|
||||
requiresBatteryNotLow: false,
|
||||
requiresCharging: false,
|
||||
@ -173,7 +171,31 @@ class _ObtainiumState extends State<Obtainium> {
|
||||
// If this is the first run, ask for notification permissions and add Obtainium to the Apps list
|
||||
Permission.notification.request();
|
||||
if (!fdroid) {
|
||||
appsProvider.saveApps([obtainiumApp], onlyIfExists: false);
|
||||
getInstalledInfo(obtainiumId).then((value) {
|
||||
if (value?.versionName != null) {
|
||||
appsProvider.saveApps([
|
||||
App(
|
||||
obtainiumId,
|
||||
obtainiumUrl,
|
||||
'ImranR98',
|
||||
'Obtainium',
|
||||
value!.versionName,
|
||||
value.versionName!,
|
||||
[],
|
||||
0,
|
||||
{
|
||||
'includePrereleases': true,
|
||||
'versionDetection': true,
|
||||
'apkFilterRegEx': 'fdroid',
|
||||
'invertAPKFilter': true
|
||||
},
|
||||
null,
|
||||
false)
|
||||
], onlyIfExists: false);
|
||||
}
|
||||
}).catchError((err) {
|
||||
print(err);
|
||||
});
|
||||
}
|
||||
}
|
||||
if (!supportedLocales
|
||||
|
@ -135,8 +135,7 @@ class AddAppPageState extends State<AddAppPage> {
|
||||
|
||||
getReleaseDateAsVersionConfirmationIfNeeded(
|
||||
bool userPickedTrackOnly) async {
|
||||
return (!(additionalSettings['versionDetection'] ==
|
||||
'releaseDateAsVersion' &&
|
||||
return (!(additionalSettings['releaseDateAsVersion'] == true &&
|
||||
// ignore: use_build_context_synchronously
|
||||
await showDialog(
|
||||
context: context,
|
||||
@ -192,8 +191,7 @@ class AddAppPageState extends State<AddAppPage> {
|
||||
throw ObtainiumError(tr('appAlreadyAdded'));
|
||||
}
|
||||
if (app.additionalSettings['trackOnly'] == true ||
|
||||
app.additionalSettings['versionDetection'] !=
|
||||
'standardVersionDetection') {
|
||||
app.additionalSettings['versionDetection'] != true) {
|
||||
app.installedVersion = app.latestVersion;
|
||||
}
|
||||
app.categories = pickedCategories;
|
||||
@ -498,36 +496,61 @@ class AddAppPageState extends State<AddAppPage> {
|
||||
],
|
||||
);
|
||||
|
||||
Widget getSourcesListWidget() => Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
Widget getSourcesListWidget() => Padding(
|
||||
padding: const EdgeInsets.all(16),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
tr('supportedSources'),
|
||||
style: const TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 16,
|
||||
),
|
||||
...sourceProvider.sources.map((e) => GestureDetector(
|
||||
onTap: e.hosts.isNotEmpty
|
||||
? () {
|
||||
launchUrlString('https://${e.hosts[0]}',
|
||||
mode: LaunchMode.externalApplication);
|
||||
}
|
||||
: null,
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return GeneratedFormModal(
|
||||
singleNullReturnButton: tr('ok'),
|
||||
title: tr('supportedSources'),
|
||||
items: const [],
|
||||
additionalWidgets: [
|
||||
...sourceProvider.sources.map(
|
||||
(e) => Padding(
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 4),
|
||||
child: GestureDetector(
|
||||
onTap: e.hosts.isNotEmpty
|
||||
? () {
|
||||
launchUrlString(
|
||||
'https://${e.hosts[0]}',
|
||||
mode: LaunchMode
|
||||
.externalApplication);
|
||||
}
|
||||
: null,
|
||||
child: Text(
|
||||
'${e.name}${e.enforceTrackOnly ? ' ${tr('trackOnlyInBrackets')}' : ''}${e.canSearch ? ' ${tr('searchableInBrackets')}' : ''}',
|
||||
style: TextStyle(
|
||||
decoration: e.hosts.isNotEmpty
|
||||
? TextDecoration.underline
|
||||
: TextDecoration.none),
|
||||
))),
|
||||
)
|
||||
],
|
||||
);
|
||||
},
|
||||
);
|
||||
},
|
||||
child: Text(
|
||||
'${e.name}${e.enforceTrackOnly ? ' ${tr('trackOnlyInBrackets')}' : ''}${e.canSearch ? ' ${tr('searchableInBrackets')}' : ''}',
|
||||
style: TextStyle(
|
||||
decoration: e.hosts.isNotEmpty
|
||||
? TextDecoration.underline
|
||||
: TextDecoration.none,
|
||||
tr('supportedSources'),
|
||||
style: const TextStyle(
|
||||
fontWeight: FontWeight.bold,
|
||||
decoration: TextDecoration.underline,
|
||||
fontStyle: FontStyle.italic),
|
||||
)))
|
||||
]);
|
||||
))
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: Theme.of(context).colorScheme.surface,
|
||||
bottomNavigationBar:
|
||||
pickedSource == null ? getSourcesListWidget() : null,
|
||||
body: CustomScrollView(shrinkWrap: true, slivers: <Widget>[
|
||||
CustomAppBar(title: tr('addApp')),
|
||||
SliverToBoxAdapter(
|
||||
@ -559,18 +582,7 @@ class AddAppPageState extends State<AddAppPage> {
|
||||
: const SizedBox();
|
||||
},
|
||||
future: pickedSource?.getSourceNote()),
|
||||
SizedBox(
|
||||
height: pickedSource != null ? 16 : 96,
|
||||
),
|
||||
if (pickedSource != null) getAdditionalOptsCol(),
|
||||
if (pickedSource == null)
|
||||
const Divider(
|
||||
height: 48,
|
||||
),
|
||||
if (pickedSource == null) getSourcesListWidget(),
|
||||
SizedBox(
|
||||
height: pickedSource != null ? 8 : 2,
|
||||
),
|
||||
])),
|
||||
)
|
||||
]));
|
||||
|
@ -1,7 +1,6 @@
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:obtainium/components/generated_form.dart';
|
||||
import 'package:obtainium/components/generated_form_modal.dart';
|
||||
import 'package:obtainium/custom_errors.dart';
|
||||
import 'package:obtainium/main.dart';
|
||||
@ -29,8 +28,18 @@ class _AppPageState extends State<AppPage> {
|
||||
Widget build(BuildContext context) {
|
||||
var appsProvider = context.watch<AppsProvider>();
|
||||
var settingsProvider = context.watch<SettingsProvider>();
|
||||
getUpdate(String id) {
|
||||
appsProvider.checkUpdate(id).catchError((e) {
|
||||
getUpdate(String id, {bool resetVersion = false}) {
|
||||
appsProvider.checkUpdate(id).then((e) {
|
||||
if (resetVersion) {
|
||||
appsProvider.apps[id]?.app.additionalSettings['versionDetection'] =
|
||||
true;
|
||||
if (appsProvider.apps[id]?.app.installedVersion != null) {
|
||||
appsProvider.apps[id]?.app.installedVersion =
|
||||
appsProvider.apps[id]?.app.latestVersion;
|
||||
}
|
||||
appsProvider.saveApps([appsProvider.apps[id]!.app]);
|
||||
}
|
||||
}).catchError((e) {
|
||||
showError(e, context);
|
||||
return null;
|
||||
});
|
||||
@ -54,122 +63,113 @@ class _AppPageState extends State<AppPage> {
|
||||
var trackOnly = app?.app.additionalSettings['trackOnly'] == true;
|
||||
|
||||
bool isVersionDetectionStandard =
|
||||
app?.app.additionalSettings['versionDetection'] ==
|
||||
'standardVersionDetection';
|
||||
app?.app.additionalSettings['versionDetection'] == true;
|
||||
|
||||
bool installedVersionIsEstimate = trackOnly ||
|
||||
(app?.app.installedVersion != null &&
|
||||
app?.app.additionalSettings['versionDetection'] ==
|
||||
'noVersionDetection');
|
||||
app?.app.additionalSettings['versionDetection'] != true);
|
||||
|
||||
getInfoColumn() => Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
if (app?.app.url != null) {
|
||||
launchUrlString(app?.app.url ?? '',
|
||||
mode: LaunchMode.externalApplication);
|
||||
}
|
||||
},
|
||||
onLongPress: () {
|
||||
Clipboard.setData(ClipboardData(text: app?.app.url ?? ''));
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||
content: Text(tr('copiedToClipboard')),
|
||||
));
|
||||
},
|
||||
child: Text(
|
||||
app?.app.url ?? '',
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(
|
||||
decoration: TextDecoration.underline,
|
||||
fontStyle: FontStyle.italic,
|
||||
fontSize: 12),
|
||||
)),
|
||||
const SizedBox(
|
||||
height: 32,
|
||||
),
|
||||
Column(
|
||||
getInfoColumn() {
|
||||
String versionLines = '';
|
||||
bool installed = app?.app.installedVersion != null;
|
||||
bool upToDate = app?.app.installedVersion == app?.app.latestVersion;
|
||||
if (installed) {
|
||||
versionLines = '${app?.app.installedVersion} ${tr('installed')}';
|
||||
if (upToDate) {
|
||||
versionLines += '/${tr('latest')}';
|
||||
}
|
||||
} else {
|
||||
versionLines = tr('notInstalled');
|
||||
}
|
||||
if (!upToDate) {
|
||||
versionLines += '\n${app?.app.latestVersion} ${tr('latest')}';
|
||||
}
|
||||
String infoLines = tr('lastUpdateCheckX', args: [
|
||||
app?.app.lastUpdateCheck == null
|
||||
? tr('never')
|
||||
: '${app?.app.lastUpdateCheck?.toLocal()}'
|
||||
]);
|
||||
if (trackOnly) {
|
||||
infoLines = '${tr('xIsTrackOnly', args: [tr('app')])}\n$infoLines';
|
||||
}
|
||||
if (installedVersionIsEstimate) {
|
||||
infoLines = '${tr('pseudoVersionInUse')}\n$infoLines';
|
||||
}
|
||||
return Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 24),
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
'${tr('latestVersionX', args: [
|
||||
app?.app.latestVersion ?? tr('unknown')
|
||||
])}\n${tr('installedVersionX', args: [
|
||||
app?.app.installedVersion ?? tr('none')
|
||||
])}${installedVersionIsEstimate ? '\n${tr('estimateInBrackets')}' : ''}',
|
||||
textAlign: TextAlign.end,
|
||||
style: Theme.of(context).textTheme.bodyLarge!,
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
Text(versionLines,
|
||||
textAlign: TextAlign.start,
|
||||
style: Theme.of(context)
|
||||
.textTheme
|
||||
.bodyLarge!
|
||||
.copyWith(fontWeight: FontWeight.bold)),
|
||||
app?.app.releaseDate == null
|
||||
? const SizedBox.shrink()
|
||||
: Text(
|
||||
app!.app.releaseDate.toString(),
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.labelSmall,
|
||||
),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
],
|
||||
),
|
||||
if (app?.app.installedVersion != null &&
|
||||
!isVersionDetectionStandard)
|
||||
Column(
|
||||
children: [
|
||||
const SizedBox(
|
||||
height: 16,
|
||||
),
|
||||
Text(
|
||||
'${trackOnly ? '${tr('xIsTrackOnly', args: [
|
||||
tr('app')
|
||||
])}\n' : ''}${tr('noVersionDetection')}',
|
||||
style: Theme.of(context).textTheme.labelSmall,
|
||||
),
|
||||
Text(
|
||||
infoLines,
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(fontStyle: FontStyle.italic, fontSize: 12),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 48,
|
||||
),
|
||||
CategoryEditorSelector(
|
||||
alignment: WrapAlignment.center,
|
||||
preselected: app?.app.categories != null
|
||||
? app!.app.categories.toSet()
|
||||
: {},
|
||||
onSelected: (categories) {
|
||||
if (app != null) {
|
||||
app.app.categories = categories;
|
||||
appsProvider.saveApps([app.app]);
|
||||
}
|
||||
}),
|
||||
if (app?.app.additionalSettings['about'] is String &&
|
||||
app?.app.additionalSettings['about'].isNotEmpty)
|
||||
Column(
|
||||
children: [
|
||||
const SizedBox(
|
||||
height: 48,
|
||||
),
|
||||
GestureDetector(
|
||||
onLongPress: () {
|
||||
Clipboard.setData(ClipboardData(
|
||||
text: app?.app.additionalSettings['about'] ?? ''));
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||
content: Text(tr('copiedToClipboard')),
|
||||
));
|
||||
},
|
||||
child: Text(
|
||||
app?.app.additionalSettings['about'],
|
||||
textAlign: TextAlign.center,
|
||||
)
|
||||
],
|
||||
),
|
||||
const SizedBox(
|
||||
height: 32,
|
||||
),
|
||||
Text(
|
||||
tr('lastUpdateCheckX', args: [
|
||||
app?.app.lastUpdateCheck == null
|
||||
? tr('never')
|
||||
: '\n${app?.app.lastUpdateCheck?.toLocal()}'
|
||||
]),
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(fontStyle: FontStyle.italic, fontSize: 12),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 48,
|
||||
),
|
||||
CategoryEditorSelector(
|
||||
alignment: WrapAlignment.center,
|
||||
preselected: app?.app.categories != null
|
||||
? app!.app.categories.toSet()
|
||||
: {},
|
||||
onSelected: (categories) {
|
||||
if (app != null) {
|
||||
app.app.categories = categories;
|
||||
appsProvider.saveApps([app.app]);
|
||||
}
|
||||
}),
|
||||
if (app?.app.additionalSettings['about'] is String &&
|
||||
app?.app.additionalSettings['about'].isNotEmpty)
|
||||
Column(
|
||||
children: [
|
||||
const SizedBox(
|
||||
height: 48,
|
||||
style: const TextStyle(fontStyle: FontStyle.italic),
|
||||
),
|
||||
GestureDetector(
|
||||
onLongPress: () {
|
||||
Clipboard.setData(ClipboardData(
|
||||
text: app?.app.additionalSettings['about'] ?? ''));
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||
content: Text(tr('copiedToClipboard')),
|
||||
));
|
||||
},
|
||||
child: Text(
|
||||
app?.app.additionalSettings['about'],
|
||||
textAlign: TextAlign.center,
|
||||
style: const TextStyle(fontStyle: FontStyle.italic),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
)
|
||||
],
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
getFullInfoColumn() => Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
@ -196,11 +196,26 @@ class _AppPageState extends State<AppPage> {
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.displayLarge,
|
||||
),
|
||||
Text(
|
||||
tr('byX', args: [app?.app.author ?? tr('unknown')]),
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.headlineMedium,
|
||||
),
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
if (app?.app.url != null) {
|
||||
launchUrlString(app?.app.url ?? '',
|
||||
mode: LaunchMode.externalApplication);
|
||||
}
|
||||
},
|
||||
onLongPress: () {
|
||||
Clipboard.setData(ClipboardData(text: app?.app.url ?? ''));
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||
content: Text(tr('copiedToClipboard')),
|
||||
));
|
||||
},
|
||||
child: Text(
|
||||
tr('byX', args: [app?.app.author ?? tr('unknown')]),
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.headlineMedium!.copyWith(
|
||||
decoration: TextDecoration.underline,
|
||||
fontStyle: FontStyle.italic),
|
||||
)),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
@ -209,16 +224,6 @@ class _AppPageState extends State<AppPage> {
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.labelSmall,
|
||||
),
|
||||
app?.app.releaseDate == null
|
||||
? const SizedBox.shrink()
|
||||
: Text(
|
||||
app!.app.releaseDate.toString(),
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.labelSmall,
|
||||
),
|
||||
const SizedBox(
|
||||
height: 32,
|
||||
),
|
||||
getInfoColumn(),
|
||||
const SizedBox(height: 150)
|
||||
],
|
||||
@ -287,25 +292,6 @@ class _AppPageState extends State<AppPage> {
|
||||
return row;
|
||||
}).toList();
|
||||
|
||||
items = items.map((row) {
|
||||
row = row.map((e) {
|
||||
if (e.key == 'versionDetection' && e is GeneratedFormDropdown) {
|
||||
e.disabledOptKeys ??= [];
|
||||
if (app?.app.installedVersion != null &&
|
||||
app?.app.additionalSettings['versionDetection'] !=
|
||||
'releaseDateAsVersion' &&
|
||||
!appsProvider.isVersionDetectionPossible(app)) {
|
||||
e.disabledOptKeys!.add('standardVersionDetection');
|
||||
}
|
||||
if (app?.app.releaseDate == null) {
|
||||
e.disabledOptKeys!.add('releaseDateAsVersion');
|
||||
}
|
||||
}
|
||||
return e;
|
||||
}).toList();
|
||||
return row;
|
||||
}).toList();
|
||||
|
||||
return GeneratedFormModal(
|
||||
title: tr('additionalOptions'), items: items);
|
||||
});
|
||||
@ -320,26 +306,34 @@ class _AppPageState extends State<AppPage> {
|
||||
// ignore: use_build_context_synchronously
|
||||
showMessage(tr('appsFromSourceAreTrackOnly'), context);
|
||||
}
|
||||
if (app.app.additionalSettings['versionDetection'] ==
|
||||
'releaseDateAsVersion') {
|
||||
if (originalSettings['versionDetection'] != 'releaseDateAsVersion') {
|
||||
if (app.app.releaseDate != null) {
|
||||
bool isUpdated =
|
||||
app.app.installedVersion == app.app.latestVersion;
|
||||
app.app.latestVersion =
|
||||
app.app.releaseDate!.microsecondsSinceEpoch.toString();
|
||||
if (isUpdated) {
|
||||
app.app.installedVersion = app.app.latestVersion;
|
||||
}
|
||||
var versionDetectionEnabled =
|
||||
app.app.additionalSettings['versionDetection'] == true &&
|
||||
originalSettings['versionDetection'] != true;
|
||||
var releaseDateVersionEnabled =
|
||||
app.app.additionalSettings['releaseDateAsVersion'] == true &&
|
||||
originalSettings['releaseDateAsVersion'] != true;
|
||||
var releaseDateVersionDisabled =
|
||||
app.app.additionalSettings['releaseDateAsVersion'] != true &&
|
||||
originalSettings['releaseDateAsVersion'] == true;
|
||||
if (releaseDateVersionEnabled) {
|
||||
if (app.app.releaseDate != null) {
|
||||
bool isUpdated = app.app.installedVersion == app.app.latestVersion;
|
||||
app.app.latestVersion =
|
||||
app.app.releaseDate!.microsecondsSinceEpoch.toString();
|
||||
if (isUpdated) {
|
||||
app.app.installedVersion = app.app.latestVersion;
|
||||
}
|
||||
}
|
||||
} else if (originalSettings['versionDetection'] ==
|
||||
'releaseDateAsVersion') {
|
||||
} else if (releaseDateVersionDisabled) {
|
||||
app.app.installedVersion =
|
||||
app.installedInfo?.versionName ?? app.app.installedVersion;
|
||||
}
|
||||
if (versionDetectionEnabled) {
|
||||
app.app.additionalSettings['versionDetection'] = true;
|
||||
app.app.additionalSettings['releaseDateAsVersion'] = false;
|
||||
}
|
||||
appsProvider.saveApps([app.app]).then((value) {
|
||||
getUpdate(app.app.id);
|
||||
getUpdate(app.app.id, resetVersion: versionDetectionEnabled);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -421,7 +421,7 @@ class AppsPageState extends State<AppsPage> {
|
||||
}
|
||||
|
||||
getVersionText(int appIndex) {
|
||||
return '${listedApps[appIndex].app.installedVersion ?? tr('notInstalled')}${listedApps[appIndex].app.additionalSettings['trackOnly'] == true ? ' ${tr('estimateInBrackets')}' : ''}';
|
||||
return '${listedApps[appIndex].app.installedVersion ?? tr('notInstalled')}${listedApps[appIndex].app.additionalSettings['trackOnly'] == true ? ' ${tr('pseudoVersion')}' : ''}';
|
||||
}
|
||||
|
||||
getChangesButtonString(int appIndex, bool hasChangeLogFn) {
|
||||
@ -904,7 +904,7 @@ class AppsPageState extends State<AppsPage> {
|
||||
}))}">${a.name}</a></li>\n';
|
||||
}
|
||||
urls +=
|
||||
'</ul>\n\n<p><a href="${obtainiumApp.url}">${tr('about')}</a></p>';
|
||||
'</ul>\n\n<p><a href="$obtainiumUrl">${tr('about')}</a></p>';
|
||||
Share.share(urls,
|
||||
subject:
|
||||
'${tr('obtainium')} - ${tr('appsString')}');
|
||||
|
@ -416,13 +416,17 @@ class _SettingsPageState extends State<SettingsPage> {
|
||||
value: settingsProvider.useSystemFont,
|
||||
onChanged: (useSystemFont) {
|
||||
if (useSystemFont) {
|
||||
NativeFeatures.loadSystemFont().then((fontLoadRes) {
|
||||
NativeFeatures.loadSystemFont()
|
||||
.then((fontLoadRes) {
|
||||
if (fontLoadRes == 'ok') {
|
||||
settingsProvider.useSystemFont = true;
|
||||
settingsProvider.useSystemFont =
|
||||
true;
|
||||
} else {
|
||||
showError(ObtainiumError(
|
||||
tr('systemFontError', args: [fontLoadRes])
|
||||
), context);
|
||||
showError(
|
||||
ObtainiumError(tr(
|
||||
'systemFontError',
|
||||
args: [fontLoadRes])),
|
||||
context);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@ -628,38 +632,9 @@ class _SettingsPageState extends State<SettingsPage> {
|
||||
label: Text(tr('appLogs'))),
|
||||
],
|
||||
),
|
||||
const Divider(
|
||||
height: 32,
|
||||
),
|
||||
// Padding(
|
||||
// padding: const EdgeInsets.fromLTRB(16, 0, 16, 16),
|
||||
// child: Column(children: [
|
||||
// Row(
|
||||
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
// children: [
|
||||
// Flexible(child: Text(tr('debugMenu'))),
|
||||
// Switch(
|
||||
// value: settingsProvider.showDebugOpts,
|
||||
// onChanged: (value) {
|
||||
// settingsProvider.showDebugOpts = value;
|
||||
// })
|
||||
// ],
|
||||
// ),
|
||||
// if (settingsProvider.showDebugOpts)
|
||||
// Column(
|
||||
// crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||
// children: [
|
||||
// height16,
|
||||
// TextButton(
|
||||
// onPressed: () {
|
||||
// bgUpdateCheck('taskId', null);
|
||||
// showMessage(tr('bgTaskStarted'), context);
|
||||
// },
|
||||
// child: Text(tr('runBgCheckNow')))
|
||||
// ],
|
||||
// ),
|
||||
// ]),
|
||||
// ),
|
||||
const SizedBox(
|
||||
height: 16,
|
||||
)
|
||||
],
|
||||
),
|
||||
)
|
||||
|
@ -167,8 +167,24 @@ String hashListOfLists(List<List<int>> data) {
|
||||
return hash.hashCode.toString();
|
||||
}
|
||||
|
||||
Future<String> checkDownloadHash(String url,
|
||||
{int bytesToGrab = 1024, Map<String, String>? headers}) async {
|
||||
Future<String> checkPartialDownloadHashDynamc(String url,
|
||||
{int startingSize = 1024,
|
||||
int lowerLimit = 128,
|
||||
Map<String, String>? headers}) async {
|
||||
for (int i = startingSize; i >= lowerLimit; i -= 256) {
|
||||
List<String> ab = await Future.wait([
|
||||
checkPartialDownloadHash(url, i, headers: headers),
|
||||
checkPartialDownloadHash(url, i, headers: headers)
|
||||
]);
|
||||
if (ab[0] == ab[1]) {
|
||||
return ab[0];
|
||||
}
|
||||
}
|
||||
throw NoVersionError();
|
||||
}
|
||||
|
||||
Future<String> checkPartialDownloadHash(String url, int bytesToGrab,
|
||||
{Map<String, String>? headers}) async {
|
||||
var req = Request('GET', Uri.parse(url));
|
||||
if (headers != null) {
|
||||
req.headers.addAll(headers);
|
||||
@ -234,6 +250,20 @@ Future<File> downloadFile(
|
||||
return downloadedFile;
|
||||
}
|
||||
|
||||
Future<PackageInfo?> getInstalledInfo(String? packageName,
|
||||
{bool printErr = true}) async {
|
||||
if (packageName != null) {
|
||||
try {
|
||||
return await pm.getPackageInfo(packageName: packageName);
|
||||
} catch (e) {
|
||||
if (printErr) {
|
||||
print(e); // OK
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
class AppsProvider with ChangeNotifier {
|
||||
// In memory App state (should always be kept in sync with local storage versions)
|
||||
Map<String, AppInMemory> apps = {};
|
||||
@ -404,7 +434,7 @@ class AppsProvider with ChangeNotifier {
|
||||
.isNotEmpty;
|
||||
|
||||
Future<bool> canInstallSilently(App app) async {
|
||||
if (app.id == obtainiumApp.id) {
|
||||
if (app.id == obtainiumId) {
|
||||
return false;
|
||||
}
|
||||
if (!settingsProvider.enableBackgroundUpdates) {
|
||||
@ -428,7 +458,7 @@ class AppsProvider with ChangeNotifier {
|
||||
} catch (e) {
|
||||
// Probably not installed - ignore
|
||||
}
|
||||
if (installerPackageName != obtainiumApp.id) {
|
||||
if (installerPackageName != obtainiumId) {
|
||||
// If we did not install the app (or it isn't installed), silent install is not possible
|
||||
return false;
|
||||
}
|
||||
@ -639,6 +669,7 @@ class AppsProvider with ChangeNotifier {
|
||||
MapEntry<String, String>? apkUrl;
|
||||
var trackOnly = apps[id]!.app.additionalSettings['trackOnly'] == true;
|
||||
if (!trackOnly) {
|
||||
// ignore: use_build_context_synchronously
|
||||
apkUrl = await confirmApkUrl(apps[id]!.app, context);
|
||||
}
|
||||
if (apkUrl != null) {
|
||||
@ -673,7 +704,7 @@ class AppsProvider with ChangeNotifier {
|
||||
|
||||
// Move Obtainium to the end of the line (let all other apps update first)
|
||||
appsToInstall =
|
||||
moveStrToEnd(appsToInstall, obtainiumApp.id, strB: obtainiumTempId);
|
||||
moveStrToEnd(appsToInstall, obtainiumId, strB: obtainiumTempId);
|
||||
|
||||
Future<void> updateFn(String id, {bool skipInstalls = false}) async {
|
||||
try {
|
||||
@ -775,20 +806,6 @@ class AppsProvider with ChangeNotifier {
|
||||
return appsDir;
|
||||
}
|
||||
|
||||
Future<PackageInfo?> getInstalledInfo(String? packageName,
|
||||
{bool printErr = true}) async {
|
||||
if (packageName != null) {
|
||||
try {
|
||||
return await pm.getPackageInfo(packageName: packageName);
|
||||
} catch (e) {
|
||||
if (printErr) {
|
||||
print(e); // OK
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
bool isVersionDetectionPossible(AppInMemory? app) {
|
||||
if (app?.app == null) {
|
||||
return false;
|
||||
@ -803,8 +820,7 @@ class AppsProvider with ChangeNotifier {
|
||||
? app.installedInfo?.versionCode.toString()
|
||||
: app.installedInfo?.versionName;
|
||||
return app.app.additionalSettings['trackOnly'] != true &&
|
||||
app.app.additionalSettings['versionDetection'] !=
|
||||
'releaseDateAsVersion' &&
|
||||
app.app.additionalSettings['releaseDateAsVersion'] != true &&
|
||||
realInstalledVersion != null &&
|
||||
app.app.installedVersion != null &&
|
||||
(reconcileVersionDifferences(
|
||||
@ -820,8 +836,7 @@ class AppsProvider with ChangeNotifier {
|
||||
var modded = false;
|
||||
var trackOnly = app.additionalSettings['trackOnly'] == true;
|
||||
var versionDetectionIsStandard =
|
||||
app.additionalSettings['versionDetection'] ==
|
||||
'standardVersionDetection';
|
||||
app.additionalSettings['versionDetection'] == true;
|
||||
var naiveStandardVersionDetection =
|
||||
app.additionalSettings['naiveStandardVersionDetection'] == true ||
|
||||
SourceProvider()
|
||||
@ -875,7 +890,7 @@ class AppsProvider with ChangeNotifier {
|
||||
versionDetectionIsStandard &&
|
||||
!isVersionDetectionPossible(
|
||||
AppInMemory(app, null, installedInfo, null))) {
|
||||
app.additionalSettings['versionDetection'] = 'noVersionDetection';
|
||||
app.additionalSettings['versionDetection'] = false;
|
||||
logs.add('Could not reconcile version formats for: ${app.id}');
|
||||
modded = true;
|
||||
}
|
||||
@ -917,6 +932,17 @@ class AppsProvider with ChangeNotifier {
|
||||
: false;
|
||||
}
|
||||
|
||||
Future<void> updateInstallStatusInMemory(AppInMemory app) async {
|
||||
apps[app.app.id]?.installedInfo = await getInstalledInfo(app.app.id);
|
||||
apps[app.app.id]?.icon =
|
||||
await apps[app.app.id]?.installedInfo?.applicationInfo?.getAppIcon();
|
||||
apps[app.app.id]?.app.name = await (apps[app.app.id]
|
||||
?.installedInfo
|
||||
?.applicationInfo
|
||||
?.getAppLabel()) ??
|
||||
app.name;
|
||||
}
|
||||
|
||||
Future<void> loadApps({String? singleId}) async {
|
||||
while (loadingApps) {
|
||||
await Future.delayed(const Duration(microseconds: 1));
|
||||
@ -965,19 +991,11 @@ class AppsProvider with ChangeNotifier {
|
||||
NotificationsProvider().notify(
|
||||
AppsRemovedNotification(errors.map((e) => [e[1], e[2]]).toList()));
|
||||
}
|
||||
|
||||
for (var app in apps.values) {
|
||||
// Get install status and other OS info for each App (slow)
|
||||
apps[app.app.id]?.installedInfo = await getInstalledInfo(app.app.id);
|
||||
apps[app.app.id]?.icon =
|
||||
await apps[app.app.id]?.installedInfo?.applicationInfo?.getAppIcon();
|
||||
apps[app.app.id]?.app.name = await (apps[app.app.id]
|
||||
?.installedInfo
|
||||
?.applicationInfo
|
||||
?.getAppLabel()) ??
|
||||
app.name;
|
||||
notifyListeners();
|
||||
}
|
||||
// Get install status and other OS info for each App (slow)
|
||||
await Future.wait(apps.values.map((app) {
|
||||
return updateInstallStatusInMemory(app);
|
||||
}));
|
||||
notifyListeners();
|
||||
// Reconcile version differences
|
||||
List<App> modifiedApps = [];
|
||||
for (var app in apps.values) {
|
||||
@ -1000,7 +1018,6 @@ class AppsProvider with ChangeNotifier {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
loadingApps = false;
|
||||
notifyListeners();
|
||||
}
|
||||
@ -1676,8 +1693,7 @@ Future<void> bgUpdateCheck(String taskId, Map<String, dynamic>? params) async {
|
||||
}
|
||||
if (toInstall.isNotEmpty) {
|
||||
logs.add('BG install task: Started (${toInstall.length}).');
|
||||
var tempObtArr =
|
||||
toInstall.where((element) => element.key == obtainiumApp.id);
|
||||
var tempObtArr = toInstall.where((element) => element.key == obtainiumId);
|
||||
if (tempObtArr.isNotEmpty) {
|
||||
// Move obtainium to the end of the list as it must always install last
|
||||
var obt = tempObtArr.first;
|
||||
|
@ -15,22 +15,8 @@ import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'package:shared_storage/shared_storage.dart' as saf;
|
||||
|
||||
String obtainiumTempId = 'imranr98_obtainium_${GitHub().hosts[0]}';
|
||||
|
||||
App obtainiumApp = App(
|
||||
'dev.imranr.obtainium',
|
||||
'https://github.com/ImranR98/Obtainium',
|
||||
'ImranR98',
|
||||
'Obtainium',
|
||||
currentReleaseTag,
|
||||
currentReleaseTag,
|
||||
[],
|
||||
0,
|
||||
{
|
||||
'includePrereleases': true,
|
||||
'versionDetection': 'standardVersionDetection'
|
||||
},
|
||||
null,
|
||||
false);
|
||||
String obtainiumId = 'dev.imranr.obtainium';
|
||||
String obtainiumUrl = 'https://github.com/ImranR98/Obtainium';
|
||||
|
||||
enum InstallMethodSettings { normal, shizuku, root }
|
||||
|
||||
|
@ -11,6 +11,7 @@ import 'package:obtainium/app_sources/apkmirror.dart';
|
||||
import 'package:obtainium/app_sources/apkpure.dart';
|
||||
import 'package:obtainium/app_sources/aptoide.dart';
|
||||
import 'package:obtainium/app_sources/codeberg.dart';
|
||||
import 'package:obtainium/app_sources/directAPKLink.dart';
|
||||
import 'package:obtainium/app_sources/fdroid.dart';
|
||||
import 'package:obtainium/app_sources/fdroidrepo.dart';
|
||||
import 'package:obtainium/app_sources/github.dart';
|
||||
@ -103,6 +104,21 @@ appJSONCompatibilityModifiers(Map<String, dynamic> json) {
|
||||
additionalSettings.remove('releaseDateAsVersion');
|
||||
}
|
||||
}
|
||||
// Convert dropdown style version detection options back into bool style
|
||||
if (additionalSettings['versionDetection'] == 'standardVersionDetection') {
|
||||
additionalSettings['versionDetection'] = true;
|
||||
} else if (additionalSettings['versionDetection'] == 'noVersionDetection') {
|
||||
additionalSettings['versionDetection'] = false;
|
||||
} else if (additionalSettings['versionDetection'] == 'releaseDateAsVersion') {
|
||||
additionalSettings['versionDetection'] = false;
|
||||
additionalSettings['releaseDateAsVersion'] = true;
|
||||
}
|
||||
// Convert bool style pseudo version method to dropdown style
|
||||
if (originalAdditionalSettings['supportFixedAPKURL'] == true) {
|
||||
additionalSettings['defaultPseudoVersioningMethod'] = 'partialAPKHash';
|
||||
} else if (originalAdditionalSettings['supportFixedAPKURL'] == false) {
|
||||
additionalSettings['defaultPseudoVersioningMethod'] = 'APKLinkHash';
|
||||
}
|
||||
// Ensure additionalSettings are correctly typed
|
||||
for (var item in formItems) {
|
||||
if (additionalSettings[item.key] != null) {
|
||||
@ -380,28 +396,24 @@ abstract class AppSource {
|
||||
bool allowSubDomains = false;
|
||||
bool naiveStandardVersionDetection = false;
|
||||
bool neverAutoSelect = false;
|
||||
bool showReleaseDateAsVersionToggle = false;
|
||||
bool versionDetectionDisallowed = false;
|
||||
List<String> excludeCommonSettingKeys = [];
|
||||
|
||||
AppSource() {
|
||||
name = runtimeType.toString();
|
||||
}
|
||||
|
||||
overrideVersionDetectionFormDefault(String vd,
|
||||
{bool disableStandard = false, bool disableRelDate = false}) {
|
||||
additionalAppSpecificSourceAgnosticSettingFormItems =
|
||||
additionalAppSpecificSourceAgnosticSettingFormItems.map((e) {
|
||||
overrideAdditionalAppSpecificSourceAgnosticSettingSwitch(String key,
|
||||
{bool disabled = true, bool defaultValue = true}) {
|
||||
additionalAppSpecificSourceAgnosticSettingFormItemsNeverUseDirectly =
|
||||
additionalAppSpecificSourceAgnosticSettingFormItemsNeverUseDirectly
|
||||
.map((e) {
|
||||
return e.map((e2) {
|
||||
if (e2.key == 'versionDetection') {
|
||||
var item = e2 as GeneratedFormDropdown;
|
||||
item.defaultValue = vd;
|
||||
item.disabledOptKeys = [];
|
||||
if (disableStandard) {
|
||||
item.disabledOptKeys?.add('standardVersionDetection');
|
||||
}
|
||||
if (disableRelDate) {
|
||||
item.disabledOptKeys?.add('releaseDateAsVersion');
|
||||
}
|
||||
item.disabledOptKeys =
|
||||
item.disabledOptKeys?.where((element) => element != vd).toList();
|
||||
if (e2.key == key) {
|
||||
var item = e2 as GeneratedFormSwitch;
|
||||
item.disabled = disabled;
|
||||
item.defaultValue = defaultValue;
|
||||
}
|
||||
return e2;
|
||||
}).toList();
|
||||
@ -457,7 +469,7 @@ abstract class AppSource {
|
||||
|
||||
// Some additional data may be needed for Apps regardless of Source
|
||||
List<List<GeneratedFormItem>>
|
||||
additionalAppSpecificSourceAgnosticSettingFormItems = [
|
||||
additionalAppSpecificSourceAgnosticSettingFormItemsNeverUseDirectly = [
|
||||
[
|
||||
GeneratedFormSwitch(
|
||||
'trackOnly',
|
||||
@ -475,16 +487,8 @@ abstract class AppSource {
|
||||
label: tr('matchGroupToUse'), required: false, hint: '\$0')
|
||||
],
|
||||
[
|
||||
GeneratedFormDropdown(
|
||||
'versionDetection',
|
||||
[
|
||||
MapEntry(
|
||||
'standardVersionDetection', tr('standardVersionDetection')),
|
||||
MapEntry('releaseDateAsVersion', tr('releaseDateAsVersion')),
|
||||
MapEntry('noVersionDetection', tr('noVersionDetection'))
|
||||
],
|
||||
label: tr('versionDetection'),
|
||||
defaultValue: 'standardVersionDetection')
|
||||
GeneratedFormSwitch('versionDetection',
|
||||
label: tr('versionDetectionExplanation'), defaultValue: true)
|
||||
],
|
||||
[
|
||||
GeneratedFormSwitch('useVersionCodeAsOSVersion',
|
||||
@ -500,6 +504,11 @@ abstract class AppSource {
|
||||
}
|
||||
])
|
||||
],
|
||||
[
|
||||
GeneratedFormSwitch('invertAPKFilter',
|
||||
label: '${tr('invertRegEx')} (${tr('filterAPKsByRegEx')})',
|
||||
defaultValue: false)
|
||||
],
|
||||
[
|
||||
GeneratedFormSwitch('autoApkFilterByArch',
|
||||
label: tr('autoApkFilterByArch'), defaultValue: true)
|
||||
@ -518,9 +527,48 @@ abstract class AppSource {
|
||||
|
||||
// Previous 2 variables combined into one at runtime for convenient usage
|
||||
List<List<GeneratedFormItem>> get combinedAppSpecificSettingFormItems {
|
||||
if (showReleaseDateAsVersionToggle == true) {
|
||||
if (additionalAppSpecificSourceAgnosticSettingFormItemsNeverUseDirectly
|
||||
.indexWhere((List<GeneratedFormItem> e) =>
|
||||
e.indexWhere((GeneratedFormItem i) =>
|
||||
i.key == 'releaseDateAsVersion') >=
|
||||
0) <
|
||||
0) {
|
||||
additionalAppSpecificSourceAgnosticSettingFormItemsNeverUseDirectly.insert(
|
||||
additionalAppSpecificSourceAgnosticSettingFormItemsNeverUseDirectly
|
||||
.indexWhere((List<GeneratedFormItem> e) =>
|
||||
e.indexWhere((GeneratedFormItem i) =>
|
||||
i.key == 'versionDetection') >=
|
||||
0) +
|
||||
1,
|
||||
[
|
||||
GeneratedFormSwitch('releaseDateAsVersion',
|
||||
label:
|
||||
'${tr('releaseDateAsVersion')} (${tr('pseudoVersion')})',
|
||||
defaultValue: false)
|
||||
]);
|
||||
}
|
||||
}
|
||||
additionalAppSpecificSourceAgnosticSettingFormItemsNeverUseDirectly =
|
||||
additionalAppSpecificSourceAgnosticSettingFormItemsNeverUseDirectly
|
||||
.map((e) => e
|
||||
.where((ee) => !excludeCommonSettingKeys.contains(ee.key))
|
||||
.toList())
|
||||
.where((e) => e.isNotEmpty)
|
||||
.toList();
|
||||
if (versionDetectionDisallowed) {
|
||||
overrideAdditionalAppSpecificSourceAgnosticSettingSwitch(
|
||||
'versionDetection',
|
||||
disabled: true,
|
||||
defaultValue: false);
|
||||
overrideAdditionalAppSpecificSourceAgnosticSettingSwitch(
|
||||
'useVersionCodeAsOSVersion',
|
||||
disabled: true,
|
||||
defaultValue: false);
|
||||
}
|
||||
return [
|
||||
...additionalSourceAppSpecificSettingFormItems,
|
||||
...additionalAppSpecificSourceAgnosticSettingFormItems
|
||||
...additionalAppSpecificSourceAgnosticSettingFormItemsNeverUseDirectly
|
||||
];
|
||||
}
|
||||
|
||||
@ -665,6 +713,20 @@ String? extractVersion(String? versionExtractionRegEx, String? matchGroupString,
|
||||
}
|
||||
}
|
||||
|
||||
List<MapEntry<String, String>> filterApks(
|
||||
List<MapEntry<String, String>> apkUrls,
|
||||
String? apkFilterRegEx,
|
||||
bool? invert) {
|
||||
if (apkFilterRegEx?.isNotEmpty == true) {
|
||||
var reg = RegExp(apkFilterRegEx!);
|
||||
apkUrls = apkUrls.where((element) {
|
||||
var hasMatch = reg.hasMatch(element.key);
|
||||
return invert == true ? !hasMatch : hasMatch;
|
||||
}).toList();
|
||||
}
|
||||
return apkUrls;
|
||||
}
|
||||
|
||||
class SourceProvider {
|
||||
// Add more source classes here so they are available via the service
|
||||
List<AppSource> get sources => [
|
||||
@ -687,6 +749,7 @@ class SourceProvider {
|
||||
WhatsApp(),
|
||||
TelegramApp(),
|
||||
NeutronCode(),
|
||||
DirectAPKLink(),
|
||||
HTML() // This should ALWAYS be the last option as they are tried in order
|
||||
];
|
||||
|
||||
@ -708,11 +771,15 @@ class SourceProvider {
|
||||
}
|
||||
AppSource? source;
|
||||
for (var s in sources.where((element) => element.hosts.isNotEmpty)) {
|
||||
if (RegExp(
|
||||
'://${s.allowSubDomains ? '([^\\.]+\\.)*' : '(www\\.)?'}(${getSourceRegex(s.hosts)})(/|\\z)?')
|
||||
.hasMatch(url)) {
|
||||
source = s;
|
||||
break;
|
||||
try {
|
||||
if (RegExp(
|
||||
'^${s.allowSubDomains ? '([^\\.]+\\.)*' : '(www\\.)?'}(${getSourceRegex(s.hosts)})\$')
|
||||
.hasMatch(Uri.parse(url).host)) {
|
||||
source = s;
|
||||
break;
|
||||
}
|
||||
} catch (e) {
|
||||
// Ignore
|
||||
}
|
||||
}
|
||||
if (source == null) {
|
||||
@ -773,15 +840,12 @@ class SourceProvider {
|
||||
}
|
||||
}
|
||||
|
||||
if (additionalSettings['versionDetection'] == 'releaseDateAsVersion' &&
|
||||
if (additionalSettings['releaseDateAsVersion'] == true &&
|
||||
apk.releaseDate != null) {
|
||||
apk.version = apk.releaseDate!.microsecondsSinceEpoch.toString();
|
||||
}
|
||||
if (additionalSettings['apkFilterRegEx'] != null) {
|
||||
var reg = RegExp(additionalSettings['apkFilterRegEx']);
|
||||
apk.apkUrls =
|
||||
apk.apkUrls.where((element) => reg.hasMatch(element.key)).toList();
|
||||
}
|
||||
apk.apkUrls = filterApks(apk.apkUrls, additionalSettings['apkFilterRegEx'],
|
||||
additionalSettings['invertAPKFilter']);
|
||||
if (apk.apkUrls.isEmpty && !trackOnly) {
|
||||
throw NoAPKError();
|
||||
}
|
||||
|
48
pubspec.lock
48
pubspec.lock
@ -307,10 +307,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_local_notifications
|
||||
sha256: "892ada16046d641263f30c72e7432397088810a84f34479f6677494802a2b535"
|
||||
sha256: "66cc2fe16bf4bca71d795939763ad3f1830ad85772dc3b1561613c501859826d"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "16.3.0"
|
||||
version: "16.3.1+1"
|
||||
flutter_local_notifications_linux:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -394,10 +394,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: http
|
||||
sha256: d4872660c46d929f6b8a9ef4e7a7eff7e49bbf0c4ec3f385ee32df5119175139
|
||||
sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.1.2"
|
||||
version: "1.2.0"
|
||||
http_parser:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -450,10 +450,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: markdown
|
||||
sha256: acf35edccc0463a9d7384e437c015a3535772e09714cf60e07eeef3a15870dcd
|
||||
sha256: "1b134d9f8ff2da15cb298efe6cd8b7d2a78958c1b00384ebcbdf13fe340a6c90"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "7.1.1"
|
||||
version: "7.2.1"
|
||||
matcher:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -562,50 +562,50 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: permission_handler
|
||||
sha256: "860c6b871c94c78e202dc69546d4d8fd84bd59faeb36f8fb9888668a53ff4f78"
|
||||
sha256: "45ff3fbcb99040fde55c528d5e3e6ca29171298a85436274d49c6201002087d6"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "11.1.0"
|
||||
version: "11.2.0"
|
||||
permission_handler_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: permission_handler_android
|
||||
sha256: "2f1bec180ee2f5665c22faada971a8f024761f632e93ddc23310487df52dcfa6"
|
||||
sha256: "758284a0976772f9c744d6384fc5dc4834aa61e3f7aa40492927f244767374eb"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "12.0.1"
|
||||
version: "12.0.3"
|
||||
permission_handler_apple:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: permission_handler_apple
|
||||
sha256: "1a816084338ada8d574b1cb48390e6e8b19305d5120fe3a37c98825bacc78306"
|
||||
sha256: c6bf440f80acd2a873d3d91a699e4cc770f86e7e6b576dda98759e8b92b39830
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "9.2.0"
|
||||
version: "9.3.0"
|
||||
permission_handler_html:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: permission_handler_html
|
||||
sha256: "11b762a8c123dced6461933a88ea1edbbe036078c3f9f41b08886e678e7864df"
|
||||
sha256: "54bf176b90f6eddd4ece307e2c06cf977fb3973719c35a93b85cc7093eb6070d"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.1.0+2"
|
||||
version: "0.1.1"
|
||||
permission_handler_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: permission_handler_platform_interface
|
||||
sha256: d87349312f7eaf6ce0adaf668daf700ac5b06af84338bd8b8574dfbd93ffe1a1
|
||||
sha256: "5c43148f2bfb6d14c5a8162c0a712afe891f2d847f35fcff29c406b37da43c3c"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.0.2"
|
||||
version: "4.1.0"
|
||||
permission_handler_windows:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: permission_handler_windows
|
||||
sha256: "1e8640c1e39121128da6b816d236e714d2cf17fac5a105dd6acdd3403a628004"
|
||||
sha256: "1a790728016f79a41216d88672dbc5df30e686e811ad4e698bfc51f76ad91f1e"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.2.0"
|
||||
version: "0.2.1"
|
||||
petitparser:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -634,10 +634,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: pointycastle
|
||||
sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c"
|
||||
sha256: "43ac87de6e10afabc85c445745a7b799e04de84cebaa4fd7bf55a5e1e9604d29"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.7.3"
|
||||
version: "3.7.4"
|
||||
provider:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@ -943,10 +943,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: webview_flutter_wkwebview
|
||||
sha256: "4d062ad505390ecef1c4bfb6001cd857a51e00912cc9dfb66edb1886a9ebd80c"
|
||||
sha256: b99ca8d8bae9c6b43d568218691aa537fb0aeae1d7d34eadf112a6aa36d26506
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.10.2"
|
||||
version: "3.11.0"
|
||||
win32:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -988,5 +988,5 @@ packages:
|
||||
source: hosted
|
||||
version: "3.1.2"
|
||||
sdks:
|
||||
dart: ">=3.2.0 <4.0.0"
|
||||
flutter: ">=3.16.0"
|
||||
dart: ">=3.2.3 <4.0.0"
|
||||
flutter: ">=3.16.6"
|
||||
|
@ -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
|
||||
# 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.
|
||||
version: 0.15.10+246 # When changing this, update the tag in main() accordingly
|
||||
version: 0.16.0+248 # When changing this, update the tag in main() accordingly
|
||||
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
|
Reference in New Issue
Block a user