fix some stuff
This commit is contained in:
@@ -109,10 +109,6 @@ dependencies {
|
||||
implementation "org.mozilla.components:support-ktx:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:support-webextensions:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:support-locale:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:lib-fetch-httpurlconnection:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:lib-crash:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:lib-publicsuffixlist:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:lib-dataprotect:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:concept-engine:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:concept-fetch:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:concept-toolbar:$mozillaComponentsVersion"
|
||||
@@ -125,8 +121,8 @@ dependencies {
|
||||
implementation "org.mozilla.components:browser-thumbnails:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-addons:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-app-links:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-autofill:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-awesomebar:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-customtabs:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-downloads:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-media:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-tabs:$mozillaComponentsVersion"
|
||||
@@ -137,7 +133,6 @@ dependencies {
|
||||
implementation "org.mozilla.components:feature-sitepermissions:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-webcompat:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:feature-webnotifications:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:service-digitalassetlinks:$mozillaComponentsVersion"
|
||||
implementation "org.mozilla.components:ui-widgets:$mozillaComponentsVersion"
|
||||
|
||||
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
|
||||
|
||||
+6
@@ -31,6 +31,7 @@ import mozilla.components.feature.addons.AddonManager
|
||||
import mozilla.components.feature.addons.amo.AMOAddonsProvider
|
||||
import mozilla.components.feature.addons.migration.DefaultSupportedAddonsChecker
|
||||
import mozilla.components.feature.addons.update.DefaultAddonUpdater
|
||||
import mozilla.components.feature.customtabs.store.CustomTabsServiceStore
|
||||
import mozilla.components.feature.downloads.DownloadMiddleware
|
||||
import mozilla.components.feature.media.MediaSessionFeature
|
||||
import mozilla.components.feature.media.middleware.RecordingDevicesMiddleware
|
||||
@@ -155,6 +156,11 @@ class Core(private val context: Context,
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The [CustomTabsServiceStore] holds global custom tabs related data.
|
||||
*/
|
||||
val customTabsStore by lazy { CustomTabsServiceStore() }
|
||||
|
||||
/**
|
||||
* The storage component for persisting browser tab sessions.
|
||||
*/
|
||||
|
||||
+3
-1
@@ -1,4 +1,4 @@
|
||||
// Autogenerated from Pigeon (v22.6.0), do not edit directly.
|
||||
// Autogenerated from Pigeon (v22.7.0), do not edit directly.
|
||||
// See also: https://pub.dev/packages/pigeon
|
||||
@file:Suppress("UNCHECKED_CAST", "ArrayInDataClass")
|
||||
|
||||
@@ -7,7 +7,9 @@ package eu.lensai.flutter_mozilla_components.pigeons
|
||||
import android.util.Log
|
||||
import io.flutter.plugin.common.BasicMessageChannel
|
||||
import io.flutter.plugin.common.BinaryMessenger
|
||||
import io.flutter.plugin.common.EventChannel
|
||||
import io.flutter.plugin.common.MessageCodec
|
||||
import io.flutter.plugin.common.StandardMethodCodec
|
||||
import io.flutter.plugin.common.StandardMessageCodec
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.nio.ByteBuffer
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package eu.lensai.flutter_mozilla_components.services
|
||||
|
||||
import eu.lensai.flutter_mozilla_components.GlobalComponents
|
||||
import mozilla.components.concept.engine.Engine
|
||||
import mozilla.components.feature.customtabs.AbstractCustomTabsService
|
||||
import mozilla.components.feature.customtabs.store.CustomTabsServiceStore
|
||||
|
||||
class CustomTabsService : AbstractCustomTabsService() {
|
||||
private val components by lazy {
|
||||
requireNotNull(GlobalComponents.components) { "Components not initialized" }
|
||||
}
|
||||
|
||||
override val customTabsServiceStore: CustomTabsServiceStore by lazy { components.core.customTabsStore }
|
||||
override val engine: Engine by lazy { components.core.engine }
|
||||
}
|
||||
Reference in New Issue
Block a user