update deps

This commit is contained in:
Fabian Freund
2025-06-24 15:16:58 +02:00
parent 6dd75411a6
commit b798c4f471
6 changed files with 14 additions and 5 deletions
@@ -3,7 +3,7 @@ version = "1.0-SNAPSHOT"
buildscript {
ext.kotlin_version = "2.1.20"
ext.mozillaComponentsVersion = '139.0.4'
ext.mozillaComponentsVersion = '141.0b1'
repositories {
google()
@@ -16,7 +16,10 @@ import eu.weblibre.flutter_mozilla_components.pigeons.GeckoTabContentEvents
import eu.weblibre.flutter_mozilla_components.pigeons.ReaderViewController
import mozilla.components.concept.engine.EngineView
import mozilla.components.concept.engine.selection.SelectionActionDelegate
import mozilla.components.feature.downloads.DateTimeProvider
import mozilla.components.feature.downloads.DefaultDateTimeProvider
import mozilla.components.feature.downloads.DefaultFileSizeFormatter
import mozilla.components.feature.downloads.DownloadEstimator
import mozilla.components.feature.downloads.FileSizeFormatter
import mozilla.components.support.base.android.NotificationsDelegate
@@ -46,4 +49,8 @@ class Components(private val context: Context,
}
val fileSizeFormatter: FileSizeFormatter by lazy { DefaultFileSizeFormatter(context) }
val dateTimeProvider: DateTimeProvider by lazy { DefaultDateTimeProvider() }
val downloadEstimator: DownloadEstimator by lazy { DownloadEstimator(dateTimeProvider = dateTimeProvider) }
}
@@ -165,8 +165,9 @@ class WebExtensionPromptFeature(
addon = addon,
permissions = permissions,
origins = origins,
dataCollectionPermissions = emptyList(),
forOptionalPermissions = forOptionalPermissions,
onPositiveButtonClicked = { _, privateBrowsingAllowed ->
onPositiveButtonClicked = { _, privateBrowsingAllowed, _ ->
handlePermissions(
promptRequest,
granted = true,
@@ -195,7 +196,7 @@ class WebExtensionPromptFeature(
private fun tryToReAttachButtonHandlersToPreviousDialog() {
findPreviousDialogFragment()?.let { dialog ->
dialog.onPositiveButtonClicked = { addon, privateBrowsingAllowed ->
dialog.onPositiveButtonClicked = { addon, privateBrowsingAllowed, _ ->
store.state.webExtensionPromptRequest?.let { promptRequest ->
if (promptRequest is WebExtensionPromptRequest.AfterInstallation.Permissions &&
addon.id == promptRequest.extension.id
@@ -23,7 +23,6 @@ class Services(
val appLinksInterceptor by lazy {
AppLinksInterceptor(
context,
interceptLinkClicks = true,
launchInApp = {
prefs.getBoolean(context.getPreferenceKey(R.string.pref_key_launch_external_app), false)
},
@@ -3,6 +3,7 @@ package eu.weblibre.flutter_mozilla_components.services
import eu.weblibre.flutter_mozilla_components.GlobalComponents
import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.feature.downloads.AbstractFetchDownloadService
import mozilla.components.feature.downloads.DownloadEstimator
import mozilla.components.feature.downloads.FileSizeFormatter
import mozilla.components.support.base.android.NotificationsDelegate
@@ -15,4 +16,5 @@ class DownloadService : AbstractFetchDownloadService() {
override val store: BrowserStore by lazy { components.core.store }
override val notificationsDelegate: NotificationsDelegate by lazy { components.notificationsDelegate }
override val fileSizeFormatter: FileSizeFormatter by lazy { components.fileSizeFormatter }
override val downloadEstimator: DownloadEstimator by lazy { components.downloadEstimator }
}