update deps
This commit is contained in:
@@ -18,7 +18,7 @@ pluginManagement {
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
|
||||||
id "com.android.application" version '8.10.0' apply false
|
id "com.android.application" version '8.10.1' apply false
|
||||||
id "org.jetbrains.kotlin.android" version "2.1.20" apply false
|
id "org.jetbrains.kotlin.android" version "2.1.20" apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ version = "1.0-SNAPSHOT"
|
|||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = "2.1.20"
|
ext.kotlin_version = "2.1.20"
|
||||||
ext.mozillaComponentsVersion = '139.0.4'
|
ext.mozillaComponentsVersion = '141.0b1'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
|||||||
+7
@@ -16,7 +16,10 @@ import eu.weblibre.flutter_mozilla_components.pigeons.GeckoTabContentEvents
|
|||||||
import eu.weblibre.flutter_mozilla_components.pigeons.ReaderViewController
|
import eu.weblibre.flutter_mozilla_components.pigeons.ReaderViewController
|
||||||
import mozilla.components.concept.engine.EngineView
|
import mozilla.components.concept.engine.EngineView
|
||||||
import mozilla.components.concept.engine.selection.SelectionActionDelegate
|
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.DefaultFileSizeFormatter
|
||||||
|
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
|
||||||
|
|
||||||
@@ -46,4 +49,8 @@ class Components(private val context: Context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
val fileSizeFormatter: FileSizeFormatter by lazy { DefaultFileSizeFormatter(context) }
|
val fileSizeFormatter: FileSizeFormatter by lazy { DefaultFileSizeFormatter(context) }
|
||||||
|
|
||||||
|
val dateTimeProvider: DateTimeProvider by lazy { DefaultDateTimeProvider() }
|
||||||
|
|
||||||
|
val downloadEstimator: DownloadEstimator by lazy { DownloadEstimator(dateTimeProvider = dateTimeProvider) }
|
||||||
}
|
}
|
||||||
+3
-2
@@ -165,8 +165,9 @@ class WebExtensionPromptFeature(
|
|||||||
addon = addon,
|
addon = addon,
|
||||||
permissions = permissions,
|
permissions = permissions,
|
||||||
origins = origins,
|
origins = origins,
|
||||||
|
dataCollectionPermissions = emptyList(),
|
||||||
forOptionalPermissions = forOptionalPermissions,
|
forOptionalPermissions = forOptionalPermissions,
|
||||||
onPositiveButtonClicked = { _, privateBrowsingAllowed ->
|
onPositiveButtonClicked = { _, privateBrowsingAllowed, _ ->
|
||||||
handlePermissions(
|
handlePermissions(
|
||||||
promptRequest,
|
promptRequest,
|
||||||
granted = true,
|
granted = true,
|
||||||
@@ -195,7 +196,7 @@ class WebExtensionPromptFeature(
|
|||||||
|
|
||||||
private fun tryToReAttachButtonHandlersToPreviousDialog() {
|
private fun tryToReAttachButtonHandlersToPreviousDialog() {
|
||||||
findPreviousDialogFragment()?.let { dialog ->
|
findPreviousDialogFragment()?.let { dialog ->
|
||||||
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
|
||||||
|
|||||||
-1
@@ -23,7 +23,6 @@ class Services(
|
|||||||
val appLinksInterceptor by lazy {
|
val appLinksInterceptor by lazy {
|
||||||
AppLinksInterceptor(
|
AppLinksInterceptor(
|
||||||
context,
|
context,
|
||||||
interceptLinkClicks = true,
|
|
||||||
launchInApp = {
|
launchInApp = {
|
||||||
prefs.getBoolean(context.getPreferenceKey(R.string.pref_key_launch_external_app), false)
|
prefs.getBoolean(context.getPreferenceKey(R.string.pref_key_launch_external_app), false)
|
||||||
},
|
},
|
||||||
|
|||||||
+2
@@ -3,6 +3,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.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
|
||||||
|
|
||||||
@@ -15,4 +16,5 @@ class DownloadService : AbstractFetchDownloadService() {
|
|||||||
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 fileSizeFormatter: FileSizeFormatter by lazy { components.fileSizeFormatter }
|
override val fileSizeFormatter: FileSizeFormatter by lazy { components.fileSizeFormatter }
|
||||||
|
override val downloadEstimator: DownloadEstimator by lazy { components.downloadEstimator }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user