mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-17 15:26:23 +00:00
[fenix] Update Android Components version to 71.0.20210117143132.
This commit is contained in:
parent
f14cc65106
commit
0dc93ba95f
@ -73,6 +73,7 @@ class Components(private val context: Context) {
|
|||||||
core.store,
|
core.store,
|
||||||
useCases.sessionUseCases,
|
useCases.sessionUseCases,
|
||||||
useCases.tabsUseCases,
|
useCases.tabsUseCases,
|
||||||
|
useCases.customTabsUseCases,
|
||||||
useCases.searchUseCases,
|
useCases.searchUseCases,
|
||||||
core.relationChecker,
|
core.relationChecker,
|
||||||
core.customTabsStore,
|
core.customTabsStore,
|
||||||
|
@ -15,6 +15,7 @@ import mozilla.components.feature.pwa.intent.TrustedWebActivityIntentProcessor
|
|||||||
import mozilla.components.feature.pwa.intent.WebAppIntentProcessor
|
import mozilla.components.feature.pwa.intent.WebAppIntentProcessor
|
||||||
import mozilla.components.feature.search.SearchUseCases
|
import mozilla.components.feature.search.SearchUseCases
|
||||||
import mozilla.components.feature.session.SessionUseCases
|
import mozilla.components.feature.session.SessionUseCases
|
||||||
|
import mozilla.components.feature.tabs.CustomTabsUseCases
|
||||||
import mozilla.components.feature.tabs.TabsUseCases
|
import mozilla.components.feature.tabs.TabsUseCases
|
||||||
import mozilla.components.service.digitalassetlinks.RelationChecker
|
import mozilla.components.service.digitalassetlinks.RelationChecker
|
||||||
import mozilla.components.support.migration.MigrationIntentProcessor
|
import mozilla.components.support.migration.MigrationIntentProcessor
|
||||||
@ -35,6 +36,7 @@ class IntentProcessors(
|
|||||||
private val store: BrowserStore,
|
private val store: BrowserStore,
|
||||||
private val sessionUseCases: SessionUseCases,
|
private val sessionUseCases: SessionUseCases,
|
||||||
private val tabsUseCases: TabsUseCases,
|
private val tabsUseCases: TabsUseCases,
|
||||||
|
private val customTabsUseCases: CustomTabsUseCases,
|
||||||
private val searchUseCases: SearchUseCases,
|
private val searchUseCases: SearchUseCases,
|
||||||
private val relationChecker: RelationChecker,
|
private val relationChecker: RelationChecker,
|
||||||
private val customTabsStore: CustomTabsServiceStore,
|
private val customTabsStore: CustomTabsServiceStore,
|
||||||
@ -56,11 +58,11 @@ class IntentProcessors(
|
|||||||
}
|
}
|
||||||
|
|
||||||
val customTabIntentProcessor by lazyMonitored {
|
val customTabIntentProcessor by lazyMonitored {
|
||||||
CustomTabIntentProcessor(sessionManager, sessionUseCases.loadUrl, context.resources, isPrivate = false)
|
CustomTabIntentProcessor(customTabsUseCases.add, context.resources, isPrivate = false)
|
||||||
}
|
}
|
||||||
|
|
||||||
val privateCustomTabIntentProcessor by lazyMonitored {
|
val privateCustomTabIntentProcessor by lazyMonitored {
|
||||||
CustomTabIntentProcessor(sessionManager, sessionUseCases.loadUrl, context.resources, isPrivate = true)
|
CustomTabIntentProcessor(customTabsUseCases.add, context.resources, isPrivate = true)
|
||||||
}
|
}
|
||||||
|
|
||||||
val externalAppIntentProcessors by lazyMonitored {
|
val externalAppIntentProcessors by lazyMonitored {
|
||||||
|
@ -18,6 +18,7 @@ import mozilla.components.feature.search.ext.toDefaultSearchEngineProvider
|
|||||||
import mozilla.components.feature.session.SessionUseCases
|
import mozilla.components.feature.session.SessionUseCases
|
||||||
import mozilla.components.feature.session.SettingsUseCases
|
import mozilla.components.feature.session.SettingsUseCases
|
||||||
import mozilla.components.feature.session.TrackingProtectionUseCases
|
import mozilla.components.feature.session.TrackingProtectionUseCases
|
||||||
|
import mozilla.components.feature.tabs.CustomTabsUseCases
|
||||||
import mozilla.components.feature.tabs.TabsUseCases
|
import mozilla.components.feature.tabs.TabsUseCases
|
||||||
import mozilla.components.feature.top.sites.TopSitesStorage
|
import mozilla.components.feature.top.sites.TopSitesStorage
|
||||||
import mozilla.components.feature.top.sites.TopSitesUseCases
|
import mozilla.components.feature.top.sites.TopSitesUseCases
|
||||||
@ -48,6 +49,13 @@ class UseCases(
|
|||||||
*/
|
*/
|
||||||
val tabsUseCases: TabsUseCases by lazyMonitored { TabsUseCases(store, sessionManager) }
|
val tabsUseCases: TabsUseCases by lazyMonitored { TabsUseCases(store, sessionManager) }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Use cases for managing custom tabs.
|
||||||
|
*/
|
||||||
|
val customTabsUseCases: CustomTabsUseCases by lazyMonitored {
|
||||||
|
CustomTabsUseCases(sessionManager, sessionUseCases.loadUrl)
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Use cases that provide search engine integration.
|
* Use cases that provide search engine integration.
|
||||||
*/
|
*/
|
||||||
|
@ -11,6 +11,7 @@ import mozilla.components.browser.state.store.BrowserStore
|
|||||||
import mozilla.components.browser.toolbar.BrowserToolbar
|
import mozilla.components.browser.toolbar.BrowserToolbar
|
||||||
import mozilla.components.browser.toolbar.display.DisplayToolbar
|
import mozilla.components.browser.toolbar.display.DisplayToolbar
|
||||||
import mozilla.components.feature.customtabs.CustomTabsToolbarFeature
|
import mozilla.components.feature.customtabs.CustomTabsToolbarFeature
|
||||||
|
import mozilla.components.feature.tabs.CustomTabsUseCases
|
||||||
import mozilla.components.support.base.feature.LifecycleAwareFeature
|
import mozilla.components.support.base.feature.LifecycleAwareFeature
|
||||||
import mozilla.components.support.base.feature.UserInteractionHandler
|
import mozilla.components.support.base.feature.UserInteractionHandler
|
||||||
import org.mozilla.fenix.R
|
import org.mozilla.fenix.R
|
||||||
@ -20,6 +21,7 @@ import org.mozilla.fenix.ext.settings
|
|||||||
class CustomTabsIntegration(
|
class CustomTabsIntegration(
|
||||||
sessionManager: SessionManager,
|
sessionManager: SessionManager,
|
||||||
store: BrowserStore,
|
store: BrowserStore,
|
||||||
|
useCases: CustomTabsUseCases,
|
||||||
toolbar: BrowserToolbar,
|
toolbar: BrowserToolbar,
|
||||||
sessionId: String,
|
sessionId: String,
|
||||||
activity: Activity,
|
activity: Activity,
|
||||||
@ -84,9 +86,10 @@ class CustomTabsIntegration(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private val feature = CustomTabsToolbarFeature(
|
private val feature = CustomTabsToolbarFeature(
|
||||||
sessionManager,
|
store,
|
||||||
toolbar,
|
toolbar,
|
||||||
sessionId,
|
sessionId,
|
||||||
|
useCases,
|
||||||
menuBuilder = customTabToolbarMenu.menuBuilder,
|
menuBuilder = customTabToolbarMenu.menuBuilder,
|
||||||
menuItemIndex = START_OF_MENU_ITEMS_INDEX,
|
menuItemIndex = START_OF_MENU_ITEMS_INDEX,
|
||||||
window = activity.window,
|
window = activity.window,
|
||||||
|
@ -66,6 +66,7 @@ class ExternalAppBrowserFragment : BaseBrowserFragment(), UserInteractionHandler
|
|||||||
feature = CustomTabsIntegration(
|
feature = CustomTabsIntegration(
|
||||||
sessionManager = requireComponents.core.sessionManager,
|
sessionManager = requireComponents.core.sessionManager,
|
||||||
store = requireComponents.core.store,
|
store = requireComponents.core.store,
|
||||||
|
useCases = requireComponents.useCases.customTabsUseCases,
|
||||||
toolbar = toolbar,
|
toolbar = toolbar,
|
||||||
sessionId = customTabSessionId,
|
sessionId = customTabSessionId,
|
||||||
activity = activity,
|
activity = activity,
|
||||||
|
@ -3,5 +3,5 @@
|
|||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
object AndroidComponents {
|
object AndroidComponents {
|
||||||
const val VERSION = "71.0.20210114143040"
|
const val VERSION = "71.0.20210117143132"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user