mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-07-13 05:16:43 +02:00
Compare commits
48 Commits
Author | SHA1 | Date | |
---|---|---|---|
a5b3b9d1d0 | |||
13cd7e76c1 | |||
6e7ccfba37 | |||
34fd673e25 | |||
db484f7b28 | |||
b4cf0f5d29 | |||
4db205dd9a | |||
64f8e2a57b | |||
eddc245ff4 | |||
ed2f0f2c0c | |||
7d5a422855 | |||
e420862546 | |||
2cc59948a7 | |||
188d33199e | |||
24928261bb | |||
4c7bda8343 | |||
d88709c999 | |||
29e1481a3b | |||
9d76359543 | |||
f50e791221 | |||
7d08e5225c | |||
3842c1e2df | |||
21b1990991 | |||
e278c9fb5a | |||
bfa29bb7c2 | |||
efa55a9696 | |||
8888cd6264 | |||
34e2c014e3 | |||
5d92a6d013 | |||
fb03b2e95c | |||
5a1e09564c | |||
3783eba401 | |||
a3530ce6bb | |||
27d8655d58 | |||
fb845ce601 | |||
dbd433df9d | |||
badf32ff11 | |||
5e40f3264e | |||
71bb6d9410 | |||
731b682fc9 | |||
c9751227a5 | |||
6ef2a26e94 | |||
5a8efa2388 | |||
d25895fa28 | |||
de09f3ece2 | |||
1135ffb30f | |||
5379cb31e8 | |||
7d41ab44b7 |
2
.flutter
2
.flutter
Submodule .flutter updated: 67457e669f...bae5e49bc2
1
.github/ISSUE_TEMPLATE/bug_report.md
vendored
1
.github/ISSUE_TEMPLATE/bug_report.md
vendored
@ -10,6 +10,7 @@ assignees: ''
|
||||
**Prerequisites**
|
||||
<!-- Please ensure your request is not part of an existing issue. -->
|
||||
<!-- Please ensure you have checked the Obtainium Wiki. -->
|
||||
<!-- Please ensure your request is an actual bug and not intended behaviour (this is frequently the case for issues involving version strings and the HTML source. -->
|
||||
|
||||
**Describe the bug**
|
||||
<!-- A clear and concise description of what the bug is. -->
|
||||
|
5
.github/ISSUE_TEMPLATE/feature_request.md
vendored
5
.github/ISSUE_TEMPLATE/feature_request.md
vendored
@ -14,11 +14,14 @@ assignees: ''
|
||||
**Describe the feature**
|
||||
<!-- A clear and concise description of what you want to happen.
|
||||
|
||||
For new Sources, it's preferable (not required) if you suggest how the following details can be extracted from the Source in a reliable way (like an API or through web scraping):
|
||||
For new Sources, please ensure:
|
||||
1. It is not already possible to use the HTML Source for your purposes.
|
||||
2. It must be possible to extract the following details from the Source in a reliable way:
|
||||
- The App version (or any release-specific identifier - a "pseudo-version") for the latest release
|
||||
- One or more APK URL(s) for the latest release
|
||||
- Above details for previous releases (optional)
|
||||
|
||||
If you're not sure about 1 or 2, open a discussion item instead.
|
||||
Note that the Web scraper cannot deal with JavaScript-enabled content. -->
|
||||
|
||||
**Describe alternatives you've considered (if applicable)**
|
||||
|
@ -42,6 +42,9 @@ Currently supported App sources:
|
||||
[<img src="https://github.com/machiav3lli/oandbackupx/blob/034b226cea5c1b30eb4f6a6f313e4dadcbb0ece4/badge_github.png"
|
||||
alt="Get it on GitHub"
|
||||
height="80">](https://github.com/ImranR98/Obtainium/releases)
|
||||
[<img src="https://gitlab.com/fdroid/artwork/-/raw/master/badge/get-it-on.png"
|
||||
alt="Get it on F-Droid"
|
||||
height="80">](https://f-droid.org/packages/dev.imranr.obtainium.fdroid/)
|
||||
|
||||
[PGP Public Key](https://keyserver.ubuntu.com/pks/lookup?search=contact%40imranr.dev&fingerprint=on&op=index)
|
||||
|
||||
|
@ -108,3 +108,16 @@ dependencies {
|
||||
|
||||
implementation "com.github.topjohnwu.libsu:core:5.2.2"
|
||||
}
|
||||
|
||||
ext.abiCodes = ["x86_64": 1, "armeabi-v7a": 2, "arm64-v8a": 3]
|
||||
import com.android.build.OutputFile
|
||||
android.applicationVariants.all { variant ->
|
||||
variant.outputs.each { output ->
|
||||
def abiVersionCode = project.ext.abiCodes.get(output.getFilter(OutputFile.ABI))
|
||||
if (abiVersionCode != null) {
|
||||
output.versionCodeOverride = variant.versionCode * 10 + abiVersionCode
|
||||
} else {
|
||||
output.versionCodeOverride = variant.versionCode * 10
|
||||
}
|
||||
}
|
||||
}
|
@ -70,6 +70,6 @@
|
||||
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
|
||||
<uses-permission
|
||||
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
|
||||
android:maxSdkVersion="29" />
|
||||
android:maxSdkVersion="29" />\
|
||||
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
|
||||
</manifest>
|
@ -298,6 +298,9 @@
|
||||
"installed": "Instalirano",
|
||||
"latest": "Najnoviji",
|
||||
"invertRegEx": "Obrni regularni izraz",
|
||||
"note": "Note",
|
||||
"selfHostedNote": "The \"{}\" dropdown can be used to reach self-hosted/custom instances of any source.",
|
||||
"badDownload": "The APK could not be parsed (incompatible or partial download)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Želite li ukloniti aplikaciju?",
|
||||
"other": "Želite li ukloniti aplikacije?"
|
||||
|
@ -292,12 +292,15 @@
|
||||
"useLatestAssetDateAsReleaseDate": "Použít poslední nahrané dílo jako datum vydání",
|
||||
"defaultPseudoVersioningMethod": "Výchozí metoda pseudoverze",
|
||||
"partialAPKHash": "Částečný hash APK",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"APKLinkHash": "Odkaz APK Hash",
|
||||
"directAPKLink": "Přímý odkaz APK",
|
||||
"pseudoVersionInUse": "Pseudoverze se používá",
|
||||
"installed": "Instalováno",
|
||||
"latest": "Nejnovější",
|
||||
"invertRegEx": "Invertovat regulární výraz",
|
||||
"note": "Poznámka",
|
||||
"selfHostedNote": "Rozbalovací seznam \"{}\" lze použít k dosažení vlastních/obvyklých instancí libovolného zdroje.",
|
||||
"badDownload": "APK nelze analyzovat (nekompatibilní nebo částečné stažení)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Odstranit Apku?",
|
||||
"other": "Odstranit Apky?"
|
||||
|
@ -9,7 +9,7 @@
|
||||
"placeholder": "Platzhalter",
|
||||
"someErrors": "Es traten einige Fehler auf",
|
||||
"unexpectedError": "Unerwarteter Fehler",
|
||||
"ok": "Okay",
|
||||
"ok": "OK",
|
||||
"and": "und",
|
||||
"githubPATLabel": "GitHub Personal Access Token (Erhöht das Ratenlimit)",
|
||||
"includePrereleases": "Vorabversionen einbeziehen",
|
||||
@ -30,7 +30,7 @@
|
||||
"app": "App",
|
||||
"appsFromSourceAreTrackOnly": "Apps aus dieser Quelle sind nur zum Nachverfolgen.",
|
||||
"youPickedTrackOnly": "Sie haben die Option „Nur Nachverfolgen“ gewählt.",
|
||||
"trackOnlyAppDescription": "Die App wird auf Updates überwacht, aber Obtainium wird sie nicht herunterladen oder installieren.",
|
||||
"trackOnlyAppDescription": "Die App wird auf Aktualisierungen überwacht, aber Obtainium wird sie nicht herunterladen oder installieren.",
|
||||
"cancelled": "Abgebrochen",
|
||||
"appAlreadyAdded": "App bereits hinzugefügt",
|
||||
"alreadyUpToDateQuestion": "App bereits auf dem neuesten Stand?",
|
||||
@ -226,7 +226,7 @@
|
||||
"tryInferAppIdFromCode": "Versuche, die App-ID aus dem Quellcode zu ermitteln",
|
||||
"removeOnExternalUninstall": "Automatisches Entfernen von extern deinstallierten Apps",
|
||||
"pickHighestVersionCode": "Automatische Auswahl des APK mit höchstem Versionscode",
|
||||
"checkUpdateOnDetailPage": "Nach Updates suchen, wenn eine App-Detailseite geöffnet wird",
|
||||
"checkUpdateOnDetailPage": "Nach Aktualisierungen suchen, wenn eine App-Detailseite geöffnet wird",
|
||||
"disablePageTransitions": "Animationen für Seitenübergänge deaktivieren",
|
||||
"reversePageTransitions": "Umgekehrte Animationen für Seitenübergänge",
|
||||
"minStarCount": "Minimale Anzahl von Sternen",
|
||||
@ -238,7 +238,7 @@
|
||||
"filterReleaseNotesByRegEx": "Versionshinweise nach regulärem Ausdruck filtern",
|
||||
"customLinkFilterRegex": "Benutzerdefinierter APK Link Filter nach Regulärem Ausdruck (Standard '.apk$')",
|
||||
"appsPossiblyUpdated": "App Aktualisierungen wurden versucht",
|
||||
"appsPossiblyUpdatedNotifDescription": "Benachrichtigt den Benutzer, dass Updates für eine oder mehrere Apps möglicherweise im Hintergrund durchgeführt wurden",
|
||||
"appsPossiblyUpdatedNotifDescription": "Benachrichtigt den Benutzer, dass Aktualisierungen für eine oder mehrere Apps möglicherweise im Hintergrund durchgeführt wurden",
|
||||
"xWasPossiblyUpdatedToY": "{} wurde möglicherweise aktualisiert auf {}.",
|
||||
"enableBackgroundUpdates": "Aktiviere Hintergrundaktualisierungen",
|
||||
"backgroundUpdateReqsExplanation": "Die Hintergrundaktualisierung ist möglicherweise nicht für alle Apps möglich.",
|
||||
@ -268,7 +268,7 @@
|
||||
"runBgCheckNow": "Hintergrundaktualisierungsprüfung jetzt durchführen",
|
||||
"versionExtractWholePage": "Versions-Extraktion per RegEx auf die gesamte Seite anwenden",
|
||||
"installing": "Installiere",
|
||||
"skipUpdateNotifications": "Keine Benachrichtigung zu App-Updates geben",
|
||||
"skipUpdateNotifications": "Keine Benachrichtigung zu App-Aktualisierungen geben",
|
||||
"updatesAvailableNotifChannel": "Aktualisierungen verfügbar",
|
||||
"appsUpdatedNotifChannel": "Apps aktualisiert",
|
||||
"appsPossiblyUpdatedNotifChannel": "App Aktualisierungen wurden versucht",
|
||||
@ -294,10 +294,13 @@
|
||||
"partialAPKHash": "partieller APK-Hash",
|
||||
"APKLinkHash": "APK-Link-Hash",
|
||||
"directAPKLink": "Direkter APK-Link",
|
||||
"pseudoVersionInUse": "Pseudoversionen sind in Benutzung",
|
||||
"pseudoVersionInUse": "Es werden Pseudoversionen verwendet",
|
||||
"installed": "Installiert",
|
||||
"latest": "Neueste(r)",
|
||||
"latest": "Neueste Version",
|
||||
"invertRegEx": "Regulären Ausdruck invertieren",
|
||||
"note": "Hinweis",
|
||||
"selfHostedNote": "Das „{}“-Dropdown-Menü kann verwendet werden, um selbst gehostete/angepasste Instanzen einer beliebigen Quelle zu erreichen.",
|
||||
"badDownload": "Die APK konnte nicht geparst werden (inkompatibler oder teilweiser Download)",
|
||||
"removeAppQuestion": {
|
||||
"one": "App entfernen?",
|
||||
"other": "Apps entfernen?"
|
||||
|
@ -80,7 +80,6 @@
|
||||
"removeOutdatedFilter": "Remove Out-of-Date App Filter",
|
||||
"showOutdatedOnly": "Show Out-of-Date Apps Only",
|
||||
"filter": "Filter",
|
||||
"filterActive": "Filter *",
|
||||
"filterApps": "Filter Apps",
|
||||
"appName": "App Name",
|
||||
"author": "Author",
|
||||
@ -298,6 +297,9 @@
|
||||
"installed": "Installed",
|
||||
"latest": "Latest",
|
||||
"invertRegEx": "Invert regular expression",
|
||||
"note": "Note",
|
||||
"selfHostedNote": "The \"{}\" dropdown can be used to reach self-hosted/custom instances of any source.",
|
||||
"badDownload": "The APK could not be parsed (incompatible or partial download)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Remove App?",
|
||||
"other": "Remove Apps?"
|
||||
|
@ -298,6 +298,9 @@
|
||||
"installed": "Instalado",
|
||||
"latest": "Versión más reciente",
|
||||
"invertRegEx": "Invertir expresión regular",
|
||||
"note": "Nota",
|
||||
"selfHostedNote": "El desplegable \"{}\" puede utilizarse para acceder a instancias autoalojadas/personalizadas de cualquier fuente.",
|
||||
"badDownload": "No se ha podido analizar el APK (incompatible o descarga parcial)",
|
||||
"removeAppQuestion": {
|
||||
"one": "¿Eliminar Aplicación?",
|
||||
"other": "¿Eliminar Aplicaciones?"
|
||||
|
@ -298,6 +298,9 @@
|
||||
"installed": "نصب شده است",
|
||||
"latest": "آخرین",
|
||||
"invertRegEx": "معکوس کردن عبارت منظم",
|
||||
"note": "Note",
|
||||
"selfHostedNote": "The \"{}\" dropdown can be used to reach self-hosted/custom instances of any source.",
|
||||
"badDownload": "The APK could not be parsed (incompatible or partial download)",
|
||||
"removeAppQuestion": {
|
||||
"one": "برنامه حذف شود؟",
|
||||
"other": "برنامه ها حذف شوند؟"
|
||||
|
@ -298,6 +298,9 @@
|
||||
"installed": "Installée",
|
||||
"latest": "Dernier",
|
||||
"invertRegEx": "Inverser l'expression régulière",
|
||||
"note": "Note",
|
||||
"selfHostedNote": "La liste déroulante \"{}\" peut être utilisée pour accéder aux instances auto-hébergées/personnalisées de n'importe quelle source.",
|
||||
"badDownload": "L'APK n'a pas pu être analysé (téléchargement incompatible ou partiel)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Supprimer l'application ?",
|
||||
"other": "Supprimer les applications ?"
|
||||
|
@ -287,7 +287,7 @@
|
||||
"shizukuBinderNotFound": "A Shizuku nem fut",
|
||||
"useSystemFont": "Használja a rendszer betűtípusát",
|
||||
"systemFontError": "Hiba a rendszer betűtípusának betöltésekor: {}",
|
||||
"useVersionCodeAsOSVersion": "Az app versionCode használata a rendszer által észlelt verzióként",
|
||||
"useVersionCodeAsOSVersion": "Az app verziókód használata a rendszer által észlelt verzióként",
|
||||
"requestHeader": "Kérelem fejléc",
|
||||
"useLatestAssetDateAsReleaseDate": "Használja a legújabb tartalomfeltöltést megjelenési dátumként",
|
||||
"defaultPseudoVersioningMethod": "Alapértelmezett álversziós módszer",
|
||||
@ -298,9 +298,12 @@
|
||||
"installed": "Telepített",
|
||||
"latest": "Legújabb",
|
||||
"invertRegEx": "Invertált reguláris kifejezés",
|
||||
"note": "Megjegyzés:",
|
||||
"selfHostedNote": "A \"{}\" legördülő menü használható bármely forrás saját üzemeltetésű/egyéni példányainak eléréséhez.",
|
||||
"badDownload": "Az APK-t nem lehetett elemezni (inkompatibilis vagy részleges letöltés)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Eltávolítja az alkalmazást?",
|
||||
"other": "Eltávolítja az alkalmazást?"
|
||||
"other": "Eltávolítja az alkalmazásokat?"
|
||||
},
|
||||
"tooManyRequestsTryAgainInMinutes": {
|
||||
"one": "Túl sok kérés (korlátozott arány) – próbálja újra {} perc múlva",
|
||||
|
@ -111,7 +111,7 @@
|
||||
"dark": "Scuro",
|
||||
"light": "Chiaro",
|
||||
"followSystem": "Segui il sistema",
|
||||
"useBlackTheme": "Usa il tema Nero puro",
|
||||
"useBlackTheme": "Usa il tema nero puro",
|
||||
"appSortBy": "App ordinate per",
|
||||
"authorName": "Autore/Nome",
|
||||
"nameAuthor": "Nome/Autore",
|
||||
@ -283,13 +283,13 @@
|
||||
"parallelDownloads": "Permetti download paralleli",
|
||||
"installMethod": "Metodo d'installazione",
|
||||
"normal": "Normale",
|
||||
"root": "Radice",
|
||||
"root": "Root",
|
||||
"shizukuBinderNotFound": "Shizuku non è in esecuzione",
|
||||
"useSystemFont": "Utilizza il carattere di sistema",
|
||||
"systemFontError": "Errore durante il caricamento del carattere di sistema: {}",
|
||||
"useVersionCodeAsOSVersion": "Utilizza il codice versione dell'app come versione rilevata dal sistema operativo",
|
||||
"useSystemFont": "Usa i caratteri di sistema",
|
||||
"systemFontError": "Errore durante il caricamento dei caratteri di sistema: {}",
|
||||
"useVersionCodeAsOSVersion": "Usa il codice versione dell'app come versione rilevata dal sistema operativo",
|
||||
"requestHeader": "Intestazione della richiesta",
|
||||
"useLatestAssetDateAsReleaseDate": "Utilizza l'ultimo caricamento della risorsa come data di rilascio",
|
||||
"useLatestAssetDateAsReleaseDate": "Usa l'ultimo caricamento della risorsa come data di rilascio",
|
||||
"defaultPseudoVersioningMethod": "Metodo di pseudoversione predefinito",
|
||||
"partialAPKHash": "Hash APK parziale",
|
||||
"APKLinkHash": "Hash collegamento APK",
|
||||
@ -298,6 +298,9 @@
|
||||
"installed": "Installato",
|
||||
"latest": "Ultimo",
|
||||
"invertRegEx": "Inverti espressione regolare",
|
||||
"note": "Nota",
|
||||
"selfHostedNote": "Il menu a tendina \"{}\" può essere usato per raggiungere istanze autogestite/personali di qualsiasi fonte.",
|
||||
"badDownload": "Non è stato possibile analizzare l'APK (download incompatibile o parziale).",
|
||||
"removeAppQuestion": {
|
||||
"one": "Rimuovere l'app?",
|
||||
"other": "Rimuovere le app?"
|
||||
|
@ -298,6 +298,9 @@
|
||||
"installed": "インストール済み",
|
||||
"latest": "最新",
|
||||
"invertRegEx": "正規表現を反転",
|
||||
"note": "注",
|
||||
"selfHostedNote": "ドロップダウン\"{}\"を使用すると、あらゆるソースのセルフホスト/カスタムインスタンスにアクセスできます。",
|
||||
"badDownload": "APK を解析できませんでした(互換性がないか、部分的にダウンロードされています)。",
|
||||
"removeAppQuestion": {
|
||||
"one": "アプリを削除しますか?",
|
||||
"other": "アプリを削除しますか?"
|
||||
|
@ -298,6 +298,9 @@
|
||||
"installed": "Geïnstalleerd",
|
||||
"latest": "Laatste",
|
||||
"invertRegEx": "Reguliere expressie omkeren",
|
||||
"note": "Opmerking",
|
||||
"selfHostedNote": "De \"{}\" dropdown kan gebruikt worden om zelf gehoste/aangepaste instanties van elke bron te bereiken.",
|
||||
"badDownload": "De APK kon niet worden verwerkt (incompatibele of gedeeltelijke download)",
|
||||
"removeAppQuestion": {
|
||||
"one": "App verwijderen?",
|
||||
"other": "Apps verwijderen?"
|
||||
|
@ -298,6 +298,9 @@
|
||||
"installed": "Zainstalowano",
|
||||
"latest": "Najnowszy",
|
||||
"invertRegEx": "Odwróć wyrażenie regularne",
|
||||
"note": "Uwaga",
|
||||
"selfHostedNote": "Lista rozwijana \"{}\" może być używana do uzyskiwania dostępu do samodzielnie hostowanych / niestandardowych instancji dowolnego źródła.",
|
||||
"badDownload": "Nie można przeanalizować pliku APK (niekompatybilny lub częściowo pobrany).",
|
||||
"removeAppQuestion": {
|
||||
"one": "Usunąć aplikację?",
|
||||
"few": "Usunąć aplikacje?",
|
||||
|
@ -2,7 +2,7 @@
|
||||
"invalidURLForSource": "URL {} inválida",
|
||||
"noReleaseFound": "Não foi possível encontrar uma versão adequada",
|
||||
"noVersionFound": "Não foi possível encontrar uma versão",
|
||||
"urlMatchesNoSource": "URL não corresponde a uma fonte conhecida",
|
||||
"urlMatchesNoSource": "A URL não corresponde a uma fonte conhecida",
|
||||
"cantInstallOlderVersion": "Não é permitido instalar uma versão anterior de um aplicativo",
|
||||
"appIdMismatch": "ID do pacote baixado não é igual ao ID do aplicativo instalado",
|
||||
"functionNotImplemented": "Esta classe não implementou essa função",
|
||||
@ -11,10 +11,10 @@
|
||||
"unexpectedError": "Erro inesperado",
|
||||
"ok": "OK",
|
||||
"and": "e",
|
||||
"githubPATLabel": "Token de acesso pessoal do GitHub (Reduz tempos de espera)",
|
||||
"githubPATLabel": "Token de acesso pessoal do GitHub\n(Reduz tempos de espera)",
|
||||
"includePrereleases": "Incluir pré-lançamentos",
|
||||
"fallbackToOlderReleases": "Retornar para versões anteriores",
|
||||
"filterReleaseTitlesByRegEx": "Filtrar títulos de versões por expressão regular",
|
||||
"filterReleaseTitlesByRegEx": "Filtrar títulos de versões usando expressão regular",
|
||||
"invalidRegEx": "Expressão regular inválida",
|
||||
"noDescription": "Sem descrição",
|
||||
"cancel": "Cancelar",
|
||||
@ -22,7 +22,7 @@
|
||||
"requiredInBrackets": "(Necessário)",
|
||||
"dropdownNoOptsError": "ERRO: O DROPDOWN DEVE TER PELO MENOS UMA OPÇÃO",
|
||||
"colour": "Cor",
|
||||
"githubStarredRepos": "Favoritados no GitHub",
|
||||
"githubStarredRepos": "repositórios favoritos no GitHub",
|
||||
"uname": "Nome de usuário",
|
||||
"wrongArgNum": "Número de argumentos errado",
|
||||
"xIsTrackOnly": "{} é 'Apenas monitorar'",
|
||||
@ -38,12 +38,12 @@
|
||||
"appSourceURL": "URL de origem do aplicativo",
|
||||
"error": "Erro",
|
||||
"add": "Adicionar",
|
||||
"searchSomeSourcesLabel": "Procurar (Apenas algumas fontes)",
|
||||
"searchSomeSourcesLabel": "Procurar (apenas algumas fontes)",
|
||||
"search": "Procurar",
|
||||
"additionalOptsFor": "Opções adicionais para {}",
|
||||
"supportedSources": "Fontes compatíveis",
|
||||
"trackOnlyInBrackets": "(Apenas monitorar)",
|
||||
"searchableInBrackets": "(Pesquisável)",
|
||||
"trackOnlyInBrackets": "(apenas monitorar)",
|
||||
"searchableInBrackets": "(pesquisável)",
|
||||
"appsString": "Aplicativos",
|
||||
"noApps": "Não há aplicativos",
|
||||
"noAppsForFilter": "Sem aplicativos para filtrar",
|
||||
@ -70,12 +70,12 @@
|
||||
"markSelectedAppsUpdated": "Marcar aplicativos selecionados como Atualizados",
|
||||
"pinToTop": "Fixar no topo",
|
||||
"unpinFromTop": "Desafixar do topo",
|
||||
"resetInstallStatusForSelectedAppsQuestion": "Reiniciar status de instalação para aplicativos selecionados?",
|
||||
"installStatusOfXWillBeResetExplanation": "O status de instalação de qualquer aplicativo selecionado será reiniciado.\n\nIsso pode ajudar quando uma versão de um aplicativo mostrada no Obtainium é incorreta devido a falhas ao atualizar ou outros problemas.",
|
||||
"resetInstallStatusForSelectedAppsQuestion": "Reiniciar status de instalação nos aplicativos selecionados?",
|
||||
"installStatusOfXWillBeResetExplanation": "O status de instalação de todos os aplicativos selecionados será reiniciado.\n\nIsso pode ajudar quando uma versão de um aplicativo mostrada no Obtainium é incorreta devido a falhas ao atualizar ou outros problemas.",
|
||||
"customLinkMessage": "Esses links funcionam em dispositivos com o Obtainium instalado",
|
||||
"shareAppConfigLinks": "Compartilhar configuração do aplicativo como link HTML",
|
||||
"shareSelectedAppURLs": "Compartilhar URLs de aplicativos selecionados",
|
||||
"resetInstallStatus": "Reiniciar status de Iistalação",
|
||||
"resetInstallStatus": "Reiniciar status de instalação",
|
||||
"more": "Mais",
|
||||
"removeOutdatedFilter": "Remover filtro de aplicativos desatualizados",
|
||||
"showOutdatedOnly": "Mostrar apenas aplicativos desatualizados",
|
||||
@ -84,20 +84,20 @@
|
||||
"filterApps": "Filtrar aplicativos",
|
||||
"appName": "Nome do aplicativo",
|
||||
"author": "Autor",
|
||||
"upToDateApps": "Aplicativos tualizados",
|
||||
"upToDateApps": "Aplicativos atualizados",
|
||||
"nonInstalledApps": "Aplicativos não instalados",
|
||||
"importExport": "Importar/Exportar",
|
||||
"settings": "Configurações",
|
||||
"exportedTo": "Exportado para {}",
|
||||
"obtainiumExport": "Exportar Obtainium",
|
||||
"invalidInput": "Input Inválido",
|
||||
"obtainiumExport": "Exportar dados do Obtainium",
|
||||
"invalidInput": "Entrada inválida",
|
||||
"importedX": "Importado {}",
|
||||
"obtainiumImport": "Importar Obtainium",
|
||||
"obtainiumImport": "Importar dados do Obtainium",
|
||||
"importFromURLList": "Importar de lista de URLs",
|
||||
"searchQuery": "Pesquisa",
|
||||
"appURLList": "Lista de URLs de aplicativos",
|
||||
"line": "Linha",
|
||||
"searchX": "Pesquisa {}",
|
||||
"searchX": "Pesquisar na/o {}",
|
||||
"noResults": "Nenhum resultado encontrado",
|
||||
"importX": "Importar {}",
|
||||
"importedAppsIdDisclaimer": "Aplicativos Importados podem ser mostrados incorretamente como \"Não Instalado\".\nPara consertar, reinstale-os usando o Obtainium.\nIsso não deve afetar dados do aplicativo.\n\nAfeta apenas métodos de importação de URL e de terceiros.",
|
||||
@ -110,8 +110,8 @@
|
||||
"theme": "Tema",
|
||||
"dark": "Escuro",
|
||||
"light": "Claro",
|
||||
"followSystem": "Seguir o sistema",
|
||||
"useBlackTheme": "Usar tema preto completamente escuro",
|
||||
"followSystem": "Padrão do sistema",
|
||||
"useBlackTheme": "Usar tema preto AMOLED",
|
||||
"appSortBy": "Classificar aplicativo por",
|
||||
"authorName": "Autor/Nome",
|
||||
"nameAuthor": "Nome/Autor",
|
||||
@ -122,10 +122,10 @@
|
||||
"bgUpdateCheckInterval": "Intervalo de verificação de atualizações em segundo-plano",
|
||||
"neverManualOnly": "Nunca - apenas manual",
|
||||
"appearance": "Aparência",
|
||||
"showWebInAppView": "Mostrar página da internet em informações do aplicativo",
|
||||
"showWebInAppView": "Mostrar página web do aplicativo em informações do aplicativo",
|
||||
"pinUpdates": "Fixar atualizações no topo da janela de aplicativos",
|
||||
"updates": "Atualizações",
|
||||
"sourceSpecific": "Específico a fonte",
|
||||
"sourceSpecific": "Token de acesso",
|
||||
"appSource": "Fonte do aplicativo",
|
||||
"noLogs": "Sem logs",
|
||||
"appLogs": "Logs do aplicativo",
|
||||
@ -151,7 +151,7 @@
|
||||
"appsRemoved": "Aplicativos removidos",
|
||||
"appsRemovedNotifDescription": "Notifica o usuário quando um ou mais aplicativos foram removidos devido a erros de carregamento",
|
||||
"xWasRemovedDueToErrorY": "{} foi removido devido a este erro: {}",
|
||||
"completeAppInstallation": "Instalação do aplicativo completa",
|
||||
"completeAppInstallation": "Instalação do aplicativo concluída",
|
||||
"obtainiumMustBeOpenToInstallApps": "Obtainium deve estar aberto para instalar os aplicativos",
|
||||
"completeAppInstallationNotifDescription": "Pede ao usuário que retorne ao Obtainium para finalizar a instalação de um aplicativo",
|
||||
"checkingForUpdates": "Verificando atualizações",
|
||||
@ -167,15 +167,15 @@
|
||||
"installedVersionX": "Versão instalada: {}",
|
||||
"lastUpdateCheckX": "Última verificação de atualizações: {}",
|
||||
"remove": "Remover",
|
||||
"yesMarkUpdated": "Sim, marcar como Atualizado",
|
||||
"yesMarkUpdated": "Sim, marcar como atualizado",
|
||||
"fdroid": "Oficial F-Droid",
|
||||
"appIdOrName": "ID do aplicativo ou nome",
|
||||
"appId": "ID do aplicativo",
|
||||
"appWithIdOrNameNotFound": "Nenhum aplicativo foi encontrado com esse ID ou nome",
|
||||
"reposHaveMultipleApps": "Repositórios podem conter multiplos aplicativos",
|
||||
"reposHaveMultipleApps": "Repositórios podem conter múltiplos aplicativos",
|
||||
"fdroidThirdPartyRepo": "Repositórios de terceiros F-Droid",
|
||||
"steamMobile": "Vapor Móvel",
|
||||
"steamChat": "Bate-papo Steam",
|
||||
"steamMobile": "Steam para celular",
|
||||
"steamChat": "Chat do Steam",
|
||||
"install": "Instalar",
|
||||
"markInstalled": "Marcar instalado",
|
||||
"update": "Atualizar",
|
||||
@ -191,7 +191,7 @@
|
||||
"categories": "Categorias",
|
||||
"category": "Categoria",
|
||||
"noCategory": "Sem categoria",
|
||||
"noCategories": "Sem categoria",
|
||||
"noCategories": "Sem categorias",
|
||||
"deleteCategoriesQuestion": "Deletar categorias?",
|
||||
"categoryDeleteWarning": "Todos os aplicativos em categorias removidas serão descategorizados.",
|
||||
"addCategory": "Adicionar categoria",
|
||||
@ -200,15 +200,15 @@
|
||||
"copiedToClipboard": "Copiado para a área de transferência",
|
||||
"storagePermissionDenied": "Permissão de armazenamento negada",
|
||||
"selectedCategorizeWarning": "Isso vai substituir qualquer configuração de categoria para os aplicativos selecionados.",
|
||||
"filterAPKsByRegEx": "Filtrar APKs por expressão regular",
|
||||
"filterAPKsByRegEx": "Filtrar APKs usando expressão regular",
|
||||
"removeFromObtainium": "Remover do Obtainium",
|
||||
"uninstallFromDevice": "Desinstalar do dispositivo",
|
||||
"onlyWorksWithNonVersionDetectApps": "Apenas funciona para aplicativos com detecção de versão desativada.",
|
||||
"releaseDateAsVersion": "Usar data de lançamento como versão",
|
||||
"releaseDateAsVersionExplanation": "Esta opção só deve ser usada para aplicativos onde a detecção de versão não funciona corretamente, mas há uma data de lançamento disponível.",
|
||||
"changes": "Mudanças",
|
||||
"changes": "Alterações",
|
||||
"releaseDate": "Data de lançamento",
|
||||
"importFromURLsInFile": "Importar de URLs em arquivo (como OPML)",
|
||||
"importFromURLsInFile": "Importar de URLs em arquivo (formato OPML)",
|
||||
"versionDetectionExplanation": "Reconciliar string de versão com versão detectada no sistema operacional",
|
||||
"versionDetection": "Detecção de versão",
|
||||
"standardVersionDetection": "Detecção de versão padrão",
|
||||
@ -216,10 +216,10 @@
|
||||
"autoApkFilterByArch": "Tente filtrar APKs por arquitetura de CPU, se possível",
|
||||
"overrideSource": "Substituir fonte",
|
||||
"dontShowAgain": "Não mostrar isso novamente",
|
||||
"dontShowTrackOnlyWarnings": "Não mostrar avisos 'Apenas Monitorar'",
|
||||
"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 Acesso Pessoal do Gitlab\n(Ativa pesquisa e melhora a 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": "Verificar se há atualizações ao iniciar",
|
||||
@ -228,7 +228,7 @@
|
||||
"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 página",
|
||||
"reversePageTransitions": "Reverter animações de transição de página",
|
||||
"reversePageTransitions": "Animações de transição de página invertidas",
|
||||
"minStarCount": "Contagem mínima de estrelas",
|
||||
"addInfoBelow": "Adicionar essa informação abaixo.",
|
||||
"addInfoInSettings": "Adicionar essa informação nas configurações.",
|
||||
@ -254,7 +254,7 @@
|
||||
"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",
|
||||
"pickExportDir": "Escolher diretório para exportação",
|
||||
"autoExportOnChanges": "Auto-exportar em mudanças",
|
||||
"includeSettings": "Incluir configurações",
|
||||
"filterVersionsByRegEx": "Filtrar versões por expressão regular",
|
||||
@ -272,18 +272,18 @@
|
||||
"updatesAvailableNotifChannel": "Atualizações disponíveis",
|
||||
"appsUpdatedNotifChannel": "Aplicativos atualizados",
|
||||
"appsPossiblyUpdatedNotifChannel": "Tentativas de atualização de aplicativos",
|
||||
"errorCheckingUpdatesNotifChannel": "Erro ao Procurar por Atualizações",
|
||||
"errorCheckingUpdatesNotifChannel": "Erro ao procurar por atualizações",
|
||||
"appsRemovedNotifChannel": "Aplicativos removidos",
|
||||
"downloadingXNotifChannel": "Baixando {}",
|
||||
"completeAppInstallationNotifChannel": "Instalação completa do aplicativo",
|
||||
"checkingForUpdatesNotifChannel": "Checando por Atualizações",
|
||||
"onlyCheckInstalledOrTrackOnlyApps": "Apenas checar aplicativos instalados e 'Apenas Seguir' por updates",
|
||||
"checkingForUpdatesNotifChannel": "Checando por atualizações",
|
||||
"onlyCheckInstalledOrTrackOnlyApps": "Apenas verificar atualizações de aplicativos instalados e 'Apenas monitorar'",
|
||||
"supportFixedAPKURL": "Suporte a APK com URLs fixas",
|
||||
"selectX": "Selecionar {}",
|
||||
"parallelDownloads": "Permitir downloads paralelos",
|
||||
"installMethod": "Método de instalação",
|
||||
"normal": "Normal",
|
||||
"root": "Raiz",
|
||||
"root": "Root",
|
||||
"shizukuBinderNotFound": "O Shizuku não está rodando",
|
||||
"useSystemFont": "Usar fonte padrão do sistema",
|
||||
"systemFontError": "Erro ao carregar a fonte do sistema: {}",
|
||||
@ -298,6 +298,9 @@
|
||||
"installed": "Instalado",
|
||||
"latest": "Mais recente",
|
||||
"invertRegEx": "Inverter expressão regular",
|
||||
"note": "Nota",
|
||||
"selfHostedNote": "O menu suspenso \"{}\" pode ser usado para acessar instâncias auto-hospedadas/personalizadas de qualquer fonte.",
|
||||
"badDownload": "Não foi possível analisar o APK (transferência incompatível ou parcial)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Remover aplicativo?",
|
||||
"other": "Remover aplicativos?"
|
||||
@ -339,15 +342,15 @@
|
||||
"other": "Foram limpos {n} logs (antes = {antes}, depois = {depois})"
|
||||
},
|
||||
"xAndNMoreUpdatesAvailable": {
|
||||
"one": "{} e 1 outro aplicativo possui atualizações.",
|
||||
"one": "{} e um outro aplicativo possui atualizações.",
|
||||
"other": "{} e {} outros aplicativo possuem atualizações."
|
||||
},
|
||||
"xAndNMoreUpdatesInstalled": {
|
||||
"one": "{} e um outro aplicativo foi atualizado.",
|
||||
"one": "{} e um outro aplicativo foram atualizado.",
|
||||
"other": "{} e {} outros aplicativos foram atualizados."
|
||||
},
|
||||
"xAndNMoreUpdatesPossiblyInstalled": {
|
||||
"one": "{} e 1 outro aplicativo pode ter sido atualizado.",
|
||||
"one": "{} e um outro aplicativo podem ter sido atualizados.",
|
||||
"other": "{} e {} outros aplicativos podem ter sido atualizados."
|
||||
}
|
||||
}
|
||||
|
@ -298,6 +298,9 @@
|
||||
"installed": "Установлен",
|
||||
"latest": "Последний",
|
||||
"invertRegEx": "Инвертировать регулярное выражение",
|
||||
"note": "Примечание",
|
||||
"selfHostedNote": "Выпадающий список \"{}\" можно использовать для доступа к самостоятельно размещенным/настроенным экземплярам любого источника.",
|
||||
"badDownload": "APK не удалось разобрать (несовместимая или неполная загрузка)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Удалить приложение?",
|
||||
"other": "Удалить приложения?"
|
||||
|
@ -1,30 +1,119 @@
|
||||
// Take one (hardcoded) translation file and ensure that all other translation files have the same keys in the same order
|
||||
// Then report which other translation files have identical items
|
||||
// Then report which other translation files have identical items (or auto-translate them if a DeepL API key is provided)
|
||||
|
||||
const fs = require('fs')
|
||||
const https = require('https')
|
||||
|
||||
const translationsDir = __dirname
|
||||
const templateFile = `${translationsDir}/en.json`
|
||||
const otherFiles = fs.readdirSync(translationsDir).map(f => {
|
||||
return `${translationsDir}/${f}`
|
||||
}).filter(f => f.endsWith('.json') && f != templateFile)
|
||||
const deeplAPIKey = process.argv[2]
|
||||
|
||||
const templateTranslation = require(templateFile)
|
||||
const neverAutoTranslate = {
|
||||
steamMobile: ['*'],
|
||||
steamChat: ['*'],
|
||||
root: ['*'],
|
||||
obtainiumExportHyphenatedLowercase: ['*'],
|
||||
theme: ['de'],
|
||||
appId: ['de']
|
||||
}
|
||||
|
||||
otherFiles.forEach(file => {
|
||||
const thisTranslationOriginal = require(file)
|
||||
const thisTranslationNew = {}
|
||||
Object.keys(templateTranslation).forEach(k => {
|
||||
thisTranslationNew[k] = thisTranslationOriginal[k] || templateTranslation[k]
|
||||
})
|
||||
fs.writeFileSync(file, `${JSON.stringify(thisTranslationNew, null, ' ')}\n`)
|
||||
});
|
||||
|
||||
otherFiles.forEach(file => {
|
||||
const thisTranslation = require(file)
|
||||
Object.keys(templateTranslation).forEach(k => {
|
||||
if (JSON.stringify(thisTranslation[k]) == JSON.stringify(templateTranslation[k])) {
|
||||
console.log(`${file} :::: ${k} :::: ${JSON.stringify(thisTranslation[k])}`)
|
||||
const translateText = async (text, targetLang, authKey) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
const postData = `text=${encodeURIComponent(text)}&target_lang=${encodeURIComponent(targetLang)}&source_lang=EN`
|
||||
const options = {
|
||||
hostname: 'api-free.deepl.com',
|
||||
port: 443,
|
||||
path: '/v2/translate',
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': `DeepL-Auth-Key ${authKey}`,
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'Content-Length': Buffer.byteLength(postData)
|
||||
}
|
||||
}
|
||||
const req = https.request(options, (res) => {
|
||||
let responseData = ''
|
||||
res.on('data', (chunk) => {
|
||||
responseData += chunk
|
||||
})
|
||||
res.on('end', () => {
|
||||
try {
|
||||
const jsonResponse = JSON.parse(responseData)
|
||||
resolve(jsonResponse)
|
||||
} catch (error) {
|
||||
reject(error)
|
||||
}
|
||||
})
|
||||
})
|
||||
req.on('error', (error) => {
|
||||
reject(error)
|
||||
})
|
||||
req.write(postData)
|
||||
req.end()
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
const main = async () => {
|
||||
const translationsDir = __dirname
|
||||
const templateFile = `${translationsDir}/en.json`
|
||||
const otherFiles = fs.readdirSync(translationsDir).map(f => {
|
||||
return `${translationsDir}/${f}`
|
||||
}).filter(f => f.endsWith('.json') && f != templateFile)
|
||||
|
||||
const templateTranslation = require(templateFile)
|
||||
|
||||
|
||||
otherFiles.forEach(file => {
|
||||
const thisTranslationOriginal = require(file)
|
||||
const thisTranslationNew = {}
|
||||
Object.keys(templateTranslation).forEach(k => {
|
||||
thisTranslationNew[k] = thisTranslationOriginal[k] || templateTranslation[k]
|
||||
})
|
||||
fs.writeFileSync(file, `${JSON.stringify(thisTranslationNew, null, ' ')}\n`)
|
||||
})
|
||||
|
||||
for (let i in otherFiles) {
|
||||
const file = otherFiles[i]
|
||||
const thisTranslation = require(file)
|
||||
const translationKeys = Object.keys(templateTranslation)
|
||||
for (let j in translationKeys) {
|
||||
const k = translationKeys[j]
|
||||
if (JSON.stringify(thisTranslation[k]) == JSON.stringify(templateTranslation[k])) {
|
||||
const lang = file.split('/').pop().split('.')[0]
|
||||
if (!neverAutoTranslate[k] || (neverAutoTranslate[k].indexOf('*') < 0 && neverAutoTranslate[k].indexOf(lang) < 0)) {
|
||||
const reportLine = `${file} :::: ${k} :::: ${JSON.stringify(thisTranslation[k])}`
|
||||
if (deeplAPIKey) {
|
||||
const translateFunc = async (str) => {
|
||||
const response = await translateText(str, lang, deeplAPIKey)
|
||||
if (response.translations) {
|
||||
return response.translations[0].text
|
||||
} else {
|
||||
throw JSON.stringify(response)
|
||||
}
|
||||
}
|
||||
try {
|
||||
if (typeof templateTranslation[k] == 'string') {
|
||||
thisTranslation[k] = await translateFunc(thisTranslation[k])
|
||||
} else {
|
||||
const subKeys = Object.keys(templateTranslation[k])
|
||||
for (let n in subKeys) {
|
||||
const kk = subKeys[n]
|
||||
thisTranslation[k][kk] = await translateFunc(thisTranslation[k][kk])
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
if (typeof e == 'string') {
|
||||
console.log(`${reportLine} :::: ${e}`)
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
} else {
|
||||
console.log(reportLine)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
fs.writeFileSync(file, `${JSON.stringify(thisTranslation, null, ' ')}\n`)
|
||||
}
|
||||
}
|
||||
|
||||
main().catch(e => console.error)
|
||||
|
@ -288,16 +288,19 @@
|
||||
"useSystemFont": "Använd systemteckensnittet",
|
||||
"systemFontError": "Fel vid laddning av systemteckensnittet: {}",
|
||||
"useVersionCodeAsOSVersion": "Använd appversionskoden som OS-upptäckt version",
|
||||
"requestHeader": "Request header",
|
||||
"requestHeader": "Rubrik för begäran",
|
||||
"useLatestAssetDateAsReleaseDate": "Använd senaste tillgångsuppladdning som releasedatum",
|
||||
"defaultPseudoVersioningMethod": "Standard pseudoversionsmetod",
|
||||
"partialAPKHash": "Delvis APK-hash",
|
||||
"APKLinkHash": "APK Link Hash",
|
||||
"APKLinkHash": "APK-länk Hash",
|
||||
"directAPKLink": "Direkt APK-länk",
|
||||
"pseudoVersionInUse": "En pseudoversion används",
|
||||
"installed": "Installerad",
|
||||
"latest": "Senast",
|
||||
"invertRegEx": "Invertera reguljärt uttryck",
|
||||
"note": "Anmärkning",
|
||||
"selfHostedNote": "Rullgardinsmenyn \"{}\" kan användas för att nå självhostade/anpassade instanser av valfri källa.",
|
||||
"badDownload": "APK kunde inte analyseras (inkompatibel eller partiell nedladdning)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Ta Bort App?",
|
||||
"other": "Ta Bort Appar?"
|
||||
|
@ -298,6 +298,9 @@
|
||||
"installed": "Kurulmuş",
|
||||
"latest": "En sonuncu",
|
||||
"invertRegEx": "Normal ifadeyi ters çevir",
|
||||
"note": "Not",
|
||||
"selfHostedNote": "\"{}\" açılır menüsü, herhangi bir kaynağın kendi kendine barındırılan/özel örneklerine ulaşmak için kullanılabilir.",
|
||||
"badDownload": "APK ayrıştırılamadı (uyumsuz veya kısmi indirme)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Uygulamayı Kaldır?",
|
||||
"other": "Uygulamaları Kaldır?"
|
||||
|
@ -25,11 +25,11 @@
|
||||
"githubStarredRepos": "Kho lưu trữ có gắn dấu sao GitHub",
|
||||
"uname": "Tên người dùng",
|
||||
"wrongArgNum": "Số lượng đối số được cung cấp sai",
|
||||
"xIsTrackOnly": "{}là Chỉ-Theo dõi",
|
||||
"xIsTrackOnly": "{} là Chỉ theo dõi",
|
||||
"source": "Nguồn",
|
||||
"app": "Ứng dụng",
|
||||
"appsFromSourceAreTrackOnly": "Các ứng dụng từ nguồn này là 'Chỉ-Theo dõi'.",
|
||||
"youPickedTrackOnly": "Bạn đã chọn tùy chọn 'Chỉ-Theo dõi'.",
|
||||
"appsFromSourceAreTrackOnly": "Các ứng dụng từ nguồn này là 'Chỉ theo dõi'.",
|
||||
"youPickedTrackOnly": "Bạn đã chọn tùy chọn 'Chỉ theo dõi'.",
|
||||
"trackOnlyAppDescription": "Ứng dụng sẽ được theo dõi để cập nhật, nhưng Obtainium sẽ không thể tải xuống hoặc cài đặt nó.",
|
||||
"cancelled": "Đã hủy",
|
||||
"appAlreadyAdded": "Ứng dụng được thêm rồi",
|
||||
@ -42,7 +42,7 @@
|
||||
"search": "Tìm kiếm",
|
||||
"additionalOptsFor": "Tùy chọn bổ sung cho {}",
|
||||
"supportedSources": "Nguồn được hỗ trợ",
|
||||
"trackOnlyInBrackets": "(Chỉ-Theo dõi)",
|
||||
"trackOnlyInBrackets": "(Chỉ theo dõi)",
|
||||
"searchableInBrackets": "(Có thể tìm kiếm)",
|
||||
"appsString": "Ứng dụng",
|
||||
"noApps": "Không có ứng dụng",
|
||||
@ -60,7 +60,7 @@
|
||||
"removeSelectedApps": "Xóa ứng dụng đã chọn",
|
||||
"updateX": "Cập nhật {}",
|
||||
"installX": "Cài đặt {}",
|
||||
"markXTrackOnlyAsUpdated": "Đánh dấu {}\n(Chỉ-Theo dõi)\nnhư là đã cập nhật",
|
||||
"markXTrackOnlyAsUpdated": "Đánh dấu {}\n(Chỉ theo dõi)\nnhư là đã cập nhật",
|
||||
"changeX": "Thay đổi {}",
|
||||
"installUpdateApps": "Cài đặt/Cập nhật ứng dụng",
|
||||
"installUpdateSelectedApps": "Cài đặt/Cập nhật ứng dụng đã chọn",
|
||||
@ -277,7 +277,7 @@
|
||||
"downloadingXNotifChannel": "Đang tải xuống {}",
|
||||
"completeAppInstallationNotifChannel": "Hoàn tất cài đặt ứng dụng",
|
||||
"checkingForUpdatesNotifChannel": "Đang kiểm tra cập nhật",
|
||||
"onlyCheckInstalledOrTrackOnlyApps": "Chỉ kiểm tra cập nhật các ứng dụng đã cài đặt và Chỉ-Theo dõi",
|
||||
"onlyCheckInstalledOrTrackOnlyApps": "Chỉ kiểm tra cập nhật các ứng dụng đã cài đặt và Chỉ theo dõi",
|
||||
"supportFixedAPKURL": "Hỗ trợ URL APK cố định",
|
||||
"selectX": "Lựa chọn {}",
|
||||
"parallelDownloads": "Cho phép tải đa luồng",
|
||||
@ -295,9 +295,12 @@
|
||||
"APKLinkHash": "Băm liên kết APK",
|
||||
"directAPKLink": "Liên kết APK trực tiếp",
|
||||
"pseudoVersionInUse": "Phiên bản giả đang được sử dụng",
|
||||
"installed": "Cài đặt",
|
||||
"installed": "Đã cài đặt",
|
||||
"latest": "Mới nhất",
|
||||
"invertRegEx": "Đảo ngược biểu thức chính quy",
|
||||
"note": "Note",
|
||||
"selfHostedNote": "The \"{}\" dropdown can be used to reach self-hosted/custom instances of any source.",
|
||||
"badDownload": "The APK could not be parsed (incompatible or partial download)",
|
||||
"removeAppQuestion": {
|
||||
"one": "Gỡ ứng dụng?",
|
||||
"other": "Gỡ ứng dụng?"
|
||||
|
@ -298,6 +298,9 @@
|
||||
"installed": "已安装",
|
||||
"latest": "最新的",
|
||||
"invertRegEx": "反转正则表达式",
|
||||
"note": "备注",
|
||||
"selfHostedNote": "{}\"下拉菜单可用于访问任何来源的自托管/自定义实例。",
|
||||
"badDownload": "无法解析 APK(不兼容或部分下载)",
|
||||
"removeAppQuestion": {
|
||||
"one": "是否删除应用?",
|
||||
"other": "是否删除应用?"
|
||||
|
1
build.sh
1
build.sh
@ -8,6 +8,7 @@ if [ -z "$1" ]; then
|
||||
git fetch && git merge origin/main && git push # Typically run after a PR to main, so bring dev up to date
|
||||
fi
|
||||
cd .flutter
|
||||
git fetch
|
||||
git checkout "$(flutter --version | head -2 | tail -1 | awk '{print $4}')" # Ensure included Flutter submodule version equals my environment
|
||||
cd ..
|
||||
rm ./build/app/outputs/flutter-apk/* 2>/dev/null # Get rid of older builds if any
|
||||
|
@ -3,6 +3,8 @@ import 'dart:convert';
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:html/parser.dart';
|
||||
import 'package:http/http.dart';
|
||||
import 'package:obtainium/app_sources/github.dart';
|
||||
import 'package:obtainium/app_sources/gitlab.dart';
|
||||
import 'package:obtainium/components/generated_form.dart';
|
||||
import 'package:obtainium/custom_errors.dart';
|
||||
import 'package:obtainium/providers/source_provider.dart';
|
||||
@ -74,16 +76,7 @@ class FDroid extends AppSource {
|
||||
'https://$host/repo/$appId',
|
||||
standardUrl,
|
||||
name,
|
||||
autoSelectHighestVersionCode:
|
||||
additionalSettings['autoSelectHighestVersionCode'] == true,
|
||||
trySelectingSuggestedVersionCode:
|
||||
additionalSettings['trySelectingSuggestedVersionCode'] == true,
|
||||
filterVersionsByRegEx:
|
||||
(additionalSettings['filterVersionsByRegEx'] as String?)
|
||||
?.isNotEmpty ==
|
||||
true
|
||||
? additionalSettings['filterVersionsByRegEx']
|
||||
: null);
|
||||
additionalSettings: additionalSettings);
|
||||
if (!hostChanged) {
|
||||
try {
|
||||
var res = await sourceRequest(
|
||||
@ -95,17 +88,32 @@ class FDroid extends AppSource {
|
||||
details.names.author =
|
||||
authorLines.first.split(': ').sublist(1).join(': ');
|
||||
}
|
||||
var changelogUrls = lines.where((l) => l.startsWith('Changelog: '));
|
||||
var changelogUrls = lines
|
||||
.where((l) => l.startsWith('Changelog: '))
|
||||
.map((e) => e.split(' ').sublist(1).join(' '));
|
||||
if (changelogUrls.isNotEmpty) {
|
||||
details.changeLog = changelogUrls.first;
|
||||
details.changeLog = (await sourceRequest(
|
||||
details.changeLog!
|
||||
.split(': ')
|
||||
.sublist(1)
|
||||
.join(': ')
|
||||
.replaceFirst('/blob/', '/raw/'),
|
||||
additionalSettings))
|
||||
.body;
|
||||
bool isGitHub = false;
|
||||
bool isGitLab = false;
|
||||
try {
|
||||
GitHub().sourceSpecificStandardizeURL(details.changeLog!);
|
||||
isGitHub = true;
|
||||
} catch (e) {
|
||||
//
|
||||
}
|
||||
try {
|
||||
GitLab().sourceSpecificStandardizeURL(details.changeLog!);
|
||||
isGitLab = true;
|
||||
} catch (e) {
|
||||
//
|
||||
}
|
||||
if ((isGitHub || isGitLab) &&
|
||||
(details.changeLog?.indexOf('/blob/') ?? -1) >= 0) {
|
||||
details.changeLog = (await sourceRequest(
|
||||
details.changeLog!.replaceFirst('/blob/', '/raw/'),
|
||||
additionalSettings))
|
||||
.body;
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
// Fail silently
|
||||
@ -149,12 +157,30 @@ class FDroid extends AppSource {
|
||||
|
||||
APKDetails getAPKUrlsFromFDroidPackagesAPIResponse(
|
||||
Response res, String apkUrlPrefix, String standardUrl, String sourceName,
|
||||
{bool autoSelectHighestVersionCode = false,
|
||||
bool trySelectingSuggestedVersionCode = false,
|
||||
String? filterVersionsByRegEx}) {
|
||||
{Map<String, dynamic> additionalSettings = const {}}) {
|
||||
var autoSelectHighestVersionCode =
|
||||
additionalSettings['autoSelectHighestVersionCode'] == true;
|
||||
var trySelectingSuggestedVersionCode =
|
||||
additionalSettings['trySelectingSuggestedVersionCode'] == true;
|
||||
var filterVersionsByRegEx =
|
||||
(additionalSettings['filterVersionsByRegEx'] as String?)?.isNotEmpty ==
|
||||
true
|
||||
? additionalSettings['filterVersionsByRegEx']
|
||||
: null;
|
||||
var apkFilterRegEx =
|
||||
(additionalSettings['apkFilterRegEx'] as String?)?.isNotEmpty == true
|
||||
? additionalSettings['apkFilterRegEx']
|
||||
: null;
|
||||
if (res.statusCode == 200) {
|
||||
var response = jsonDecode(res.body);
|
||||
List<dynamic> releases = response['packages'] ?? [];
|
||||
if (apkFilterRegEx != null) {
|
||||
releases = releases.where((rel) {
|
||||
String apk = '${apkUrlPrefix}_${rel['versionCode']}.apk';
|
||||
return filterApks([MapEntry(apk, apk)], apkFilterRegEx, false)
|
||||
.isNotEmpty;
|
||||
}).toList();
|
||||
}
|
||||
if (releases.isEmpty) {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
import 'package:easy_localization/easy_localization.dart';
|
||||
import 'package:html/parser.dart';
|
||||
import 'package:http/http.dart';
|
||||
import 'package:obtainium/components/generated_form.dart';
|
||||
import 'package:obtainium/custom_errors.dart';
|
||||
import 'package:obtainium/providers/source_provider.dart';
|
||||
@ -45,7 +46,7 @@ class FDroidRepo extends AppSource {
|
||||
String sourceSpecificStandardizeURL(String url) {
|
||||
var standardUri = Uri.parse(url);
|
||||
var pathSegments = standardUri.pathSegments;
|
||||
if (pathSegments.last == 'index.xml') {
|
||||
if (pathSegments.isNotEmpty && pathSegments.last == 'index.xml') {
|
||||
pathSegments.removeLast();
|
||||
standardUri = standardUri.replace(path: pathSegments.join('/'));
|
||||
}
|
||||
@ -60,7 +61,7 @@ class FDroidRepo extends AppSource {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
url = removeQueryParamsFromUrl(standardizeUrl(url));
|
||||
var res = await sourceRequest('$url/index.xml', {});
|
||||
var res = await sourceRequestWithURLVariants(url, {});
|
||||
if (res.statusCode == 200) {
|
||||
var body = parse(res.body);
|
||||
Map<String, List<String>> results = {};
|
||||
@ -72,7 +73,11 @@ class FDroidRepo extends AppSource {
|
||||
appId.contains(query) ||
|
||||
appName.contains(query) ||
|
||||
appDesc.contains(query)) {
|
||||
results['$url?appId=$appId'] = [appName, appDesc];
|
||||
results[
|
||||
'${res.request!.url.toString().split('/').reversed.toList().sublist(1).reversed.join('/')}?appId=$appId'] = [
|
||||
appName,
|
||||
appDesc
|
||||
];
|
||||
}
|
||||
});
|
||||
return results;
|
||||
@ -102,6 +107,26 @@ class FDroidRepo extends AppSource {
|
||||
return app;
|
||||
}
|
||||
|
||||
Future<Response> sourceRequestWithURLVariants(
|
||||
String url,
|
||||
Map<String, dynamic> additionalSettings,
|
||||
) async {
|
||||
var res = await sourceRequest(
|
||||
'$url${url.endsWith('/index.xml') ? '' : '/index.xml'}',
|
||||
additionalSettings);
|
||||
if (res.statusCode != 200) {
|
||||
var base = url.endsWith('/index.xml')
|
||||
? url.split('/').reversed.toList().sublist(1).reversed.join('/')
|
||||
: url;
|
||||
res = await sourceRequest('$base/repo/index.xml', additionalSettings);
|
||||
if (res.statusCode != 200) {
|
||||
res = await sourceRequest(
|
||||
'$base/fdroid/repo/index.xml', additionalSettings);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<APKDetails> getLatestAPKDetails(
|
||||
String standardUrl,
|
||||
@ -117,9 +142,8 @@ class FDroidRepo extends AppSource {
|
||||
if (appIdOrName == null) {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
var res = await sourceRequest(
|
||||
'$standardUrl${standardUrl.endsWith('/index.xml') ? '' : '/index.xml'}',
|
||||
additionalSettings);
|
||||
var res =
|
||||
await sourceRequestWithURLVariants(standardUrl, additionalSettings);
|
||||
if (res.statusCode == 200) {
|
||||
var body = parse(res.body);
|
||||
var foundApps = body.querySelectorAll('application').where((element) {
|
||||
@ -168,7 +192,8 @@ class FDroidRepo extends AppSource {
|
||||
latestVersionReleases = [latestVersionReleases[0]];
|
||||
}
|
||||
List<String> apkUrls = latestVersionReleases
|
||||
.map((e) => '$standardUrl/${e.querySelector('apkname')!.innerHtml}')
|
||||
.map((e) =>
|
||||
'${res.request!.url.toString().split('/').reversed.toList().sublist(1).reversed.join('/')}/${e.querySelector('apkname')!.innerHtml}')
|
||||
.toList();
|
||||
return APKDetails(latestVersion, getApkUrlsFromUrls(apkUrls),
|
||||
AppNames(authorName, appName),
|
||||
|
@ -319,7 +319,7 @@ class HTML extends AppSource {
|
||||
version ??=
|
||||
additionalSettings['defaultPseudoVersioningMethod'] == 'APKLinkHash'
|
||||
? rel.hashCode.toString()
|
||||
: (await checkPartialDownloadHashDynamc(rel)).toString();
|
||||
: (await checkPartialDownloadHashDynamic(rel)).toString();
|
||||
return APKDetails(version, [rel].map((e) => MapEntry(e, e)).toList(),
|
||||
AppNames(uri.host, tr('app')));
|
||||
}
|
||||
|
@ -50,10 +50,6 @@ class IzzyOnDroid extends AppSource {
|
||||
'https://android.izzysoft.de/frepo/$appId',
|
||||
standardUrl,
|
||||
name,
|
||||
autoSelectHighestVersionCode:
|
||||
additionalSettings['autoSelectHighestVersionCode'] == true,
|
||||
trySelectingSuggestedVersionCode:
|
||||
additionalSettings['trySelectingSuggestedVersionCode'] == true,
|
||||
filterVersionsByRegEx: additionalSettings['filterVersionsByRegEx']);
|
||||
additionalSettings: additionalSettings);
|
||||
}
|
||||
}
|
||||
|
@ -10,16 +10,23 @@ class SourceForge extends AppSource {
|
||||
|
||||
@override
|
||||
String sourceSpecificStandardizeURL(String url) {
|
||||
RegExp standardUrlRegExB = RegExp(
|
||||
'^https?://(www\\.)?${getSourceRegex(hosts)}/p/[^/]+',
|
||||
caseSensitive: false);
|
||||
RegExpMatch? match = standardUrlRegExB.firstMatch(url);
|
||||
var sourceRegex = getSourceRegex(hosts);
|
||||
RegExp standardUrlRegExC =
|
||||
RegExp('^https?://(www\\.)?$sourceRegex/p/.+', caseSensitive: false);
|
||||
RegExpMatch? match = standardUrlRegExC.firstMatch(url);
|
||||
if (match != null) {
|
||||
url =
|
||||
'https://${Uri.parse(match.group(0)!).host}/projects/${url.substring(Uri.parse(match.group(0)!).host.length + '/projects/'.length + 1)}';
|
||||
}
|
||||
RegExp standardUrlRegExB = RegExp(
|
||||
'^https?://(www\\.)?$sourceRegex/projects/[^/]+',
|
||||
caseSensitive: false);
|
||||
match = standardUrlRegExB.firstMatch(url);
|
||||
if (match != null && match.group(0) == url) {
|
||||
url = '$url/files';
|
||||
}
|
||||
RegExp standardUrlRegExA = RegExp(
|
||||
'^https?://(www\\.)?${getSourceRegex(hosts)}/projects/[^/]+',
|
||||
'^https?://(www\\.)?$sourceRegex/projects/[^/]+/files(/.+)?',
|
||||
caseSensitive: false);
|
||||
match = standardUrlRegExA.firstMatch(url);
|
||||
if (match == null) {
|
||||
@ -33,38 +40,79 @@ class SourceForge extends AppSource {
|
||||
String standardUrl,
|
||||
Map<String, dynamic> additionalSettings,
|
||||
) async {
|
||||
Response res =
|
||||
await sourceRequest('$standardUrl/rss?path=/', additionalSettings);
|
||||
var standardUri = Uri.parse(standardUrl);
|
||||
if (standardUri.pathSegments.length == 2) {
|
||||
standardUrl = '$standardUrl/files';
|
||||
standardUri = Uri.parse(standardUrl);
|
||||
}
|
||||
Response res = await sourceRequest(
|
||||
'${standardUri.origin}/${standardUri.pathSegments.sublist(0, 2).join('/')}/rss?path=/',
|
||||
additionalSettings);
|
||||
if (res.statusCode == 200) {
|
||||
var parsedHtml = parse(res.body);
|
||||
var allDownloadLinks =
|
||||
parsedHtml.querySelectorAll('guid').map((e) => e.innerHtml).toList();
|
||||
var allDownloadLinks = parsedHtml
|
||||
.querySelectorAll('guid')
|
||||
.map((e) => e.innerHtml)
|
||||
.where((element) => element.startsWith(standardUrl))
|
||||
.toList();
|
||||
getVersion(String url) {
|
||||
try {
|
||||
var tokens = url.split('/');
|
||||
var fi = tokens.indexOf('files');
|
||||
return tokens[tokens[fi + 2] == 'download' ? fi - 1 : fi + 1];
|
||||
var segments = url
|
||||
.substring(standardUrl.length)
|
||||
.split('/')
|
||||
.where((element) => element.isNotEmpty)
|
||||
.toList()
|
||||
.reversed
|
||||
.toList()
|
||||
.sublist(1)
|
||||
.reversed
|
||||
.toList();
|
||||
segments = segments.length > 1
|
||||
? segments.reversed.toList().sublist(1).reversed.toList()
|
||||
: segments;
|
||||
var version = segments.isNotEmpty ? segments.join('/') : null;
|
||||
if (version != null) {
|
||||
try {
|
||||
var extractedVersion = extractVersion(
|
||||
additionalSettings['versionExtractionRegEx'] as String?,
|
||||
additionalSettings['matchGroupToUse'] as String?,
|
||||
version);
|
||||
if (extractedVersion != null) {
|
||||
version = extractedVersion;
|
||||
}
|
||||
} catch (e) {
|
||||
if (e is NoVersionError) {
|
||||
version = null;
|
||||
} else {
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
}
|
||||
return version;
|
||||
} catch (e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
String? version = getVersion(allDownloadLinks[0]);
|
||||
var apkUrlListAllReleases = allDownloadLinks
|
||||
.where((element) => element.toLowerCase().endsWith('.apk/download'))
|
||||
.where((element) => getVersion(element) != null)
|
||||
.toList();
|
||||
if (apkUrlListAllReleases.isEmpty) {
|
||||
throw NoReleasesError();
|
||||
}
|
||||
String? version = getVersion(apkUrlListAllReleases[0]);
|
||||
if (version == null) {
|
||||
throw NoVersionError();
|
||||
}
|
||||
var apkUrlListAllReleases = allDownloadLinks
|
||||
.where((element) => element.toLowerCase().endsWith('.apk/download'))
|
||||
.toList();
|
||||
|
||||
var apkUrlList =
|
||||
apkUrlListAllReleases // This can be used skipped for fallback support later
|
||||
.where((element) => getVersion(element) == version)
|
||||
.toList();
|
||||
return APKDetails(
|
||||
version,
|
||||
getApkUrlsFromUrls(apkUrlList),
|
||||
AppNames(
|
||||
name, standardUrl.substring(standardUrl.lastIndexOf('/') + 1)));
|
||||
var segments = standardUrl.split('/');
|
||||
return APKDetails(version, getApkUrlsFromUrls(apkUrlList),
|
||||
AppNames(name, segments[segments.indexOf('files') - 1]));
|
||||
} else {
|
||||
throw getObtainiumHttpError(res);
|
||||
}
|
||||
|
@ -39,6 +39,15 @@ class SourceHut extends AppSource {
|
||||
String standardUrl,
|
||||
Map<String, dynamic> additionalSettings,
|
||||
) async {
|
||||
if (standardUrl.endsWith('/refs')) {
|
||||
standardUrl = standardUrl
|
||||
.split('/')
|
||||
.reversed
|
||||
.toList()
|
||||
.sublist(1)
|
||||
.reversed
|
||||
.join('/');
|
||||
}
|
||||
Uri standardUri = Uri.parse(standardUrl);
|
||||
String appName = standardUri.pathSegments.last;
|
||||
bool fallbackToOlderReleases =
|
||||
|
@ -163,7 +163,7 @@ class AddAppPageState extends State<AddAppPage> {
|
||||
app = await sourceProvider.getApp(
|
||||
pickedSource!, userInput.trim(), additionalSettings,
|
||||
trackOnlyOverride: trackOnly,
|
||||
overrideSource: pickedSourceOverride,
|
||||
sourceIsOverriden: pickedSourceOverride != null,
|
||||
inferAppIdIfOptional: inferAppIdIfOptional);
|
||||
// Only download the APK here if you need to for the package ID
|
||||
if (isTempId(app) && app.additionalSettings['trackOnly'] != true) {
|
||||
@ -530,7 +530,20 @@ class AddAppPageState extends State<AddAppPage> {
|
||||
? TextDecoration.underline
|
||||
: TextDecoration.none),
|
||||
))),
|
||||
)
|
||||
),
|
||||
const SizedBox(
|
||||
height: 16,
|
||||
),
|
||||
Text(
|
||||
'${tr('note')}:',
|
||||
style:
|
||||
const TextStyle(fontWeight: FontWeight.bold),
|
||||
),
|
||||
const SizedBox(
|
||||
height: 4,
|
||||
),
|
||||
Text(tr('selfHostedNote',
|
||||
args: [tr('overrideSource')])),
|
||||
],
|
||||
);
|
||||
},
|
||||
|
@ -205,6 +205,12 @@ 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),
|
||||
const SizedBox(
|
||||
height: 24,
|
||||
),
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
if (app?.app.url != null) {
|
||||
@ -219,15 +225,12 @@ class _AppPageState extends State<AppPage> {
|
||||
));
|
||||
},
|
||||
child: Text(
|
||||
tr('byX', args: [app?.app.author ?? tr('unknown')]),
|
||||
app?.app.url ?? '',
|
||||
textAlign: TextAlign.center,
|
||||
style: Theme.of(context).textTheme.headlineMedium!.copyWith(
|
||||
style: Theme.of(context).textTheme.labelSmall!.copyWith(
|
||||
decoration: TextDecoration.underline,
|
||||
fontStyle: FontStyle.italic),
|
||||
)),
|
||||
const SizedBox(
|
||||
height: 8,
|
||||
),
|
||||
Text(
|
||||
app?.app.id ?? '',
|
||||
textAlign: TextAlign.center,
|
||||
|
@ -358,6 +358,16 @@ class AppsPageState extends State<AppsPage> {
|
||||
String? changesUrl =
|
||||
appSource.changeLogPageFromStandardUrl(listedApps[appIndex].app.url);
|
||||
String? changeLog = listedApps[appIndex].app.changeLog;
|
||||
if (changeLog?.split('\n').length == 1) {
|
||||
if (RegExp(
|
||||
'(http|ftp|https)://([\\w_-]+(?:(?:\\.[\\w_-]+)+))([\\w.,@?^=%&:/~+#-]*[\\w@?^=%&/~+#-])?')
|
||||
.hasMatch(changeLog!)) {
|
||||
if (changesUrl == null) {
|
||||
changesUrl = changeLog;
|
||||
changeLog = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
return (changeLog == null && changesUrl == null)
|
||||
? null
|
||||
: () {
|
||||
@ -1028,7 +1038,7 @@ class AppsPageState extends State<AppsPage> {
|
||||
IconButton(
|
||||
color: Theme.of(context).colorScheme.primary,
|
||||
style: const ButtonStyle(visualDensity: VisualDensity.compact),
|
||||
tooltip: isFilterOff ? tr('filter') : tr('filterActive'),
|
||||
tooltip: '${tr('filter')}${isFilterOff ? '' : ' *'}',
|
||||
onPressed: isFilterOff
|
||||
? showFilterDialog
|
||||
: () {
|
||||
|
@ -213,7 +213,7 @@ class _ImportExportPageState extends State<ImportExportPage> {
|
||||
setState(() {
|
||||
importInProgress = true;
|
||||
});
|
||||
if (values['url'] != source.hosts[0]) {
|
||||
if (source.hosts.isEmpty || values['url'] != source.hosts[0]) {
|
||||
source = sourceProvider.getSource(values['url'],
|
||||
overrideSource: source.runtimeType.toString());
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ String hashListOfLists(List<List<int>> data) {
|
||||
return hash.hashCode.toString();
|
||||
}
|
||||
|
||||
Future<String> checkPartialDownloadHashDynamc(String url,
|
||||
Future<String> checkPartialDownloadHashDynamic(String url,
|
||||
{int startingSize = 1024,
|
||||
int lowerLimit = 128,
|
||||
Map<String, String>? headers}) async {
|
||||
@ -532,9 +532,18 @@ class AppsProvider with ChangeNotifier {
|
||||
{bool needsBGWorkaround = false}) async {
|
||||
var newInfo =
|
||||
await pm.getPackageArchiveInfo(archiveFilePath: file.file.path);
|
||||
if (newInfo == null) {
|
||||
try {
|
||||
file.file.deleteSync(recursive: true);
|
||||
} catch (e) {
|
||||
//
|
||||
} finally {
|
||||
throw ObtainiumError(tr('badDownload'));
|
||||
}
|
||||
}
|
||||
PackageInfo? appInfo = await getInstalledInfo(apps[file.appId]!.app.id);
|
||||
if (appInfo != null &&
|
||||
newInfo!.versionCode! < appInfo.versionCode! &&
|
||||
newInfo.versionCode! < appInfo.versionCode! &&
|
||||
!(await canDowngradeApps())) {
|
||||
throw DowngradeError();
|
||||
}
|
||||
|
@ -819,7 +819,7 @@ class SourceProvider {
|
||||
AppSource source, String url, Map<String, dynamic> additionalSettings,
|
||||
{App? currentApp,
|
||||
bool trackOnlyOverride = false,
|
||||
String? overrideSource,
|
||||
bool sourceIsOverriden = false,
|
||||
bool inferAppIdIfOptional = false}) async {
|
||||
if (trackOnlyOverride || source.enforceTrackOnly) {
|
||||
additionalSettings['trackOnly'] = true;
|
||||
@ -829,8 +829,9 @@ class SourceProvider {
|
||||
APKDetails apk =
|
||||
await source.getLatestAPKDetails(standardUrl, additionalSettings);
|
||||
|
||||
if (source.runtimeType != HTML().runtimeType) {
|
||||
// HTML does it separately
|
||||
if (source.runtimeType !=
|
||||
HTML().runtimeType && // Some sources do it separately
|
||||
source.runtimeType != SourceForge().runtimeType) {
|
||||
String? extractedVersion = extractVersion(
|
||||
additionalSettings['versionExtractionRegEx'] as String?,
|
||||
additionalSettings['matchGroupToUse'] as String?,
|
||||
@ -886,7 +887,9 @@ class SourceProvider {
|
||||
categories: currentApp?.categories ?? const [],
|
||||
releaseDate: apk.releaseDate,
|
||||
changeLog: apk.changeLog,
|
||||
overrideSource: overrideSource ?? currentApp?.overrideSource,
|
||||
overrideSource: sourceIsOverriden
|
||||
? source.runtimeType.toString()
|
||||
: currentApp?.overrideSource,
|
||||
allowIdChange: currentApp?.allowIdChange ??
|
||||
trackOnly ||
|
||||
(source.appIdInferIsOptional &&
|
||||
@ -910,6 +913,7 @@ class SourceProvider {
|
||||
apps.add(await getApp(
|
||||
source,
|
||||
url,
|
||||
sourceIsOverriden: sourceOverride != null,
|
||||
getDefaultValuesFromFormItems(
|
||||
source.combinedAppSpecificSettingFormItems)));
|
||||
} catch (e) {
|
||||
|
146
pubspec.lock
146
pubspec.lock
@ -22,10 +22,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: android_package_manager
|
||||
sha256: e52ca607b9f19f95d5dae4211ed8fa93e67093f22ac570db47489c5bca512940
|
||||
sha256: "2de859fae7226a7de1c1ff9a2308f1967599408800330501a1ce97927c051153"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.7.0"
|
||||
version: "0.7.1"
|
||||
animations:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@ -150,10 +150,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: cross_file
|
||||
sha256: fedaadfa3a6996f75211d835aaeb8fede285dae94262485698afd832371b9a5e
|
||||
sha256: "2f9d2cbccb76127ba28528cb3ae2c2326a122446a83de5a056aaa3880d3882c5"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.3.3+8"
|
||||
version: "0.3.3+7"
|
||||
crypto:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@ -190,10 +190,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: device_info_plus
|
||||
sha256: "0042cb3b2a76413ea5f8a2b40cec2a33e01d0c937e91f0f7c211fde4f7739ba6"
|
||||
sha256: "77f757b789ff68e4eaf9c56d1752309bd9f7ad557cb105b938a7f8eb89e59110"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "9.1.1"
|
||||
version: "9.1.2"
|
||||
device_info_plus_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -214,10 +214,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: easy_localization
|
||||
sha256: de63e3b422adfc97f256cbb3f8cf12739b6a4993d390f3cadb3f51837afaefe5
|
||||
sha256: "9c86754b22aaa3e74e471635b25b33729f958dd6fb83df0ad6612948a7b231af"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.0.3"
|
||||
version: "3.0.4"
|
||||
easy_logger:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -238,10 +238,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: ffi
|
||||
sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878"
|
||||
sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.0"
|
||||
version: "2.1.2"
|
||||
file:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -336,10 +336,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: flutter_markdown
|
||||
sha256: "30088ce826b5b9cfbf9e8bece34c716c8a59fa54461dcae1e4ac01a94639e762"
|
||||
sha256: "21b085a1c185e46701373866144ced56cfb7a0c33f63c916bb8fe2d0c1491278"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.6.18+3"
|
||||
version: "0.6.19"
|
||||
flutter_plugin_android_lifecycle:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -394,10 +394,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: http
|
||||
sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba
|
||||
sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.2.0"
|
||||
version: "1.2.1"
|
||||
http_parser:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -410,10 +410,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: image
|
||||
sha256: "004a2e90ce080f8627b5a04aecb4cdfac87d2c3f3b520aa291260be5a32c033d"
|
||||
sha256: "4c68bfd5ae83e700b5204c1e74451e7bf3cf750e6843c6e158289cf56bda018e"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.1.4"
|
||||
version: "4.1.7"
|
||||
intl:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -438,6 +438,30 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.8.1"
|
||||
leak_tracker:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: leak_tracker
|
||||
sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "10.0.0"
|
||||
leak_tracker_flutter_testing:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: leak_tracker_flutter_testing
|
||||
sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.1"
|
||||
leak_tracker_testing:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: leak_tracker_testing
|
||||
sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.0.1"
|
||||
lints:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -458,26 +482,26 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: matcher
|
||||
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
|
||||
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.12.16"
|
||||
version: "0.12.16+1"
|
||||
material_color_utilities:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: material_color_utilities
|
||||
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
|
||||
sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.5.0"
|
||||
version: "0.8.0"
|
||||
meta:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: meta
|
||||
sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e
|
||||
sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.10.0"
|
||||
version: "1.11.0"
|
||||
mime:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -506,10 +530,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: path
|
||||
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
|
||||
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "1.8.3"
|
||||
version: "1.9.0"
|
||||
path_provider:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
@ -562,26 +586,26 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: permission_handler
|
||||
sha256: "45ff3fbcb99040fde55c528d5e3e6ca29171298a85436274d49c6201002087d6"
|
||||
sha256: "74e962b7fad7ff75959161bb2c0ad8fe7f2568ee82621c9c2660b751146bfe44"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "11.2.0"
|
||||
version: "11.3.0"
|
||||
permission_handler_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: permission_handler_android
|
||||
sha256: "758284a0976772f9c744d6384fc5dc4834aa61e3f7aa40492927f244767374eb"
|
||||
sha256: "1acac6bae58144b442f11e66621c062aead9c99841093c38f5bcdcc24c1c3474"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "12.0.3"
|
||||
version: "12.0.5"
|
||||
permission_handler_apple:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: permission_handler_apple
|
||||
sha256: c6bf440f80acd2a873d3d91a699e4cc770f86e7e6b576dda98759e8b92b39830
|
||||
sha256: bdafc6db74253abb63907f4e357302e6bb786ab41465e8635f362ee71fd8707b
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "9.3.0"
|
||||
version: "9.4.0"
|
||||
permission_handler_html:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -594,10 +618,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: permission_handler_platform_interface
|
||||
sha256: "5c43148f2bfb6d14c5a8162c0a712afe891f2d847f35fcff29c406b37da43c3c"
|
||||
sha256: "23dfba8447c076ab5be3dee9ceb66aad345c4a648f0cac292c77b1eb0e800b78"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.1.0"
|
||||
version: "4.2.0"
|
||||
permission_handler_windows:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -650,10 +674,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: share_plus
|
||||
sha256: f74fc3f1cbd99f39760182e176802f693fa0ec9625c045561cfad54681ea93dd
|
||||
sha256: "3ef39599b00059db0990ca2e30fca0a29d8b37aae924d60063f8e0184cf20900"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "7.2.1"
|
||||
version: "7.2.2"
|
||||
share_plus_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -706,10 +730,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: shared_preferences_web
|
||||
sha256: "7b15ffb9387ea3e237bb7a66b8a23d2147663d391cafc5c8f37b2e7b4bde5d21"
|
||||
sha256: d762709c2bbe80626ecc819143013cc820fa49ca5e363620ee20a8b15a3e3daf
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.2.2"
|
||||
version: "2.2.1"
|
||||
shared_preferences_windows:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -722,10 +746,10 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: shared_storage
|
||||
sha256: "7c65a9d64f0f5521256be974cfd74010af12196657cec9f9fb7b03b2f11bcaf6"
|
||||
sha256: cf20428d06af065311b71e09cbfbbfe431e979a3bf9180001c1952129b7c708f
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.8.0"
|
||||
version: "0.8.1"
|
||||
sky_engine:
|
||||
dependency: transitive
|
||||
description: flutter
|
||||
@ -751,18 +775,18 @@ packages:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: sqflite
|
||||
sha256: c2c32eb0c74021d987336522acc3b6bf0082fbd0c540c36a9cf4ddb8ba891ddc
|
||||
sha256: a9016f495c927cb90557c909ff26a6d92d9bd54fc42ba92e19d4e79d61e798c6
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.3.1"
|
||||
version: "2.3.2"
|
||||
sqflite_common:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: sqflite_common
|
||||
sha256: bb4738f15b23352822f4c42a531677e5c6f522e079461fd240ead29d8d8a54a6
|
||||
sha256: "28d8c66baee4968519fb8bd6cdbedad982d6e53359091f0b74544a9f32ec72d5"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.5.0+2"
|
||||
version: "2.5.3"
|
||||
stack_trace:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -839,10 +863,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_android
|
||||
sha256: "507dc655b1d9cb5ebc756032eb785f114e415f91557b73bf60b7e201dfedeb2f"
|
||||
sha256: d4ed0711849dd8e33eb2dd69c25db0d0d3fdc37e0a62e629fe32f57a22db2745
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "6.2.2"
|
||||
version: "6.3.0"
|
||||
url_launcher_ios:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -871,18 +895,18 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_platform_interface
|
||||
sha256: a932c3a8082e118f80a475ce692fde89dc20fddb24c57360b96bc56f7035de1f
|
||||
sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.3.1"
|
||||
version: "2.3.2"
|
||||
url_launcher_web:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: url_launcher_web
|
||||
sha256: fff0932192afeedf63cdd50ecbb1bc825d31aed259f02bb8dba0f3b729a5e88b
|
||||
sha256: "7fd2f55fe86cea2897b963e864dc01a7eb0719ecc65fcef4c1cc3d686d718bb2"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.2.3"
|
||||
version: "2.2.0"
|
||||
url_launcher_windows:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -907,30 +931,38 @@ packages:
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "2.1.4"
|
||||
vm_service:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: vm_service
|
||||
sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "13.0.0"
|
||||
web:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: web
|
||||
sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152
|
||||
sha256: "1d9158c616048c38f712a6646e317a3426da10e884447626167240d45209cbad"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "0.3.0"
|
||||
version: "0.5.0"
|
||||
webview_flutter:
|
||||
dependency: "direct main"
|
||||
description:
|
||||
name: webview_flutter
|
||||
sha256: "71e1bfaef41016c8d5954291df5e9f8c6172f1f6ff3af01b5656456ddb11f94c"
|
||||
sha256: "25e1b6e839e8cbfbd708abc6f85ed09d1727e24e08e08c6b8590d7c65c9a8932"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "4.4.4"
|
||||
version: "4.7.0"
|
||||
webview_flutter_android:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: webview_flutter_android
|
||||
sha256: "4ea3c4e1b8ed590162b15b8a61b41b1ef3ff179a314627c16ce40c086d94b8af"
|
||||
sha256: "3e5f4e9d818086b0d01a66fb1ff9cc72ab0cc58c71980e3d3661c5685ea0efb0"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.14.0"
|
||||
version: "3.15.0"
|
||||
webview_flutter_platform_interface:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -943,10 +975,10 @@ packages:
|
||||
dependency: transitive
|
||||
description:
|
||||
name: webview_flutter_wkwebview
|
||||
sha256: b99ca8d8bae9c6b43d568218691aa537fb0aeae1d7d34eadf112a6aa36d26506
|
||||
sha256: "9bf168bccdf179ce90450b5f37e36fe263f591c9338828d6bf09b6f8d0f57f86"
|
||||
url: "https://pub.dev"
|
||||
source: hosted
|
||||
version: "3.11.0"
|
||||
version: "3.12.0"
|
||||
win32:
|
||||
dependency: transitive
|
||||
description:
|
||||
@ -988,5 +1020,5 @@ packages:
|
||||
source: hosted
|
||||
version: "3.1.2"
|
||||
sdks:
|
||||
dart: ">=3.2.3 <4.0.0"
|
||||
dart: ">=3.3.0 <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: 1.0.0+250 # When changing this, update the tag in main() accordingly
|
||||
version: 1.0.3+2253 # When changing this, update the tag in main() accordingly
|
||||
|
||||
environment:
|
||||
sdk: '>=3.0.0 <4.0.0'
|
||||
|
Reference in New Issue
Block a user