use mozilla stable builds again
This commit is contained in:
@@ -3,7 +3,7 @@ version = "1.0-SNAPSHOT"
|
|||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = "2.1.20"
|
ext.kotlin_version = "2.1.20"
|
||||||
ext.mozillaComponentsVersion = '141.0b5'
|
ext.mozillaComponentsVersion = '140.0.3'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|||||||
+1
-1
@@ -58,5 +58,5 @@ class Components(private val context: Context,
|
|||||||
|
|
||||||
val dateTimeProvider: DateTimeProvider by lazy { DefaultDateTimeProvider() }
|
val dateTimeProvider: DateTimeProvider by lazy { DefaultDateTimeProvider() }
|
||||||
|
|
||||||
val downloadEstimator: DownloadEstimator by lazy { DownloadEstimator(dateTimeProvider = dateTimeProvider) }
|
//val downloadEstimator: DownloadEstimator by lazy { DownloadEstimator(dateTimeProvider = dateTimeProvider) }
|
||||||
}
|
}
|
||||||
+5
-3
@@ -165,9 +165,10 @@ class WebExtensionPromptFeature(
|
|||||||
addon = addon,
|
addon = addon,
|
||||||
permissions = permissions,
|
permissions = permissions,
|
||||||
origins = origins,
|
origins = origins,
|
||||||
dataCollectionPermissions = emptyList(),
|
// dataCollectionPermissions = emptyList(),
|
||||||
forOptionalPermissions = forOptionalPermissions,
|
forOptionalPermissions = forOptionalPermissions,
|
||||||
onPositiveButtonClicked = { _, privateBrowsingAllowed, _ ->
|
// onPositiveButtonClicked = { _, privateBrowsingAllowed, _ ->
|
||||||
|
onPositiveButtonClicked = { _, privateBrowsingAllowed, ->
|
||||||
handlePermissions(
|
handlePermissions(
|
||||||
promptRequest,
|
promptRequest,
|
||||||
granted = true,
|
granted = true,
|
||||||
@@ -196,7 +197,8 @@ class WebExtensionPromptFeature(
|
|||||||
|
|
||||||
private fun tryToReAttachButtonHandlersToPreviousDialog() {
|
private fun tryToReAttachButtonHandlersToPreviousDialog() {
|
||||||
findPreviousDialogFragment()?.let { dialog ->
|
findPreviousDialogFragment()?.let { dialog ->
|
||||||
dialog.onPositiveButtonClicked = { addon, privateBrowsingAllowed, _ ->
|
// dialog.onPositiveButtonClicked = { addon, privateBrowsingAllowed, _ ->
|
||||||
|
dialog.onPositiveButtonClicked = { addon, privateBrowsingAllowed ->
|
||||||
store.state.webExtensionPromptRequest?.let { promptRequest ->
|
store.state.webExtensionPromptRequest?.let { promptRequest ->
|
||||||
if (promptRequest is WebExtensionPromptRequest.AfterInstallation.Permissions &&
|
if (promptRequest is WebExtensionPromptRequest.AfterInstallation.Permissions &&
|
||||||
addon.id == promptRequest.extension.id
|
addon.id == promptRequest.extension.id
|
||||||
|
|||||||
+3
-1
@@ -9,6 +9,7 @@ package eu.weblibre.flutter_mozilla_components.services
|
|||||||
import eu.weblibre.flutter_mozilla_components.GlobalComponents
|
import eu.weblibre.flutter_mozilla_components.GlobalComponents
|
||||||
import mozilla.components.browser.state.store.BrowserStore
|
import mozilla.components.browser.state.store.BrowserStore
|
||||||
import mozilla.components.feature.downloads.AbstractFetchDownloadService
|
import mozilla.components.feature.downloads.AbstractFetchDownloadService
|
||||||
|
import mozilla.components.feature.downloads.DateTimeProvider
|
||||||
import mozilla.components.feature.downloads.DownloadEstimator
|
import mozilla.components.feature.downloads.DownloadEstimator
|
||||||
import mozilla.components.feature.downloads.FileSizeFormatter
|
import mozilla.components.feature.downloads.FileSizeFormatter
|
||||||
import mozilla.components.support.base.android.NotificationsDelegate
|
import mozilla.components.support.base.android.NotificationsDelegate
|
||||||
@@ -21,6 +22,7 @@ class DownloadService : AbstractFetchDownloadService() {
|
|||||||
override val httpClient by lazy { components.core.client }
|
override val httpClient by lazy { components.core.client }
|
||||||
override val store: BrowserStore by lazy { components.core.store }
|
override val store: BrowserStore by lazy { components.core.store }
|
||||||
override val notificationsDelegate: NotificationsDelegate by lazy { components.notificationsDelegate }
|
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 fileSizeFormatter: FileSizeFormatter by lazy { components.fileSizeFormatter }
|
||||||
override val downloadEstimator: DownloadEstimator by lazy { components.downloadEstimator }
|
//override val downloadEstimator: DownloadEstimator by lazy { components.downloadEstimator }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user