fix some stuff
This commit is contained in:
+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