use mozilla stable builds again

This commit is contained in:
Fabian Freund
2025-07-06 12:36:20 +02:00
parent cc921d7de1
commit cb0c54ee08
4 changed files with 10 additions and 6 deletions
@@ -3,7 +3,7 @@ version = "1.0-SNAPSHOT"
buildscript {
ext.kotlin_version = "2.1.20"
ext.mozillaComponentsVersion = '141.0b5'
ext.mozillaComponentsVersion = '140.0.3'
repositories {
google()
@@ -58,5 +58,5 @@ class Components(private val context: Context,
val dateTimeProvider: DateTimeProvider by lazy { DefaultDateTimeProvider() }
val downloadEstimator: DownloadEstimator by lazy { DownloadEstimator(dateTimeProvider = dateTimeProvider) }
//val downloadEstimator: DownloadEstimator by lazy { DownloadEstimator(dateTimeProvider = dateTimeProvider) }
}
@@ -165,9 +165,10 @@ class WebExtensionPromptFeature(
addon = addon,
permissions = permissions,
origins = origins,
dataCollectionPermissions = emptyList(),
// dataCollectionPermissions = emptyList(),
forOptionalPermissions = forOptionalPermissions,
onPositiveButtonClicked = { _, privateBrowsingAllowed, _ ->
// onPositiveButtonClicked = { _, privateBrowsingAllowed, _ ->
onPositiveButtonClicked = { _, privateBrowsingAllowed, ->
handlePermissions(
promptRequest,
granted = true,
@@ -196,7 +197,8 @@ class WebExtensionPromptFeature(
private fun tryToReAttachButtonHandlersToPreviousDialog() {
findPreviousDialogFragment()?.let { dialog ->
dialog.onPositiveButtonClicked = { addon, privateBrowsingAllowed, _ ->
// dialog.onPositiveButtonClicked = { addon, privateBrowsingAllowed, _ ->
dialog.onPositiveButtonClicked = { addon, privateBrowsingAllowed ->
store.state.webExtensionPromptRequest?.let { promptRequest ->
if (promptRequest is WebExtensionPromptRequest.AfterInstallation.Permissions &&
addon.id == promptRequest.extension.id
@@ -9,6 +9,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.DateTimeProvider
import mozilla.components.feature.downloads.DownloadEstimator
import mozilla.components.feature.downloads.FileSizeFormatter
import mozilla.components.support.base.android.NotificationsDelegate
@@ -21,6 +22,7 @@ class DownloadService : AbstractFetchDownloadService() {
override val httpClient by lazy { components.core.client }
override val store: BrowserStore by lazy { components.core.store }
override val notificationsDelegate: NotificationsDelegate by lazy { components.notificationsDelegate }
override val dateTimeProvider: DateTimeProvider by lazy { components.dateTimeProvider }
override val fileSizeFormatter: FileSizeFormatter by lazy { components.fileSizeFormatter }
override val downloadEstimator: DownloadEstimator by lazy { components.downloadEstimator }
//override val downloadEstimator: DownloadEstimator by lazy { components.downloadEstimator }
}