mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-27 11:43:47 +01:00 
			
		
		
		
	Compare commits
	
		
			25 Commits
		
	
	
		
			v0.14.36-b
			...
			v0.14.38-b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | cbaaec961c | ||
|  | 5477b3f936 | ||
|  | fd59a93ede | ||
|  | cd316b7138 | ||
|  | d1955192ed | ||
|  | 9beb839bf4 | ||
|  | 29ea303093 | ||
|  | feff6751ca | ||
|  | ca33fdf752 | ||
|  | fdcdfe89d6 | ||
|  | 48ed2115a7 | ||
|  | 65988f4e08 | ||
|  | ede65eda6c | ||
|  | 5da56acac8 | ||
|  | 5720c55301 | ||
|  | ffefa4b30e | ||
|  | 80e4986b23 | ||
|  | dc92ccda0a | ||
|  | f9bab18076 | ||
|  | 2dec52e221 | ||
|  | 7413f693d7 | ||
|  | 415460df75 | ||
|  | 125a194468 | ||
|  | 32e9afbf36 | ||
|  | 43616c566d | 
| @@ -28,8 +28,15 @@ | ||||
|             <intent-filter> | ||||
|                 <action | ||||
|                     android:name="com.android_package_installer.content.SESSION_API_PACKAGE_INSTALLED" | ||||
|                     android:exported="false"/> | ||||
|                     android:exported="false" /> | ||||
|             </intent-filter> | ||||
|             <intent-filter> | ||||
|                 <action android:name="android.intent.action.VIEW" /> | ||||
|                 <category android:name="android.intent.category.DEFAULT" /> | ||||
|                 <category android:name="android.intent.category.BROWSABLE" /> | ||||
|                 <data android:scheme="obtainium" /> | ||||
|             </intent-filter> | ||||
|  | ||||
|         </activity> | ||||
|         <!-- Don't delete the meta-data below. | ||||
|              This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> | ||||
| @@ -39,10 +46,10 @@ | ||||
|         <service | ||||
|             android:name="dev.fluttercommunity.plus.androidalarmmanager.AlarmService" | ||||
|             android:permission="android.permission.BIND_JOB_SERVICE" | ||||
|             android:exported="false"/> | ||||
|             android:exported="false" /> | ||||
|         <receiver | ||||
|             android:name="dev.fluttercommunity.plus.androidalarmmanager.AlarmBroadcastReceiver" | ||||
|             android:exported="false"/> | ||||
|             android:exported="false" /> | ||||
|         <receiver | ||||
|             android:name="dev.fluttercommunity.plus.androidalarmmanager.RebootBroadcastReceiver" | ||||
|             android:enabled="false" | ||||
| @@ -52,24 +59,24 @@ | ||||
|             </intent-filter> | ||||
|         </receiver> | ||||
|         <provider | ||||
|         android:name="androidx.core.content.FileProvider" | ||||
|         android:authorities="dev.imranr.obtainium" | ||||
|         android:grantUriPermissions="true"> | ||||
|         <meta-data | ||||
|             android:name="android.support.FILE_PROVIDER_PATHS" | ||||
|             android:resource="@xml/file_paths"/> | ||||
|             android:name="androidx.core.content.FileProvider" | ||||
|             android:authorities="dev.imranr.obtainium" | ||||
|             android:grantUriPermissions="true"> | ||||
|             <meta-data | ||||
|                 android:name="android.support.FILE_PROVIDER_PATHS" | ||||
|                 android:resource="@xml/file_paths" /> | ||||
|         </provider> | ||||
|     </application> | ||||
|     <uses-permission android:name="android.permission.INTERNET" /> | ||||
|     <uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" /> | ||||
|     <uses-permission android:name="android.permission.UPDATE_PACKAGES_WITHOUT_USER_ACTION" /> | ||||
|     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | ||||
|     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> | ||||
|     <uses-permission android:name="android.permission.WAKE_LOCK"/> | ||||
|     <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM"/> | ||||
|     <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||||
|     <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ||||
|     <uses-permission android:name="android.permission.WAKE_LOCK" /> | ||||
|     <uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> | ||||
|     <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> | ||||
| @@ -88,7 +88,7 @@ | ||||
|     "importExport": "Uvoz/izvoz", | ||||
|     "settings": "Postavke", | ||||
|     "exportedTo": "Izvezeno u {}", | ||||
|     "obtainiumExport": "Obtainium Export", | ||||
|     "obtainiumExport": "Obtainium izvoz", | ||||
|     "invalidInput": "Neispravan unos.", | ||||
|     "importedX": "Uvezeno {}", | ||||
|     "obtainiumImport": "Obtainium uvoz", | ||||
| @@ -134,7 +134,7 @@ | ||||
|     "close": "Zatvori", | ||||
|     "share": "Podijeli", | ||||
|     "appNotFound": "Aplikacija nije pronađena", | ||||
|     "obtainiumExportHyphenatedLowercase": "obtainium-export", | ||||
|     "obtainiumExportHyphenatedLowercase": "obtainium-izvoz", | ||||
|     "pickAnAPK": "Odaberite APK", | ||||
|     "appHasMoreThanOnePackage": "{} ima više od jednog paketa:", | ||||
|     "deviceSupportsXArch": "Vaš uređaj podržava {} arhitekturu procesora.", | ||||
| @@ -231,52 +231,53 @@ | ||||
|     "checkUpdateOnDetailPage": "Provjerite ima li novosti pri otvaranju stranice s detaljima aplikacije", | ||||
|     "disablePageTransitions": "Ugasite animaciju prijelaza stranice", | ||||
|     "reversePageTransitions": "Reverzne animacije prijelaza stranice", | ||||
|     "minStarCount": "Minimum Star Count", | ||||
|     "addInfoBelow": "Add this info below.", | ||||
|     "addInfoInSettings": "Add this info in the Settings.", | ||||
|     "githubSourceNote": "GitHub rate limiting can be avoided using an API key.", | ||||
|     "gitlabSourceNote": "GitLab APK extraction may not work without an API key.", | ||||
|     "sortByFileNamesNotLinks": "Sort by file names instead of full links", | ||||
|     "filterReleaseNotesByRegEx": "Filter Release Notes by Regular Expression", | ||||
|     "customLinkFilterRegex": "Custom APK Link Filter by Regular Expression (Default '.apk$')", | ||||
|     "appsPossiblyUpdated": "App Updates Attempted", | ||||
|     "appsPossiblyUpdatedNotifDescription": "Notifies the user that updates to one or more Apps were potentially applied in the background", | ||||
|     "xWasPossiblyUpdatedToY": "{} may have been updated to {}.", | ||||
|     "enableBackgroundUpdates": "Enable background updates", | ||||
|     "backgroundUpdateReqsExplanation": "Background updates may not be possible for all apps.", | ||||
|     "backgroundUpdateLimitsExplanation": "The success of a background install can only be determined when Obtainium is opened.", | ||||
|     "verifyLatestTag": "Verify the 'latest' tag", | ||||
|     "intermediateLinkRegex": "Filter for an 'Intermediate' Link to Visit First", | ||||
|     "intermediateLinkNotFound": "Intermediate link not found", | ||||
|     "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", | ||||
|     "highlightTouchTargets": "Highlight less obvious touch targets", | ||||
|     "pickExportDir": "Pick Export Directory", | ||||
|     "autoExportOnChanges": "Auto-export on changes", | ||||
|     "filterVersionsByRegEx": "Filter Versions by Regular Expression", | ||||
|     "trySelectingSuggestedVersionCode": "Try selecting suggested versionCode APK", | ||||
|     "dontSortReleasesList": "Retain release order from API", | ||||
|     "reverseSort": "Reverse sorting", | ||||
|     "debugMenu": "Debug Menu", | ||||
|     "bgTaskStarted": "Background task started - check logs.", | ||||
|     "runBgCheckNow": "Run Background Update Check Now", | ||||
|     "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", | ||||
|     "installing": "Installing", | ||||
|     "skipUpdateNotifications": "Skip update notifications", | ||||
|     "minStarCount": "Najmanji broj zvjezdica", | ||||
|     "addInfoBelow": "Dodajte ove informacije ispod.", | ||||
|     "addInfoInSettings": "Dodajte ove informacije u Postavkama.", | ||||
|     "githubSourceNote": "GitHub ograničavanje se može izbjeći korišćenjem tokena za lični pristup.", | ||||
|     "gitlabSourceNote": "GitLab APK preuzimanje možda neće raditi bez tokena za lični pristup.", | ||||
|     "sortByFileNamesNotLinks": "Sortirajte po imenima datoteka umjesto po punim linkovima", | ||||
|     "filterReleaseNotesByRegEx": "Filtirajte promjene u izdanju po regularnom izrazu", | ||||
|     "customLinkFilterRegex": "Prilagođeni APK link filtrira se po regularnom izrazu (Zadano '.apk$')", | ||||
|     "appsPossiblyUpdated": "Pokušano ažuriranje aplikacija", | ||||
|     "appsPossiblyUpdatedNotifDescription": "Obavještava korisnika da je ažuriranje jedne ili više aplikacija potencijalno izvršeno u pozadini", | ||||
|     "xWasPossiblyUpdatedToY": "{} aplikacija bi trebala biti ažurirana na {}.", | ||||
|     "enableBackgroundUpdates": "Dozvolite ažuriranja u pozadini", | ||||
|     "backgroundUpdateReqsExplanation": "Ažuriranja u pozadini možda neće raditi za sve aplikacije.", | ||||
|     "backgroundUpdateLimitsExplanation": "Uspjeh ažuriranja u pozadini se može provjeriti tek kada otvorite Obtainium.", | ||||
|     "verifyLatestTag": "Provjerite 'posljednu' ('latest') oznaku", | ||||
|     "intermediateLinkRegex": "Filtrirajte da prvo posjetite 'Intemediate' link", | ||||
|     "intermediateLinkNotFound": "Intermediate link nije nađen", | ||||
|     "exemptFromBackgroundUpdates": "Izuzmi iz ažuriranja u pozadini (ako su uključeni)", | ||||
|     "bgUpdatesOnWiFiOnly": "Isključite ažuriranje u pozadini kada niste na WiFi-ju", | ||||
|     "autoSelectHighestVersionCode": "Automatski izaberite najveću (verziju) versionCode APK-a", | ||||
|     "versionExtractionRegEx": "RegEx ekstrakcija verzije", | ||||
|     "matchGroupToUse": "Podjesite grupu za upotebu", | ||||
|     "highlightTouchTargets": "Istaknite manje vidljive touch mete", | ||||
|     "pickExportDir": "Izaberite datoteku za izvoz", | ||||
|     "autoExportOnChanges": "Automatski izvezite pri promjenama", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filtrirajte verzije po regulatnom izrazu", | ||||
|     "trySelectingSuggestedVersionCode": "Probajte izabrati preloženu (verziju) versionCode APK-a", | ||||
|     "dontSortReleasesList": "Zadrži redosled izdanja iz API-a", | ||||
|     "reverseSort": "Obrni redosled", | ||||
|     "debugMenu": "Meni za otkrivanje grešaka", | ||||
|     "bgTaskStarted": "Rad u pozadini pokrenut - provjerite log-ove.", | ||||
|     "runBgCheckNow": "Pokrenite pozadinsku provjeru ažuriranja sad", | ||||
|     "versionExtractWholePage": "Primjenite Regex ekstrakciju verzije na cijelu stranicu", | ||||
|     "installing": "Instaliranje", | ||||
|     "skipUpdateNotifications": "Ne prikazujte obavještenja ažuriranja", | ||||
|     "updatesAvailableNotifChannel": "Dostupna ažuriranja", | ||||
|     "appsUpdatedNotifChannel": "Aplikacije su ažurirane", | ||||
|     "appsPossiblyUpdatedNotifChannel": "App Updates Attempted", | ||||
|     "appsPossiblyUpdatedNotifChannel": "Pokušano ažuriranje aplikacija", | ||||
|     "errorCheckingUpdatesNotifChannel": "Greška pri provjeri ažuriranja", | ||||
|     "appsRemovedNotifChannel": "Aplikacije su uklonjene", | ||||
|     "downloadingXNotifChannel": "Preuzimanje {}", | ||||
|     "completeAppInstallationNotifChannel": "Dovršite instalaciju aplikacije", | ||||
|     "checkingForUpdatesNotifChannel": "Tražim moguće nadogradnje", | ||||
|     "onlyCheckInstalledOrTrackOnlyApps": "Only check installed and Track-Only apps for updates", | ||||
|     "supportFixedAPKURL": "Support fixed APK URLs", | ||||
|     "selectX": "Select {}", | ||||
|     "onlyCheckInstalledOrTrackOnlyApps": "Isključivo provjerite ažuriranje za instalirane i aplikacije 'samo za praćenje'", | ||||
|     "supportFixedAPKURL": "Podržite fiksne APK URL-ove", | ||||
|     "selectX": "Izaberite {}", | ||||
|     "removeAppQuestion": { | ||||
|         "one": "Želite li ukloniti aplikaciju?", | ||||
|         "other": "Želite li ukloniti aplikacije?" | ||||
| @@ -326,7 +327,7 @@ | ||||
|         "other": "{} i još {} aplikacija je ažurirano." | ||||
|     }, | ||||
|     "xAndNMoreUpdatesPossiblyInstalled": { | ||||
|         "one": "{} and 1 more app may have been updated.", | ||||
|         "other": "{} and {} more apps may have been updated." | ||||
|         "one": "{} i još jedna aplikacija je vjerovatno ažurirana.", | ||||
|         "other": "{} i još {} aplikacija su vjerovatno ažurirane." | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Zvýraznit méně zjevné cíle dotyku", | ||||
|     "pickExportDir": "Vybrat adresář pro export", | ||||
|     "autoExportOnChanges": "Automatický export při změnách", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filtrovat verze podle regulárního výrazu", | ||||
|     "trySelectingSuggestedVersionCode": "Zkusit vybrat navrhovaný kód verze APK", | ||||
|     "dontSortReleasesList": "Retain release order from API", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Weniger offensichtliche Touch-Ziele hervorheben", | ||||
|     "pickExportDir": "Export-Verzeichnis wählen", | ||||
|     "autoExportOnChanges": "Automatischer Export bei Änderung(en)", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Versionen nach regulären Ausdrücken filtern", | ||||
|     "trySelectingSuggestedVersionCode": "Versuchen, den vorgeschlagenen APK-Versionscode auszuwählen", | ||||
|     "dontSortReleasesList": "Freigaberelease von der API ordern", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Highlight less obvious touch targets", | ||||
|     "pickExportDir": "Pick Export Directory", | ||||
|     "autoExportOnChanges": "Auto-export on changes", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filter Versions by Regular Expression", | ||||
|     "trySelectingSuggestedVersionCode": "Try selecting suggested versionCode APK", | ||||
|     "dontSortReleasesList": "Retain release order from API", | ||||
|   | ||||
| @@ -14,8 +14,8 @@ | ||||
|     "githubPATLabel": "Token de Acceso Personal de GitHub (Reduce tiempos de espera)", | ||||
|     "includePrereleases": "Incluir versiones preliminares", | ||||
|     "fallbackToOlderReleases": "Retorceder a versiones previas", | ||||
|     "filterReleaseTitlesByRegEx": "Filtra Títulos de Versiones mediantes Expresiones Regulares", | ||||
|     "invalidRegEx": "Expresión regular inválida", | ||||
|     "filterReleaseTitlesByRegEx": "Filtrar Títulos de Versiones", | ||||
|     "invalidRegEx": "Expresión inválida", | ||||
|     "noDescription": "Sin descripción", | ||||
|     "cancel": "Cancelar", | ||||
|     "continue": "Continuar", | ||||
| @@ -30,7 +30,7 @@ | ||||
|     "app": "Aplicación", | ||||
|     "appsFromSourceAreTrackOnly": "Las aplicaciones de este origen son de 'Solo Seguimiento'.", | ||||
|     "youPickedTrackOnly": "Debes seleccionar la opción de 'Solo Seguimiento'.", | ||||
|     "trackOnlyAppDescription": "Se monitorizará la aplicación en busca de actualizaciones, pero Obtainium no será capaz de descargarla o acutalizarla.", | ||||
|     "trackOnlyAppDescription": "Se monitorizará la aplicación en busca de actualizaciones, pero Obtainium no será capaz de descargarla o actalizarla.", | ||||
|     "cancelled": "Cancelado", | ||||
|     "appAlreadyAdded": "Aplicación ya añadida", | ||||
|     "alreadyUpToDateQuestion": "¿Aplicación ya actualizada?", | ||||
| @@ -61,7 +61,7 @@ | ||||
|     "removeSelectedApps": "Borrar Aplicaciones Seleccionadas", | ||||
|     "updateX": "Actualizar {}", | ||||
|     "installX": "Instalar {}", | ||||
|     "markXTrackOnlyAsUpdated": "Marcar {}\n(Solo Seguimient)\ncomo Actualizada", | ||||
|     "markXTrackOnlyAsUpdated": "Marcar {}\n(Solo Seguimiento)\ncomo Actualizada", | ||||
|     "changeX": "Cambiar {}", | ||||
|     "installUpdateApps": "Instalar/Actualizar Aplicaciones", | ||||
|     "installUpdateSelectedApps": "Instalar/Actualizar Aplicaciones Seleccionadas", | ||||
| @@ -72,7 +72,7 @@ | ||||
|     "pinToTop": "Fijar arriba", | ||||
|     "unpinFromTop": "Desfijar de arriba", | ||||
|     "resetInstallStatusForSelectedAppsQuestion": "¿Restuarar Estado de Instalación para las Aplicaciones Seleccionadas?", | ||||
|     "installStatusOfXWillBeResetExplanation": "El estado de instalación de las aplicaciones seleccionadas será restaurado.\n\nEsto puede ser de utilidad cuando la versión de la aplicación mostrada en Obtainium es incorrecta por actualizaciones fallidas u otros motivos.", | ||||
|     "installStatusOfXWillBeResetExplanation": "El estado de instalación de las aplicaciones seleccionadas será restaurado.\n\nEsto puede ser de útil cuando la versión de la aplicación mostrada en Obtainium es incorrecta por actualizaciones fallidas u otros motivos.", | ||||
|     "shareSelectedAppURLs": "Compartir URLs de las Aplicaciones Seleccionadas", | ||||
|     "resetInstallStatus": "Restaurar Estado de Instalación", | ||||
|     "more": "Más", | ||||
| @@ -100,7 +100,7 @@ | ||||
|     "noResults": "Resultados no encontrados", | ||||
|     "importX": "Importar {}", | ||||
|     "importedAppsIdDisclaimer": "Las Aplicaciones Importadas pueden mostrarse incorrectamente como \"No Instalada\".\nPara arreglar esto, reinstálalas a través de Obtainium.\nEsto no debería afectar a los datos de las aplicaciones.\n\nSolo afecta a las URLs y a los métodos de importación mediante terceros.", | ||||
|     "importErrors": "Import Errors", | ||||
|     "importErrors": "Errores de Importación", | ||||
|     "importedXOfYApps": "{} de {} Aplicaciones importadas.", | ||||
|     "followingURLsHadErrors": "Las siguientes URLs tuvieron problemas:", | ||||
|     "okay": "Correcto", | ||||
| @@ -135,7 +135,7 @@ | ||||
|     "share": "Compartir", | ||||
|     "appNotFound": "Aplicación no encontrada", | ||||
|     "obtainiumExportHyphenatedLowercase": "obtainium-export", | ||||
|     "pickAnAPK": "Elige una APK", | ||||
|     "pickAnAPK": "Selecciona una APK", | ||||
|     "appHasMoreThanOnePackage": "{} tiene más de un paquete:", | ||||
|     "deviceSupportsXArch": "Tu dispositivo soporta las siguientes arquitecturas de procesador: {}.", | ||||
|     "deviceSupportsFollowingArchs": "Tu dispositivo soporta las siguientes arquitecturas de procesador:", | ||||
| @@ -154,8 +154,8 @@ | ||||
|     "appsRemovedNotifDescription": "Notifica al usuario que una o más aplicaciones fueron eliminadas por problemas al cargarlas", | ||||
|     "xWasRemovedDueToErrorY": "{} ha sido eliminada por: {}", | ||||
|     "completeAppInstallation": "Instalación Completa de la Aplicación", | ||||
|     "obtainiumMustBeOpenToInstallApps": "Obtainium debe estar abierta para instalar aplicaciones", | ||||
|     "completeAppInstallationNotifDescription": "Pide al usuario volver a Obtainium para teminar de instalar una aplicación", | ||||
|     "obtainiumMustBeOpenToInstallApps": "Obtainium debe estar abierto para instalar aplicaciones", | ||||
|     "completeAppInstallationNotifDescription": "Pide al usuario volver a Obtainium para terminar de instalar una aplicación", | ||||
|     "checkingForUpdates": "Buscando Actualizaciones", | ||||
|     "checkingForUpdatesNotifDescription": "Notificación temporal que aparece al buscar actualizaciones", | ||||
|     "pleaseAllowInstallPerm": "Por favor, permite a Obtainium instalar aplicaciones", | ||||
| @@ -180,14 +180,14 @@ | ||||
|     "steamMobile": "Steam Mobile", | ||||
|     "steamChat": "Steam Chat", | ||||
|     "install": "Instalar", | ||||
|     "markInstalled": "Marcar como Instalda", | ||||
|     "markInstalled": "Marcar como Instalada", | ||||
|     "update": "Actualizar", | ||||
|     "markUpdated": "Marcar como Actualizada", | ||||
|     "additionalOptions": "Opciones Adicionales", | ||||
|     "disableVersionDetection": "Descativar Detección de Versiones", | ||||
|     "noVersionDetectionExplanation": "Esta opción solo se debe usar en aplicaciones en las que la deteción de versiones pueda no funcionar correctamente.", | ||||
|     "downloadingX": "Descargando {}", | ||||
|     "downloadNotifDescription": "Notifica al usuario de progreso de descarga de una aplicación", | ||||
|     "downloadNotifDescription": "Notifica al usuario del progreso de descarga de una aplicación", | ||||
|     "noAPKFound": "APK no encontrada", | ||||
|     "noVersionDetection": "Sin detección de versiones", | ||||
|     "categorize": "Catogorizar", | ||||
| @@ -196,14 +196,14 @@ | ||||
|     "noCategory": "Sin Categoría", | ||||
|     "noCategories": "Sin Categorías", | ||||
|     "deleteCategoriesQuestion": "¿Borrar Categorías?", | ||||
|     "categoryDeleteWarning": "Todas las aplicaciones en las categorías borradas serán margadas como 'Sin Categoría'.", | ||||
|     "categoryDeleteWarning": "Todas las aplicaciones en las categorías borradas serán marcadas como 'Sin Categoría'.", | ||||
|     "addCategory": "Añadir Categoría", | ||||
|     "label": "Nombre", | ||||
|     "language": "Idioma", | ||||
|     "copiedToClipboard": "Copiado al Portapapeles", | ||||
|     "storagePermissionDenied": "Permiso de Almacenamiento rechazado", | ||||
|     "selectedCategorizeWarning": "Esto reemplazará cualquier ajuste de categoría para las aplicaicones seleccionadas.", | ||||
|     "filterAPKsByRegEx": "Filtrar APKs mediante Expresiones Regulares", | ||||
|     "selectedCategorizeWarning": "Esto reemplazará cualquier ajuste de categoría para las aplicaciones seleccionadas.", | ||||
|     "filterAPKsByRegEx": "Filtrar por APKs", | ||||
|     "removeFromObtainium": "Eliminar de Obtainium", | ||||
|     "uninstallFromDevice": "Desinstalar del Dispositivo", | ||||
|     "onlyWorksWithNonVersionDetectApps": "Solo funciona para aplicaciones con la detección de versiones desactivada.", | ||||
| @@ -211,72 +211,73 @@ | ||||
|     "releaseDateAsVersionExplanation": "Esta opción solo se debería usar con aplicaciones en las que la detección de versiones no funciona pero hay disponible una fecha de publicación.", | ||||
|     "changes": "Cambios", | ||||
|     "releaseDate": "Fecha de Publicación", | ||||
|     "importFromURLsInFile": "Importar de URls en un Archivo (como OPML)", | ||||
|     "importFromURLsInFile": "Importar de URls desde un Archivo (como OPML)", | ||||
|     "versionDetection": "Detección de Versiones", | ||||
|     "standardVersionDetection": "Detección de versiones estándar", | ||||
|     "groupByCategory": "Agrupar por Categoría", | ||||
|     "autoApkFilterByArch": "Tratar de filtrar las APKs mediante arquitecturas de procesador si es posible", | ||||
|     "autoApkFilterByArch": "Filtrar las APKs mediante arquitecturas de procesador, si es posible", | ||||
|     "overrideSource": "Sobrescribir Fuente", | ||||
|     "dontShowAgain": "No mostrar de nuevo", | ||||
|     "dontShowTrackOnlyWarnings": "No mostrar avisos de 'Solo Seguimiento'", | ||||
|     "dontShowAPKOriginWarnings": "No mostrar avisos de las fuentes de las APks", | ||||
|     "moveNonInstalledAppsToBottom": "Move non-installed Apps to bottom of Apps view", | ||||
|     "gitlabPATLabel": "GitLab Personal Access Token\n(Enables Search and Better APK Discovery)", | ||||
|     "about": "About", | ||||
|     "requiresCredentialsInSettings": "{}: This needs additional credentials (in Settings)", | ||||
|     "checkOnStart": "Check for updates on startup", | ||||
|     "tryInferAppIdFromCode": "Try inferring App ID from source code", | ||||
|     "removeOnExternalUninstall": "Automatically remove externally uninstalled Apps", | ||||
|     "pickHighestVersionCode": "Auto-select highest version code APK", | ||||
|     "checkUpdateOnDetailPage": "Check for updates on opening an App detail page", | ||||
|     "disablePageTransitions": "Disable page transition animations", | ||||
|     "reversePageTransitions": "Reverse page transition animations", | ||||
|     "minStarCount": "Minimum Star Count", | ||||
|     "addInfoBelow": "Add this info below.", | ||||
|     "addInfoInSettings": "Add this info in the Settings.", | ||||
|     "githubSourceNote": "GitHub rate limiting can be avoided using an API key.", | ||||
|     "gitlabSourceNote": "GitLab APK extraction may not work without an API key.", | ||||
|     "sortByFileNamesNotLinks": "Sort by file names instead of full links", | ||||
|     "filterReleaseNotesByRegEx": "Filter Release Notes by Regular Expression", | ||||
|     "customLinkFilterRegex": "Custom APK Link Filter by Regular Expression (Default '.apk$')", | ||||
|     "appsPossiblyUpdated": "App Updates Attempted", | ||||
|     "appsPossiblyUpdatedNotifDescription": "Notifies the user that updates to one or more Apps were potentially applied in the background", | ||||
|     "xWasPossiblyUpdatedToY": "{} may have been updated to {}.", | ||||
|     "enableBackgroundUpdates": "Enable background updates", | ||||
|     "backgroundUpdateReqsExplanation": "Background updates may not be possible for all apps.", | ||||
|     "backgroundUpdateLimitsExplanation": "The success of a background install can only be determined when Obtainium is opened.", | ||||
|     "verifyLatestTag": "Verify the 'latest' tag", | ||||
|     "intermediateLinkRegex": "Filter for an 'Intermediate' Link to Visit First", | ||||
|     "intermediateLinkNotFound": "Intermediate link not found", | ||||
|     "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", | ||||
|     "moveNonInstalledAppsToBottom": "Mover las Apps no instaladas al final de la vista de Apps", | ||||
|     "gitlabPATLabel": "Token GitLab de Acceso Personal\n(Habilita la Búsqueda y Mejor Detección de APKs)", | ||||
|     "about": "Acerca", | ||||
|     "requiresCredentialsInSettings": "{}: Esto requiere credenciales adicionales (en Ajustes)", | ||||
|     "checkOnStart": "Comprobar actualizaciones durante el inicio", | ||||
|     "tryInferAppIdFromCode": "Intentar deducir la ID de la APP por el código fuente", | ||||
|     "removeOnExternalUninstall": "Auto eliminar Apps desinstaladas externamente", | ||||
|     "pickHighestVersionCode": "Auto selección versión superior del código APK", | ||||
|     "checkUpdateOnDetailPage": "Comprobar actualizaciones al abrir detalles de la App", | ||||
|     "disablePageTransitions": "Deshabilitar animaciones de transición de la página", | ||||
|     "reversePageTransitions": "Invertir las animaciones de transición de la página", | ||||
|     "minStarCount": "Número Mínimo de Estrellas", | ||||
|     "addInfoBelow": "Añadir esta información debajo.", | ||||
|     "addInfoInSettings": "Añadir esta información en Ajustes.", | ||||
|     "githubSourceNote": "La limitación de velocidad de GitHub puede evitarse con una clave API.", | ||||
|     "gitlabSourceNote": "La extracción de APK de GitLab podría no funcionar sin una clave API.", | ||||
|     "sortByFileNamesNotLinks": "Ordenar por nombres de fichero en vez de por enlaces completos", | ||||
|     "filterReleaseNotesByRegEx": "Filtrar por Notas de Versión (Release Notes)", | ||||
|     "customLinkFilterRegex": "Filtro personalizado de Enlace APK (por defecto '.apk$')", | ||||
|     "appsPossiblyUpdated": "Actualización de Apps intentada", | ||||
|     "appsPossiblyUpdatedNotifDescription": "Notifica al usuario que las actualizaciones en segundo plano podrían haberse realizado para una o más aplicaciones", | ||||
|     "xWasPossiblyUpdatedToY": "{} podría estar actualizada a {}.", | ||||
|     "enableBackgroundUpdates": "Habilitar actualizaciones en segundo plano", | ||||
|     "backgroundUpdateReqsExplanation": "Las actualizaciones en segundo plano pueden no estar disponibles para todas las aplicaciones.", | ||||
|     "backgroundUpdateLimitsExplanation": "El éxito de las instalaciones en segundo plano solo se puede verificar con Obtainium abierto.", | ||||
|     "verifyLatestTag": "Verifica la etiqueta 'latest'", | ||||
|     "intermediateLinkRegex": "Filtrar por Enlace 'Intermedio' para Visitar Primero", | ||||
|     "intermediateLinkNotFound": "Enlace Intermedio no encontrado", | ||||
|     "exemptFromBackgroundUpdates": "Exento de actualizciones en segundo plano (si están habilitadas)", | ||||
|     "bgUpdatesOnWiFiOnly": "Deshabilitar las actualizaciones en segundo plano sin WiFi", | ||||
|     "autoSelectHighestVersionCode": "Auto Selección de la versionCode APK superior", | ||||
|     "versionExtractionRegEx": "Versión de Extracción de RegEx", | ||||
|     "matchGroupToUse": "Match Group to Use", | ||||
|     "highlightTouchTargets": "Highlight less obvious touch targets", | ||||
|     "pickExportDir": "Pick Export Directory", | ||||
|     "autoExportOnChanges": "Auto-export on changes", | ||||
|     "filterVersionsByRegEx": "Filter Versions by Regular Expression", | ||||
|     "trySelectingSuggestedVersionCode": "Try selecting suggested versionCode APK", | ||||
|     "dontSortReleasesList": "Retain release order from API", | ||||
|     "reverseSort": "Reverse sorting", | ||||
|     "debugMenu": "Debug Menu", | ||||
|     "bgTaskStarted": "Background task started - check logs.", | ||||
|     "runBgCheckNow": "Run Background Update Check Now", | ||||
|     "versionExtractWholePage": "Apply Version Extraction Regex to Entire Page", | ||||
|     "installing": "Installing", | ||||
|     "skipUpdateNotifications": "Skip update notifications", | ||||
|     "highlightTouchTargets": "Resaltar objetivos menos obvios", | ||||
|     "pickExportDir": "Selecciona el Directorio para Exportar", | ||||
|     "autoExportOnChanges": "Auto Exportar cuando haya cambios", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filtrar por Versiones", | ||||
|     "trySelectingSuggestedVersionCode": "Prueba seleccionando la versionCode APK sugerida", | ||||
|     "dontSortReleasesList": "Mantener el order de publicación desde API", | ||||
|     "reverseSort": "Orden inverso", | ||||
|     "debugMenu": "Menu Depurar", | ||||
|     "bgTaskStarted": "Iniciada tarea en segundo plano - revisa los logs.", | ||||
|     "runBgCheckNow": "Ejecutar verficiación de actualizaciones en segundo plano", | ||||
|     "versionExtractWholePage": "Aplicar la Versión de Extracción Regex a la Página Entera", | ||||
|     "installing": "Instalando", | ||||
|     "skipUpdateNotifications": "Omitir notificaciones sobre actualizaciones", | ||||
|     "updatesAvailableNotifChannel": "Actualizaciones Disponibles", | ||||
|     "appsUpdatedNotifChannel": "Aplicaciones Actualizadas", | ||||
|     "appsPossiblyUpdatedNotifChannel": "App Updates Attempted", | ||||
|     "appsPossiblyUpdatedNotifChannel": "Se ha Intentado Actualizar la Aplicación", | ||||
|     "errorCheckingUpdatesNotifChannel": "Error Buscando Actualizaciones", | ||||
|     "appsRemovedNotifChannel": "Aplicaciones Eliminadas", | ||||
|     "downloadingXNotifChannel": "Descargando {}", | ||||
|     "completeAppInstallationNotifChannel": "Instalación Completa de la Aplicación", | ||||
|     "checkingForUpdatesNotifChannel": "Buscando Actualizaciones", | ||||
|     "onlyCheckInstalledOrTrackOnlyApps": "Only check installed and Track-Only apps for updates", | ||||
|     "supportFixedAPKURL": "Support fixed APK URLs", | ||||
|     "selectX": "Select {}", | ||||
|     "supportFixedAPKURL": "Soporte para URLs fijas de APK", | ||||
|     "selectX": "Selecciona {}", | ||||
|     "removeAppQuestion": { | ||||
|         "one": "¿Eliminar Aplicación?", | ||||
|         "other": "¿Eliminar Aplicaciones?" | ||||
| @@ -319,14 +320,14 @@ | ||||
|     }, | ||||
|     "xAndNMoreUpdatesAvailable": { | ||||
|         "one": "{} y 1 aplicación más tiene actualizaciones.", | ||||
|         "other": "{} y {} aplicaciones más tiene actualizaciones." | ||||
|         "other": "{} y {} aplicaciones más tienen actualizaciones." | ||||
|     }, | ||||
|     "xAndNMoreUpdatesInstalled": { | ||||
|         "one": "{} y 1 aplicación más han sido actualizadas.", | ||||
|         "other": "{} y {} aplicaciones más han sido actualizadas." | ||||
|     }, | ||||
|     "xAndNMoreUpdatesPossiblyInstalled": { | ||||
|         "one": "{} and 1 more app may have been updated.", | ||||
|         "other": "{} and {} more apps may have been updated." | ||||
|         "one": "{} y 1 aplicación más podría haber sido actualizada.", | ||||
|         "other": "{} y {} aplicaciones más podrían haber sido actualizadas." | ||||
|     } | ||||
| } | ||||
| } | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "اهداف لمسی کمتر واضح را برجسته کنید", | ||||
|     "pickExportDir": "فهرست صادرات را انتخاب کنید", | ||||
|     "autoExportOnChanges": "صادرات خودکار تغییرات", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "فیلتر کردن نسخه ها با RegEx", | ||||
|     "trySelectingSuggestedVersionCode": "نسخه پیشنهادی APK نسخه کد را انتخاب کنید", | ||||
|     "dontSortReleasesList": "حفظ سفارش انتشار از API", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Highlight less obvious touch targets", | ||||
|     "pickExportDir": "Pick Export Directory", | ||||
|     "autoExportOnChanges": "Auto-export on changes", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filter Versions by Regular Expression", | ||||
|     "trySelectingSuggestedVersionCode": "Try selecting suggested versionCode APK", | ||||
|     "dontSortReleasesList": "Retain release order from API", | ||||
|   | ||||
| @@ -215,7 +215,7 @@ | ||||
|     "versionDetection": "Verzió érzékelés", | ||||
|     "standardVersionDetection": "Alapért. verzió érzékelés", | ||||
|     "groupByCategory": "Csoportosítás Kategória alapján", | ||||
|     "autoApkFilterByArch": "Ha lehetséges, próbálja CPU architektúra szerint szűrni az APK-okat", | ||||
|     "autoApkFilterByArch": "Ha lehetséges, próbálja CPU architektúra szerint szűrni az APK-kat", | ||||
|     "overrideSource": "Forrás felülbírálása", | ||||
|     "dontShowAgain": "Ne mutassa ezt újra", | ||||
|     "dontShowTrackOnlyWarnings": "Ne jelenítsen meg 'Csak nyomon követés' figyelmeztetést", | ||||
| @@ -255,6 +255,7 @@ | ||||
|     "highlightTouchTargets": "Emelje ki a kevésbé nyilvánvaló érintési célokat", | ||||
|     "pickExportDir": "Válassza az Exportálási könyvtárat", | ||||
|     "autoExportOnChanges": "Auto-exportálás a változások után", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Verziók szűrése reguláris kifejezéssel", | ||||
|     "trySelectingSuggestedVersionCode": "Próbálja ki a javasolt verziókódú APK-t", | ||||
|     "dontSortReleasesList": "Az API-ból származó kiadási sorrend megőrzése", | ||||
| @@ -275,8 +276,8 @@ | ||||
|     "completeAppInstallationNotifChannel": "Teljes app telepítés", | ||||
|     "checkingForUpdatesNotifChannel": "Frissítések keresése", | ||||
|     "onlyCheckInstalledOrTrackOnlyApps": "Csak a telepített és a csak követhető appokat ellenőrizze frissítésekért", | ||||
|     "supportFixedAPKURL": "Support fixed APK URLs", | ||||
|     "selectX": "Select {}", | ||||
|     "supportFixedAPKURL": "Támogatja a rögzített APK URL-eket", | ||||
|     "selectX": "Kiválaszt {}", | ||||
|     "removeAppQuestion": { | ||||
|         "one": "Eltávolítja az alkalmazást?", | ||||
|         "other": "Eltávolítja az alkalmazást?" | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Evidenzia elementi toccabili meno ovvi", | ||||
|     "pickExportDir": "Scegli cartella esp.", | ||||
|     "autoExportOnChanges": "Auto-esporta dopo modifiche", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filtra versioni con espressione regolare", | ||||
|     "trySelectingSuggestedVersionCode": "Prova a selezionare APK con versionCode suggerito", | ||||
|     "dontSortReleasesList": "Conserva l'ordine di release da API", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "目立たないタップ可能な対象をハイライトする", | ||||
|     "pickExportDir": "エクスポートディレクトリを選択", | ||||
|     "autoExportOnChanges": "変更があった際に自動でエクスポートする", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "正規表現でバージョンをフィルタリングする", | ||||
|     "trySelectingSuggestedVersionCode": "提案されたバージョンコードのAPKを選択する", | ||||
|     "dontSortReleasesList": "APIからのリリース順を保持する", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Markeer minder voor de hand liggende aanraakdoelen.", | ||||
|     "pickExportDir": "Kies de exportmap", | ||||
|     "autoExportOnChanges": "Automatisch exporteren bij wijzigingen", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filter versies met een reguliere expressie", | ||||
|     "trySelectingSuggestedVersionCode": "Probeer de voorgestelde versiecode APK te selecteren", | ||||
|     "dontSortReleasesList": "Volgorde van releases behouden vanuit de API", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Wyróżnij mniej oczywiste elementy dotykowe", | ||||
|     "pickExportDir": "Wybierz katalog eksportu", | ||||
|     "autoExportOnChanges": "Automatyczny eksport po wprowadzeniu zmian", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filtruj wersje według wyrażenia regularnego", | ||||
|     "trySelectingSuggestedVersionCode": "Spróbuj wybierać sugerowany kod wersji APK", | ||||
|     "dontSortReleasesList": "Utrzymaj kolejność wydań z interfejsu API", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Destaque areas de toque menos óbvias", | ||||
|     "pickExportDir": "Escolher Diretorio de Exportação", | ||||
|     "autoExportOnChanges": "Auto-exportar em mudanças", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filtrar Versões por Expressão Regular", | ||||
|     "trySelectingSuggestedVersionCode": "Tente selecionar a versão sugerida", | ||||
|     "dontSortReleasesList": "Reter a ordem de lançamento da API", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Выделить менее очевидные элементы управления касанием", | ||||
|     "pickExportDir": "Выбрать каталог для экспорта", | ||||
|     "autoExportOnChanges": "Автоэкспорт при изменениях", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Фильтровать версии по регулярному выражению", | ||||
|     "trySelectingSuggestedVersionCode": "Попробуйте выбрать предложенный код версии APK", | ||||
|     "dontSortReleasesList": "Сохранить порядок релизов от API", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Highlight less obvious touch targets", | ||||
|     "pickExportDir": "Välj Exportsökväg", | ||||
|     "autoExportOnChanges": "Automatisk export vid ändringar", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Filter Versions by Regular Expression", | ||||
|     "trySelectingSuggestedVersionCode": "Try selecting suggested versionCode APK", | ||||
|     "dontSortReleasesList": "Retain release order from API", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Daha az belirgin dokunma hedeflerini vurgula", | ||||
|     "pickExportDir": "Dışa Aktarılacak Klasörü Seç", | ||||
|     "autoExportOnChanges": "Değişikliklerde otomatik olarak dışa aktar", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Sürümleri Düzenli İfade ile Filtrele", | ||||
|     "trySelectingSuggestedVersionCode": "Önerilen sürüm kodunu seçmeyi dene", | ||||
|     "dontSortReleasesList": "API'den sıralama düzenini koru", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "Đánh dấu các mục tiêu cảm ứng ít rõ ràng hơn", | ||||
|     "pickExportDir": "Chọn thư mục xuất", | ||||
|     "autoExportOnChanges": "Tự động xuất khi thay đổi", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "Lọc phiên bản theo biểu thức chính quy", | ||||
|     "trySelectingSuggestedVersionCode": "Thử chọn APK Mã phiên bản được đề xuất", | ||||
|     "dontSortReleasesList": "Giữ lại thứ tự phát hành từ API", | ||||
|   | ||||
| @@ -256,6 +256,7 @@ | ||||
|     "highlightTouchTargets": "突出展示不明显的触摸区域", | ||||
|     "pickExportDir": "选择导出文件夹", | ||||
|     "autoExportOnChanges": "数据变更时自动导出", | ||||
|     "includeSettings": "Include settings", | ||||
|     "filterVersionsByRegEx": "筛选版本号(正则表达式)", | ||||
|     "trySelectingSuggestedVersionCode": "尝试选择推荐版本的 APK 文件", | ||||
|     "dontSortReleasesList": "保持来自 API 的发行顺序", | ||||
|   | ||||
| @@ -65,7 +65,7 @@ class FDroid extends AppSource { | ||||
|   ) async { | ||||
|     String? appId = await tryInferringAppId(standardUrl); | ||||
|     String host = Uri.parse(standardUrl).host; | ||||
|     return getAPKUrlsFromFDroidPackagesAPIResponse( | ||||
|     var details = getAPKUrlsFromFDroidPackagesAPIResponse( | ||||
|         await sourceRequest('https://$host/api/v1/packages/$appId'), | ||||
|         'https://$host/repo/$appId', | ||||
|         standardUrl, | ||||
| @@ -80,6 +80,23 @@ class FDroid extends AppSource { | ||||
|                     true | ||||
|                 ? additionalSettings['filterVersionsByRegEx'] | ||||
|                 : null); | ||||
|     if (!hostChanged) { | ||||
|       try { | ||||
|         var res = await sourceRequest( | ||||
|             'https://gitlab.com/fdroid/fdroiddata/-/raw/master/metadata/$appId.yml'); | ||||
|         String author = res.body | ||||
|             .split('\n') | ||||
|             .where((l) => l.startsWith('AuthorName: ')) | ||||
|             .first | ||||
|             .split(': ') | ||||
|             .sublist(1) | ||||
|             .join(': '); | ||||
|         details.names.author = author; | ||||
|       } catch (e) { | ||||
|         // Fail silently | ||||
|       } | ||||
|     } | ||||
|     return details; | ||||
|   } | ||||
|  | ||||
|   @override | ||||
| @@ -111,79 +128,79 @@ class FDroid extends AppSource { | ||||
|       throw getObtainiumHttpError(res); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|  | ||||
| APKDetails getAPKUrlsFromFDroidPackagesAPIResponse( | ||||
|     Response res, String apkUrlPrefix, String standardUrl, String sourceName, | ||||
|     {bool autoSelectHighestVersionCode = false, | ||||
|     bool trySelectingSuggestedVersionCode = false, | ||||
|     String? filterVersionsByRegEx}) { | ||||
|   if (res.statusCode == 200) { | ||||
|     var response = jsonDecode(res.body); | ||||
|     List<dynamic> releases = response['packages'] ?? []; | ||||
|     if (releases.isEmpty) { | ||||
|       throw NoReleasesError(); | ||||
|     } | ||||
|     String? version; | ||||
|     Iterable<dynamic> releaseChoices = []; | ||||
|     // Grab the versionCode suggested if the user chose to do that | ||||
|     // Only do so at this stage if the user has no release filter | ||||
|     if (trySelectingSuggestedVersionCode && | ||||
|         response['suggestedVersionCode'] != null && | ||||
|         filterVersionsByRegEx == null) { | ||||
|       var suggestedReleases = releases.where((element) => | ||||
|           element['versionCode'] == response['suggestedVersionCode']); | ||||
|       if (suggestedReleases.isNotEmpty) { | ||||
|         releaseChoices = suggestedReleases; | ||||
|         version = suggestedReleases.first['versionName']; | ||||
|   APKDetails getAPKUrlsFromFDroidPackagesAPIResponse( | ||||
|       Response res, String apkUrlPrefix, String standardUrl, String sourceName, | ||||
|       {bool autoSelectHighestVersionCode = false, | ||||
|       bool trySelectingSuggestedVersionCode = false, | ||||
|       String? filterVersionsByRegEx}) { | ||||
|     if (res.statusCode == 200) { | ||||
|       var response = jsonDecode(res.body); | ||||
|       List<dynamic> releases = response['packages'] ?? []; | ||||
|       if (releases.isEmpty) { | ||||
|         throw NoReleasesError(); | ||||
|       } | ||||
|     } | ||||
|     // Apply the release filter if any | ||||
|     if (filterVersionsByRegEx?.isNotEmpty == true) { | ||||
|       version = null; | ||||
|       releaseChoices = []; | ||||
|       for (var i = 0; i < releases.length; i++) { | ||||
|         if (RegExp(filterVersionsByRegEx!) | ||||
|             .hasMatch(releases[i]['versionName'])) { | ||||
|           version = releases[i]['versionName']; | ||||
|         } | ||||
|       } | ||||
|       if (version == null) { | ||||
|         throw NoVersionError(); | ||||
|       } | ||||
|     } | ||||
|     // Default to the highest version | ||||
|     version ??= releases[0]['versionName']; | ||||
|     if (version == null) { | ||||
|       throw NoVersionError(); | ||||
|     } | ||||
|     // If a suggested release was not already picked, pick all those with the selected version | ||||
|     if (releaseChoices.isEmpty) { | ||||
|       releaseChoices = | ||||
|           releases.where((element) => element['versionName'] == version); | ||||
|     } | ||||
|     // For the remaining releases, use the toggles to auto-select one if possible | ||||
|     if (releaseChoices.length > 1) { | ||||
|       if (autoSelectHighestVersionCode) { | ||||
|         releaseChoices = [releaseChoices.first]; | ||||
|       } else if (trySelectingSuggestedVersionCode && | ||||
|           response['suggestedVersionCode'] != null) { | ||||
|         var suggestedReleases = releaseChoices.where((element) => | ||||
|       String? version; | ||||
|       Iterable<dynamic> releaseChoices = []; | ||||
|       // Grab the versionCode suggested if the user chose to do that | ||||
|       // Only do so at this stage if the user has no release filter | ||||
|       if (trySelectingSuggestedVersionCode && | ||||
|           response['suggestedVersionCode'] != null && | ||||
|           filterVersionsByRegEx == null) { | ||||
|         var suggestedReleases = releases.where((element) => | ||||
|             element['versionCode'] == response['suggestedVersionCode']); | ||||
|         if (suggestedReleases.isNotEmpty) { | ||||
|           releaseChoices = suggestedReleases; | ||||
|           version = suggestedReleases.first['versionName']; | ||||
|         } | ||||
|       } | ||||
|       // Apply the release filter if any | ||||
|       if (filterVersionsByRegEx?.isNotEmpty == true) { | ||||
|         version = null; | ||||
|         releaseChoices = []; | ||||
|         for (var i = 0; i < releases.length; i++) { | ||||
|           if (RegExp(filterVersionsByRegEx!) | ||||
|               .hasMatch(releases[i]['versionName'])) { | ||||
|             version = releases[i]['versionName']; | ||||
|           } | ||||
|         } | ||||
|         if (version == null) { | ||||
|           throw NoVersionError(); | ||||
|         } | ||||
|       } | ||||
|       // Default to the highest version | ||||
|       version ??= releases[0]['versionName']; | ||||
|       if (version == null) { | ||||
|         throw NoVersionError(); | ||||
|       } | ||||
|       // If a suggested release was not already picked, pick all those with the selected version | ||||
|       if (releaseChoices.isEmpty) { | ||||
|         releaseChoices = | ||||
|             releases.where((element) => element['versionName'] == version); | ||||
|       } | ||||
|       // For the remaining releases, use the toggles to auto-select one if possible | ||||
|       if (releaseChoices.length > 1) { | ||||
|         if (autoSelectHighestVersionCode) { | ||||
|           releaseChoices = [releaseChoices.first]; | ||||
|         } else if (trySelectingSuggestedVersionCode && | ||||
|             response['suggestedVersionCode'] != null) { | ||||
|           var suggestedReleases = releaseChoices.where((element) => | ||||
|               element['versionCode'] == response['suggestedVersionCode']); | ||||
|           if (suggestedReleases.isNotEmpty) { | ||||
|             releaseChoices = suggestedReleases; | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|       if (releaseChoices.isEmpty) { | ||||
|         throw NoReleasesError(); | ||||
|       } | ||||
|       List<String> apkUrls = releaseChoices | ||||
|           .map((e) => '${apkUrlPrefix}_${e['versionCode']}.apk') | ||||
|           .toList(); | ||||
|       return APKDetails(version, getApkUrlsFromUrls(apkUrls.toSet().toList()), | ||||
|           AppNames(sourceName, Uri.parse(standardUrl).pathSegments.last)); | ||||
|     } else { | ||||
|       throw getObtainiumHttpError(res); | ||||
|     } | ||||
|     if (releaseChoices.isEmpty) { | ||||
|       throw NoReleasesError(); | ||||
|     } | ||||
|     List<String> apkUrls = releaseChoices | ||||
|         .map((e) => '${apkUrlPrefix}_${e['versionCode']}.apk') | ||||
|         .toList(); | ||||
|     return APKDetails(version, getApkUrlsFromUrls(apkUrls.toSet().toList()), | ||||
|         AppNames(sourceName, Uri.parse(standardUrl).pathSegments.last)); | ||||
|   } else { | ||||
|     throw getObtainiumHttpError(res); | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -234,7 +234,7 @@ class GitHub extends AppSource { | ||||
|     bool verifyLatestTag = additionalSettings['verifyLatestTag'] == true; | ||||
|     bool dontSortReleasesList = | ||||
|         additionalSettings['dontSortReleasesList'] == true; | ||||
|     String? latestTag; | ||||
|     dynamic latestRelease; | ||||
|     if (verifyLatestTag) { | ||||
|       var temp = requestUrl.split('?'); | ||||
|       Response res = await sourceRequest( | ||||
| @@ -245,12 +245,20 @@ class GitHub extends AppSource { | ||||
|         } | ||||
|         throw getObtainiumHttpError(res); | ||||
|       } | ||||
|       var jsres = jsonDecode(res.body); | ||||
|       latestTag = jsres['tag_name'] ?? jsres['name']; | ||||
|       latestRelease = jsonDecode(res.body); | ||||
|     } | ||||
|     Response res = await sourceRequest(requestUrl); | ||||
|     if (res.statusCode == 200) { | ||||
|       var releases = jsonDecode(res.body) as List<dynamic>; | ||||
|       if (latestRelease != null) { | ||||
|         var latestTag = latestRelease['tag_name'] ?? latestRelease['name']; | ||||
|         if (releases | ||||
|             .where((element) => | ||||
|                 (element['tag_name'] ?? element['name']) == latestTag) | ||||
|             .isEmpty) { | ||||
|           releases = [latestRelease, ...releases]; | ||||
|         } | ||||
|       } | ||||
|  | ||||
|       List<MapEntry<String, String>> getReleaseAPKUrls(dynamic release) => | ||||
|           (release['assets'] as List<dynamic>?) | ||||
| @@ -299,13 +307,13 @@ class GitHub extends AppSource { | ||||
|           } | ||||
|         }); | ||||
|       } | ||||
|       if (latestTag != null && | ||||
|       if (latestRelease != null && | ||||
|           releases.isNotEmpty && | ||||
|           latestTag != | ||||
|           latestRelease != | ||||
|               (releases[releases.length - 1]['tag_name'] ?? | ||||
|                   releases[0]['name'])) { | ||||
|         var ind = releases.indexWhere( | ||||
|             (element) => latestTag == (element['tag_name'] ?? element['name'])); | ||||
|         var ind = releases.indexWhere((element) => | ||||
|             latestRelease == (element['tag_name'] ?? element['name'])); | ||||
|         if (ind >= 0) { | ||||
|           releases.add(releases.removeAt(ind)); | ||||
|         } | ||||
|   | ||||
| @@ -48,12 +48,6 @@ class GitLab extends AppSource { | ||||
|             label: tr('fallbackToOlderReleases'), defaultValue: true) | ||||
|       ] | ||||
|     ]; | ||||
|     searchQuerySettingFormItems = [ | ||||
|       GeneratedFormTextField('PAT', | ||||
|           label: tr('gitlabPATLabel').split('(')[0], | ||||
|           password: true, | ||||
|           required: false) | ||||
|     ]; | ||||
|   } | ||||
|  | ||||
|   @override | ||||
| @@ -86,18 +80,8 @@ class GitLab extends AppSource { | ||||
|   @override | ||||
|   Future<Map<String, List<String>>> search(String query, | ||||
|       {Map<String, dynamic> querySettings = const {}}) async { | ||||
|     String? PAT; | ||||
|     if (!hostChanged) { | ||||
|       PAT = await getPATIfAny({}); | ||||
|       if (PAT == null) { | ||||
|         throw CredsNeededError(name); | ||||
|       } | ||||
|     } | ||||
|     if ((querySettings['PAT'] as String?)?.isNotEmpty == true) { | ||||
|       PAT = querySettings['PAT']; | ||||
|     } | ||||
|     var url = | ||||
|         'https://$host/api/v4/search?${PAT?.isNotEmpty == true ? 'private_token=$PAT&' : ''}scope=projects&search=${Uri.encodeQueryComponent(query)}'; | ||||
|         'https://$host/api/v4/projects?search=${Uri.encodeQueryComponent(query)}'; | ||||
|     var res = await sourceRequest(url); | ||||
|     if (res.statusCode != 200) { | ||||
|       throw getObtainiumHttpError(res); | ||||
|   | ||||
| @@ -40,7 +40,7 @@ class IzzyOnDroid extends AppSource { | ||||
|     Map<String, dynamic> additionalSettings, | ||||
|   ) async { | ||||
|     String? appId = await tryInferringAppId(standardUrl); | ||||
|     return getAPKUrlsFromFDroidPackagesAPIResponse( | ||||
|     return fd.getAPKUrlsFromFDroidPackagesAPIResponse( | ||||
|         await sourceRequest( | ||||
|             'https://apt.izzysoft.de/fdroid/api/v1/packages/$appId'), | ||||
|         'https://android.izzysoft.de/frepo/$appId', | ||||
|   | ||||
| @@ -19,7 +19,7 @@ import 'package:easy_localization/src/easy_localization_controller.dart'; | ||||
| // ignore: implementation_imports | ||||
| import 'package:easy_localization/src/localization.dart'; | ||||
|  | ||||
| const String currentVersion = '0.14.36'; | ||||
| const String currentVersion = '0.14.38'; | ||||
| const String currentReleaseTag = | ||||
|     'v$currentVersion-beta'; // KEEP THIS IN SYNC WITH GITHUB RELEASES | ||||
|  | ||||
|   | ||||
| @@ -21,10 +21,10 @@ class AddAppPage extends StatefulWidget { | ||||
|   const AddAppPage({super.key}); | ||||
|  | ||||
|   @override | ||||
|   State<AddAppPage> createState() => _AddAppPageState(); | ||||
|   State<AddAppPage> createState() => AddAppPageState(); | ||||
| } | ||||
|  | ||||
| class _AddAppPageState extends State<AddAppPage> { | ||||
| class AddAppPageState extends State<AddAppPage> { | ||||
|   bool gettingAppInfo = false; | ||||
|   bool searching = false; | ||||
|  | ||||
| @@ -36,9 +36,62 @@ class _AddAppPageState extends State<AddAppPage> { | ||||
|   bool additionalSettingsValid = true; | ||||
|   bool inferAppIdIfOptional = true; | ||||
|   List<String> pickedCategories = []; | ||||
|   int searchnum = 0; | ||||
|   int urlInputKey = 0; | ||||
|   SourceProvider sourceProvider = SourceProvider(); | ||||
|  | ||||
|   linkFn(String input) { | ||||
|     try { | ||||
|       if (input.isEmpty) { | ||||
|         throw UnsupportedURLError(); | ||||
|       } | ||||
|       sourceProvider.getSource(input); | ||||
|       changeUserInput(input, true, false, updateUrlInput: true); | ||||
|     } catch (e) { | ||||
|       showError(e, context); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   changeUserInput(String input, bool valid, bool isBuilding, | ||||
|       {bool updateUrlInput = false}) { | ||||
|     userInput = input; | ||||
|     if (!isBuilding) { | ||||
|       setState(() { | ||||
|         if (updateUrlInput) { | ||||
|           urlInputKey++; | ||||
|         } | ||||
|         var prevHost = pickedSource?.host; | ||||
|         try { | ||||
|           var naturalSource = | ||||
|               valid ? sourceProvider.getSource(userInput) : null; | ||||
|           if (naturalSource != null && | ||||
|               naturalSource.runtimeType.toString() != | ||||
|                   HTML().runtimeType.toString()) { | ||||
|             // If input has changed to match a regular source, reset the override | ||||
|             pickedSourceOverride = null; | ||||
|           } | ||||
|         } catch (e) { | ||||
|           // ignore | ||||
|         } | ||||
|         var source = valid | ||||
|             ? sourceProvider.getSource(userInput, | ||||
|                 overrideSource: pickedSourceOverride) | ||||
|             : null; | ||||
|         if (pickedSource.runtimeType != source.runtimeType || | ||||
|             (prevHost != null && prevHost != source?.host)) { | ||||
|           pickedSource = source; | ||||
|           additionalSettings = source != null | ||||
|               ? getDefaultValuesFromFormItems( | ||||
|                   source.combinedAppSpecificSettingFormItems) | ||||
|               : {}; | ||||
|           additionalSettingsValid = source != null | ||||
|               ? !sourceProvider.ifRequiredAppSpecificSettingsExist(source) | ||||
|               : true; | ||||
|           inferAppIdIfOptional = true; | ||||
|         } | ||||
|       }); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   @override | ||||
|   Widget build(BuildContext context) { | ||||
|     AppsProvider appsProvider = context.read<AppsProvider>(); | ||||
| @@ -48,47 +101,6 @@ class _AddAppPageState extends State<AddAppPage> { | ||||
|  | ||||
|     bool doingSomething = gettingAppInfo || searching; | ||||
|  | ||||
|     changeUserInput(String input, bool valid, bool isBuilding, | ||||
|         {bool isSearch = false}) { | ||||
|       userInput = input; | ||||
|       if (!isBuilding) { | ||||
|         setState(() { | ||||
|           if (isSearch) { | ||||
|             searchnum++; | ||||
|           } | ||||
|           var prevHost = pickedSource?.host; | ||||
|           try { | ||||
|             var naturalSource = | ||||
|                 valid ? sourceProvider.getSource(userInput) : null; | ||||
|             if (naturalSource != null && | ||||
|                 naturalSource.runtimeType.toString() != | ||||
|                     HTML().runtimeType.toString()) { | ||||
|               // If input has changed to match a regular source, reset the override | ||||
|               pickedSourceOverride = null; | ||||
|             } | ||||
|           } catch (e) { | ||||
|             // ignore | ||||
|           } | ||||
|           var source = valid | ||||
|               ? sourceProvider.getSource(userInput, | ||||
|                   overrideSource: pickedSourceOverride) | ||||
|               : null; | ||||
|           if (pickedSource.runtimeType != source.runtimeType || | ||||
|               (prevHost != null && prevHost != source?.host)) { | ||||
|             pickedSource = source; | ||||
|             additionalSettings = source != null | ||||
|                 ? getDefaultValuesFromFormItems( | ||||
|                     source.combinedAppSpecificSettingFormItems) | ||||
|                 : {}; | ||||
|             additionalSettingsValid = source != null | ||||
|                 ? !sourceProvider.ifRequiredAppSpecificSettingsExist(source) | ||||
|                 : true; | ||||
|             inferAppIdIfOptional = true; | ||||
|           } | ||||
|         }); | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     Future<bool> getTrackOnlyConfirmationIfNeeded(bool userPickedTrackOnly, | ||||
|         {bool ignoreHideSetting = false}) async { | ||||
|       var useTrackOnly = userPickedTrackOnly || pickedSource!.enforceTrackOnly; | ||||
| @@ -205,7 +217,7 @@ class _AddAppPageState extends State<AddAppPage> { | ||||
|           children: [ | ||||
|             Expanded( | ||||
|                 child: GeneratedForm( | ||||
|                     key: Key(searchnum.toString()), | ||||
|                     key: Key(urlInputKey.toString()), | ||||
|                     items: [ | ||||
|                       [ | ||||
|                         GeneratedFormTextField('appSourceURL', | ||||
| @@ -325,7 +337,7 @@ class _AddAppPageState extends State<AddAppPage> { | ||||
|                     ); | ||||
|                   }); | ||||
|           if (selectedUrls != null && selectedUrls.isNotEmpty) { | ||||
|             changeUserInput(selectedUrls[0], true, false, isSearch: true); | ||||
|             changeUserInput(selectedUrls[0], true, false, updateUrlInput: true); | ||||
|           } | ||||
|         } | ||||
|       } catch (e) { | ||||
|   | ||||
| @@ -1,7 +1,11 @@ | ||||
| import 'dart:async'; | ||||
|  | ||||
| import 'package:animations/animations.dart'; | ||||
| import 'package:app_links/app_links.dart'; | ||||
| import 'package:easy_localization/easy_localization.dart'; | ||||
| import 'package:flutter/material.dart'; | ||||
| import 'package:flutter/services.dart'; | ||||
| import 'package:obtainium/custom_errors.dart'; | ||||
| import 'package:obtainium/pages/add_app.dart'; | ||||
| import 'package:obtainium/pages/apps.dart'; | ||||
| import 'package:obtainium/pages/import_export.dart'; | ||||
| @@ -30,58 +34,119 @@ class _HomePageState extends State<HomePage> { | ||||
|   bool isReversing = false; | ||||
|   int prevAppCount = -1; | ||||
|   bool prevIsLoading = true; | ||||
|   late AppLinks _appLinks; | ||||
|   StreamSubscription<Uri>? _linkSubscription; | ||||
|   bool isLinkActivity = false; | ||||
|  | ||||
|   List<NavigationPageItem> pages = [ | ||||
|     NavigationPageItem(tr('appsString'), Icons.apps, | ||||
|         AppsPage(key: GlobalKey<AppsPageState>())), | ||||
|     NavigationPageItem(tr('addApp'), Icons.add, const AddAppPage()), | ||||
|     NavigationPageItem( | ||||
|         tr('addApp'), Icons.add, AddAppPage(key: GlobalKey<AddAppPageState>())), | ||||
|     NavigationPageItem( | ||||
|         tr('importExport'), Icons.import_export, const ImportExportPage()), | ||||
|     NavigationPageItem(tr('settings'), Icons.settings, const SettingsPage()) | ||||
|   ]; | ||||
|  | ||||
|   @override | ||||
|   void initState() { | ||||
|     super.initState(); | ||||
|     initDeepLinks(); | ||||
|   } | ||||
|  | ||||
|   Future<void> initDeepLinks() async { | ||||
|     _appLinks = AppLinks(); | ||||
|  | ||||
|     goToAddApp(String data) async { | ||||
|       switchToPage(1); | ||||
|       while ( | ||||
|           (pages[1].widget.key as GlobalKey<AddAppPageState>?)?.currentState == | ||||
|               null) { | ||||
|         await Future.delayed(const Duration(microseconds: 1)); | ||||
|       } | ||||
|       (pages[1].widget.key as GlobalKey<AddAppPageState>?) | ||||
|           ?.currentState | ||||
|           ?.linkFn(data); | ||||
|     } | ||||
|  | ||||
|     interpretLink(Uri uri) async { | ||||
|       isLinkActivity = true; | ||||
|       var action = uri.host; | ||||
|       var data = uri.path.length > 1 ? uri.path.substring(1) : ""; | ||||
|       try { | ||||
|         if (action == 'add') { | ||||
|           await goToAddApp(data); | ||||
|         } else if (action == 'app') { | ||||
|           await context | ||||
|               .read<AppsProvider>() | ||||
|               .import('{ "apps": [${Uri.decodeComponent(data)}] }'); | ||||
|         } else if (action == 'apps') { | ||||
|           await context | ||||
|               .read<AppsProvider>() | ||||
|               .import('{ "apps": ${Uri.decodeComponent(data)} }'); | ||||
|         } else { | ||||
|           throw ObtainiumError(tr('unknown')); | ||||
|         } | ||||
|       } catch (e) { | ||||
|         showError(e, context); | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     // Check initial link if app was in cold state (terminated) | ||||
|     final appLink = await _appLinks.getInitialAppLink(); | ||||
|     if (appLink != null) { | ||||
|       await interpretLink(appLink); | ||||
|     } | ||||
|  | ||||
|     // Handle link when app is in warm state (front or background) | ||||
|     _linkSubscription = _appLinks.uriLinkStream.listen((uri) async { | ||||
|       await interpretLink(uri); | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   setIsReversing(int targetIndex) { | ||||
|     bool reversing = selectedIndexHistory.isNotEmpty && | ||||
|         selectedIndexHistory.last > targetIndex; | ||||
|     setState(() { | ||||
|       isReversing = reversing; | ||||
|     }); | ||||
|   } | ||||
|  | ||||
|   switchToPage(int index) async { | ||||
|     setIsReversing(index); | ||||
|     if (index == 0) { | ||||
|       while ((pages[0].widget.key as GlobalKey<AppsPageState>).currentState != | ||||
|           null) { | ||||
|         // Avoid duplicate GlobalKey error | ||||
|         await Future.delayed(const Duration(microseconds: 1)); | ||||
|       } | ||||
|       setState(() { | ||||
|         selectedIndexHistory.clear(); | ||||
|       }); | ||||
|     } else if (selectedIndexHistory.isEmpty || | ||||
|         (selectedIndexHistory.isNotEmpty && | ||||
|             selectedIndexHistory.last != index)) { | ||||
|       setState(() { | ||||
|         int existingInd = selectedIndexHistory.indexOf(index); | ||||
|         if (existingInd >= 0) { | ||||
|           selectedIndexHistory.removeAt(existingInd); | ||||
|         } | ||||
|         selectedIndexHistory.add(index); | ||||
|       }); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   @override | ||||
|   Widget build(BuildContext context) { | ||||
|     AppsProvider appsProvider = context.watch<AppsProvider>(); | ||||
|     SettingsProvider settingsProvider = context.watch<SettingsProvider>(); | ||||
|  | ||||
|     setIsReversing(int targetIndex) { | ||||
|       bool reversing = selectedIndexHistory.isNotEmpty && | ||||
|           selectedIndexHistory.last > targetIndex; | ||||
|       setState(() { | ||||
|         isReversing = reversing; | ||||
|       }); | ||||
|     } | ||||
|  | ||||
|     switchToPage(int index) async { | ||||
|       setIsReversing(index); | ||||
|       if (index == 0) { | ||||
|         while ((pages[0].widget.key as GlobalKey<AppsPageState>).currentState != | ||||
|             null) { | ||||
|           // Avoid duplicate GlobalKey error | ||||
|           await Future.delayed(const Duration(microseconds: 1)); | ||||
|         } | ||||
|         setState(() { | ||||
|           selectedIndexHistory.clear(); | ||||
|         }); | ||||
|       } else if (selectedIndexHistory.isEmpty || | ||||
|           (selectedIndexHistory.isNotEmpty && | ||||
|               selectedIndexHistory.last != index)) { | ||||
|         setState(() { | ||||
|           int existingInd = selectedIndexHistory.indexOf(index); | ||||
|           if (existingInd >= 0) { | ||||
|             selectedIndexHistory.removeAt(existingInd); | ||||
|           } | ||||
|           selectedIndexHistory.add(index); | ||||
|         }); | ||||
|       } | ||||
|     } | ||||
|  | ||||
|     if (!prevIsLoading && | ||||
|         prevAppCount >= 0 && | ||||
|         appsProvider.apps.length > prevAppCount && | ||||
|         selectedIndexHistory.isNotEmpty && | ||||
|         selectedIndexHistory.last == 1) { | ||||
|         selectedIndexHistory.last == 1 && | ||||
|         !isLinkActivity) { | ||||
|       switchToPage(0); | ||||
|     } | ||||
|     prevAppCount = appsProvider.apps.length; | ||||
| @@ -129,6 +194,11 @@ class _HomePageState extends State<HomePage> { | ||||
|           ), | ||||
|         ), | ||||
|         onWillPop: () async { | ||||
|           if (isLinkActivity && | ||||
|               selectedIndexHistory.length == 1 && | ||||
|               selectedIndexHistory.last == 1) { | ||||
|             return true; | ||||
|           } | ||||
|           setIsReversing(selectedIndexHistory.length >= 2 | ||||
|               ? selectedIndexHistory.reversed.toList()[1] | ||||
|               : 0); | ||||
| @@ -143,4 +213,10 @@ class _HomePageState extends State<HomePage> { | ||||
|               ?.clearSelected(); | ||||
|         }); | ||||
|   } | ||||
|  | ||||
|   @override | ||||
|   void dispose() { | ||||
|     super.dispose(); | ||||
|     _linkSubscription?.cancel(); | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -106,7 +106,7 @@ class _ImportExportPageState extends State<ImportExportPage> { | ||||
|     runObtainiumExport({bool pickOnly = false}) async { | ||||
|       HapticFeedback.selectionClick(); | ||||
|       appsProvider | ||||
|           .exportApps( | ||||
|           .export( | ||||
|               pickOnly: | ||||
|                   pickOnly || (await settingsProvider.getExportDir()) == null, | ||||
|               sp: settingsProvider) | ||||
| @@ -132,7 +132,7 @@ class _ImportExportPageState extends State<ImportExportPage> { | ||||
|           } catch (e) { | ||||
|             throw ObtainiumError(tr('invalidInput')); | ||||
|           } | ||||
|           appsProvider.importApps(data).then((value) { | ||||
|           appsProvider.import(data).then((value) { | ||||
|             var cats = settingsProvider.categories; | ||||
|             appsProvider.apps.forEach((key, value) { | ||||
|               for (var c in value.app.categories) { | ||||
| @@ -143,7 +143,10 @@ class _ImportExportPageState extends State<ImportExportPage> { | ||||
|             }); | ||||
|             appsProvider.addMissingCategories(settingsProvider); | ||||
|             showMessage( | ||||
|                 tr('importedX', args: [plural('apps', value)]), context); | ||||
|                 '${tr('importedX', args: [ | ||||
|                       plural('apps', value.key) | ||||
|                     ])}${value.value ? ' + ${tr('settings')}' : ''}', | ||||
|                 context); | ||||
|           }); | ||||
|         } else { | ||||
|           // User canceled the picker | ||||
| @@ -344,7 +347,8 @@ class _ImportExportPageState extends State<ImportExportPage> { | ||||
|                                         : () { | ||||
|                                             runObtainiumExport(pickOnly: true); | ||||
|                                           }, | ||||
|                                     child: Text(tr('pickExportDir')), | ||||
|                                     child: Text(tr('pickExportDir'), | ||||
|                                         textAlign: TextAlign.center), | ||||
|                                   )), | ||||
|                                   const SizedBox( | ||||
|                                     width: 16, | ||||
| @@ -357,7 +361,8 @@ class _ImportExportPageState extends State<ImportExportPage> { | ||||
|                                             snapshot.data == null | ||||
|                                         ? null | ||||
|                                         : runObtainiumExport, | ||||
|                                     child: Text(tr('obtainiumExport')), | ||||
|                                     child: Text(tr('obtainiumExport'), | ||||
|                                         textAlign: TextAlign.center), | ||||
|                                   )), | ||||
|                                 ], | ||||
|                               ), | ||||
| @@ -372,7 +377,8 @@ class _ImportExportPageState extends State<ImportExportPage> { | ||||
|                                           onPressed: importInProgress | ||||
|                                               ? null | ||||
|                                               : runObtainiumImport, | ||||
|                                           child: Text(tr('obtainiumImport')))), | ||||
|                                           child: Text(tr('obtainiumImport'), | ||||
|                                               textAlign: TextAlign.center))), | ||||
|                                 ], | ||||
|                               ), | ||||
|                               if (snapshot.data != null) | ||||
| @@ -388,6 +394,14 @@ class _ImportExportPageState extends State<ImportExportPage> { | ||||
|                                               defaultValue: settingsProvider | ||||
|                                                   .autoExportOnChanges, | ||||
|                                             ) | ||||
|                                           ], | ||||
|                                           [ | ||||
|                                             GeneratedFormSwitch( | ||||
|                                               'exportSettings', | ||||
|                                               label: tr('includeSettings'), | ||||
|                                               defaultValue: settingsProvider | ||||
|                                                   .exportSettings, | ||||
|                                             ) | ||||
|                                           ] | ||||
|                                         ], | ||||
|                                         onValueChanges: | ||||
| @@ -400,6 +414,12 @@ class _ImportExportPageState extends State<ImportExportPage> { | ||||
|                                                       'autoExportOnChanges'] == | ||||
|                                                   true; | ||||
|                                             } | ||||
|                                             if (value['exportSettings'] != | ||||
|                                                 null) { | ||||
|                                               settingsProvider.exportSettings = | ||||
|                                                   value['exportSettings'] == | ||||
|                                                       true; | ||||
|                                             } | ||||
|                                           } | ||||
|                                         }), | ||||
|                                   ], | ||||
|   | ||||
| @@ -974,7 +974,7 @@ class AppsProvider with ChangeNotifier { | ||||
|       } | ||||
|     } | ||||
|     notifyListeners(); | ||||
|     exportApps(isAuto: true); | ||||
|     export(isAuto: true); | ||||
|   } | ||||
|  | ||||
|   Future<void> removeApps(List<String> appIds) async { | ||||
| @@ -996,7 +996,7 @@ class AppsProvider with ChangeNotifier { | ||||
|     } | ||||
|     if (appIds.isNotEmpty) { | ||||
|       notifyListeners(); | ||||
|       exportApps(isAuto: true); | ||||
|       export(isAuto: true); | ||||
|     } | ||||
|   } | ||||
|  | ||||
| @@ -1173,7 +1173,7 @@ class AppsProvider with ChangeNotifier { | ||||
|     return updateAppIds; | ||||
|   } | ||||
|  | ||||
|   Future<String?> exportApps( | ||||
|   Future<String?> export( | ||||
|       {bool pickOnly = false, isAuto = false, SettingsProvider? sp}) async { | ||||
|     SettingsProvider settingsProvider = sp ?? this.settingsProvider; | ||||
|     var exportDir = await settingsProvider.getExportDir(); | ||||
| @@ -1203,12 +1203,22 @@ class AppsProvider with ChangeNotifier { | ||||
|     } | ||||
|     String? returnPath; | ||||
|     if (!pickOnly) { | ||||
|       Map<String, dynamic> finalExport = {}; | ||||
|       finalExport['apps'] = apps.values.map((e) => e.app.toJson()).toList(); | ||||
|       if (settingsProvider.exportSettings) { | ||||
|         finalExport['settings'] = Map<String, Object?>.fromEntries( | ||||
|             (settingsProvider.prefs | ||||
|                     ?.getKeys() | ||||
|                     .map((key) => | ||||
|                         MapEntry(key, settingsProvider.prefs?.get(key))) | ||||
|                     .toList()) ?? | ||||
|                 []); | ||||
|       } | ||||
|       var result = await saf.createFile(exportDir, | ||||
|           displayName: | ||||
|               '${tr('obtainiumExportHyphenatedLowercase')}-${DateTime.now().toIso8601String().replaceAll(':', '-')}${isAuto ? '-auto' : ''}.json', | ||||
|           mimeType: 'application/json', | ||||
|           bytes: Uint8List.fromList(utf8.encode( | ||||
|               jsonEncode(apps.values.map((e) => e.app.toJson()).toList())))); | ||||
|           bytes: Uint8List.fromList(utf8.encode(jsonEncode(finalExport)))); | ||||
|       if (result == null) { | ||||
|         throw ObtainiumError(tr('unexpectedError')); | ||||
|       } | ||||
| @@ -1218,10 +1228,13 @@ class AppsProvider with ChangeNotifier { | ||||
|     return returnPath; | ||||
|   } | ||||
|  | ||||
|   Future<int> importApps(String appsJSON) async { | ||||
|     List<App> importedApps = (jsonDecode(appsJSON) as List<dynamic>) | ||||
|         .map((e) => App.fromJson(e)) | ||||
|         .toList(); | ||||
|   Future<MapEntry<int, bool>> import(String appsJSON) async { | ||||
|     var decodedJSON = jsonDecode(appsJSON); | ||||
|     var newFormat = decodedJSON is! List; | ||||
|     List<App> importedApps = | ||||
|         ((newFormat ? decodedJSON['apps'] : decodedJSON) as List<dynamic>) | ||||
|             .map((e) => App.fromJson(e)) | ||||
|             .toList(); | ||||
|     while (loadingApps) { | ||||
|       await Future.delayed(const Duration(microseconds: 1)); | ||||
|     } | ||||
| @@ -1232,7 +1245,20 @@ class AppsProvider with ChangeNotifier { | ||||
|     } | ||||
|     await saveApps(importedApps, onlyIfExists: false); | ||||
|     notifyListeners(); | ||||
|     return importedApps.length; | ||||
|     if (newFormat && decodedJSON['settings'] != null) { | ||||
|       var settingsMap = decodedJSON['settings'] as Map<String, Object?>; | ||||
|       settingsMap.forEach((key, value) { | ||||
|         if (value is int) { | ||||
|           settingsProvider.prefs?.setInt(key, value); | ||||
|         } else if (value is bool) { | ||||
|           settingsProvider.prefs?.setBool(key, value); | ||||
|         } else { | ||||
|           settingsProvider.prefs?.setString(key, value as String); | ||||
|         } | ||||
|       }); | ||||
|     } | ||||
|     return MapEntry<int, bool>( | ||||
|         importedApps.length, newFormat && decodedJSON['settings'] != null); | ||||
|   } | ||||
|  | ||||
|   @override | ||||
|   | ||||
| @@ -213,7 +213,8 @@ class SettingsProvider with ChangeNotifier { | ||||
|   } | ||||
|  | ||||
|   String? getSettingString(String settingId) { | ||||
|     return prefs?.getString(settingId); | ||||
|     String? str = prefs?.getString(settingId); | ||||
|     return str?.isNotEmpty == true ? str : null; | ||||
|   } | ||||
|  | ||||
|   void setSettingString(String settingId, String value) { | ||||
| @@ -415,4 +416,13 @@ class SettingsProvider with ChangeNotifier { | ||||
|     prefs?.setBool('onlyCheckInstalledOrTrackOnlyApps', val); | ||||
|     notifyListeners(); | ||||
|   } | ||||
|  | ||||
|   bool get exportSettings { | ||||
|     return prefs?.getBool('exportSettings') ?? false; | ||||
|   } | ||||
|  | ||||
|   set exportSettings(bool val) { | ||||
|     prefs?.setBool('exportSettings', val); | ||||
|     notifyListeners(); | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -684,8 +684,9 @@ class SourceProvider { | ||||
|     name = name.isNotEmpty ? name : apk.names.name; | ||||
|     App finalApp = App( | ||||
|         currentApp?.id ?? | ||||
|             ((!source.appIdInferIsOptional || | ||||
|                     (source.appIdInferIsOptional && inferAppIdIfOptional)) | ||||
|             (!trackOnly && | ||||
|                     (!source.appIdInferIsOptional || | ||||
|                         (source.appIdInferIsOptional && inferAppIdIfOptional)) | ||||
|                 ? await source.tryInferringAppId(standardUrl, | ||||
|                     additionalSettings: additionalSettings) | ||||
|                 : null) ?? | ||||
| @@ -705,8 +706,9 @@ class SourceProvider { | ||||
|         changeLog: apk.changeLog, | ||||
|         overrideSource: overrideSource ?? currentApp?.overrideSource, | ||||
|         allowIdChange: currentApp?.allowIdChange ?? | ||||
|             source.appIdInferIsOptional && | ||||
|                 inferAppIdIfOptional // Optional ID inferring may be incorrect - allow correction on first install | ||||
|             trackOnly || | ||||
|                 (source.appIdInferIsOptional && | ||||
|                     inferAppIdIfOptional) // Optional ID inferring may be incorrect - allow correction on first install | ||||
|         ); | ||||
|     return source.endOfGetAppChanges(finalApp); | ||||
|   } | ||||
|   | ||||
							
								
								
									
										48
									
								
								pubspec.lock
									
									
									
									
									
								
							
							
						
						
									
										48
									
								
								pubspec.lock
									
									
									
									
									
								
							| @@ -42,6 +42,14 @@ packages: | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "2.0.10" | ||||
|   app_links: | ||||
|     dependency: "direct main" | ||||
|     description: | ||||
|       name: app_links | ||||
|       sha256: "4e392b5eba997df356ca6021f28431ce1cfeb16758699553a94b13add874a3bb" | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "3.5.0" | ||||
|   archive: | ||||
|     dependency: transitive | ||||
|     description: | ||||
| @@ -94,10 +102,10 @@ packages: | ||||
|     dependency: transitive | ||||
|     description: | ||||
|       name: cli_util | ||||
|       sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7 | ||||
|       sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "0.4.0" | ||||
|     version: "0.4.1" | ||||
|   clock: | ||||
|     dependency: transitive | ||||
|     description: | ||||
| @@ -350,6 +358,14 @@ packages: | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "8.2.4" | ||||
|   gtk: | ||||
|     dependency: transitive | ||||
|     description: | ||||
|       name: gtk | ||||
|       sha256: e8ce9ca4b1df106e4d72dad201d345ea1a036cc12c360f1a7d5a758f78ffa42c | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "2.1.0" | ||||
|   hsluv: | ||||
|     dependency: "direct main" | ||||
|     description: | ||||
| @@ -767,10 +783,10 @@ packages: | ||||
|     dependency: transitive | ||||
|     description: | ||||
|       name: synchronized | ||||
|       sha256: "5fcbd27688af6082f5abd611af56ee575342c30e87541d0245f7ff99faa02c60" | ||||
|       sha256: "539ef412b170d65ecdafd780f924e5be3f60032a1128df156adad6c5b373d558" | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "3.1.0" | ||||
|     version: "3.1.0+1" | ||||
|   term_glyph: | ||||
|     dependency: transitive | ||||
|     description: | ||||
| @@ -807,10 +823,10 @@ packages: | ||||
|     dependency: "direct main" | ||||
|     description: | ||||
|       name: url_launcher | ||||
|       sha256: b1c9e98774adf8820c96fbc7ae3601231d324a7d5ebd8babe27b6dfac91357ba | ||||
|       sha256: e9aa5ea75c84cf46b3db4eea212523591211c3cf2e13099ee4ec147f54201c86 | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "6.2.1" | ||||
|     version: "6.2.2" | ||||
|   url_launcher_android: | ||||
|     dependency: transitive | ||||
|     description: | ||||
| @@ -831,10 +847,10 @@ packages: | ||||
|     dependency: transitive | ||||
|     description: | ||||
|       name: url_launcher_linux | ||||
|       sha256: "9f2d390e096fdbe1e6e6256f97851e51afc2d9c423d3432f1d6a02a8a9a8b9fd" | ||||
|       sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811 | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "3.1.0" | ||||
|     version: "3.1.1" | ||||
|   url_launcher_macos: | ||||
|     dependency: transitive | ||||
|     description: | ||||
| @@ -855,26 +871,26 @@ packages: | ||||
|     dependency: transitive | ||||
|     description: | ||||
|       name: url_launcher_web | ||||
|       sha256: "138bd45b3a456dcfafc46d1a146787424f8d2edfbf2809c9324361e58f851cf7" | ||||
|       sha256: "7286aec002c8feecc338cc33269e96b73955ab227456e9fb2a91f7fab8a358e9" | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "2.2.1" | ||||
|     version: "2.2.2" | ||||
|   url_launcher_windows: | ||||
|     dependency: transitive | ||||
|     description: | ||||
|       name: url_launcher_windows | ||||
|       sha256: "7754a1ad30ee896b265f8d14078b0513a4dba28d358eabb9d5f339886f4a1adc" | ||||
|       sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7 | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "3.1.0" | ||||
|     version: "3.1.1" | ||||
|   uuid: | ||||
|     dependency: transitive | ||||
|     description: | ||||
|       name: uuid | ||||
|       sha256: df5a4d8f22ee4ccd77f8839ac7cb274ebc11ef9adcce8b92be14b797fe889921 | ||||
|       sha256: "22c94e5ad1e75f9934b766b53c742572ee2677c56bc871d850a57dad0f82127f" | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "4.2.1" | ||||
|     version: "4.2.2" | ||||
|   vector_math: | ||||
|     dependency: transitive | ||||
|     description: | ||||
| @@ -903,10 +919,10 @@ packages: | ||||
|     dependency: transitive | ||||
|     description: | ||||
|       name: webview_flutter_android | ||||
|       sha256: "8326ee235f87605a2bfc444a4abc897f4abc78d83f054ba7d3d1074ce82b4fbf" | ||||
|       sha256: e313dcdf45d4c95bcb8960351ef2389b7f0687b90bc92483f7f7983ae5758456 | ||||
|       url: "https://pub.dev" | ||||
|     source: hosted | ||||
|     version: "3.12.1" | ||||
|     version: "3.13.0" | ||||
|   webview_flutter_platform_interface: | ||||
|     dependency: transitive | ||||
|     description: | ||||
|   | ||||
| @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev | ||||
| # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html | ||||
| # 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.14.36+230 # When changing this, update the tag in main() accordingly | ||||
| version: 0.14.38+232 # When changing this, update the tag in main() accordingly | ||||
|  | ||||
| environment: | ||||
|   sdk: '>=3.0.0 <4.0.0' | ||||
| @@ -67,6 +67,7 @@ dependencies: | ||||
|   connectivity_plus: ^5.0.0 | ||||
|   shared_storage: ^0.8.0 | ||||
|   crypto: ^3.0.3 | ||||
|   app_links: ^3.5.0 | ||||
|  | ||||
| dev_dependencies: | ||||
|   flutter_test: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user