Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Updates AC to 49.0.20200702190156 and fixes breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ekager committed Jul 3, 2020
1 parent 8533d96 commit f863c34
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ object GeckoProvider {
}

val geckoRuntime = GeckoRuntime.create(context, runtimeSettings)
val loginStorageDelegate = GeckoLoginStorageDelegate(storage, { true })
val loginStorageDelegate = GeckoLoginStorageDelegate(storage)
geckoRuntime.loginStorageDelegate = GeckoLoginDelegateWrapper(loginStorageDelegate)

return geckoRuntime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ object GeckoProvider {
}

val geckoRuntime = GeckoRuntime.create(context, runtimeSettings)
val loginStorageDelegate = GeckoLoginStorageDelegate(storage, { true })
val loginStorageDelegate = GeckoLoginStorageDelegate(storage)
geckoRuntime.loginStorageDelegate = GeckoLoginDelegateWrapper(loginStorageDelegate)

return geckoRuntime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,9 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session

sessionFeature.set(
feature = SessionFeature(
sessionManager,
SessionUseCases(sessionManager),
requireComponents.core.store,
requireComponents.useCases.sessionUseCases.goBack,
requireComponents.useCases.engineSessionUseCases,
view.engineView,
customTabSessionId
),
Expand Down Expand Up @@ -517,7 +518,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session

fullScreenFeature.set(
feature = FullScreenFeature(
sessionManager,
requireComponents.core.store,
SessionUseCases(sessionManager),
customTabSessionId,
::viewportFitChange,
Expand Down Expand Up @@ -563,7 +564,7 @@ abstract class BaseBrowserFragment : Fragment(), UserInteractionHandler, Session
view.swipeRefresh.setColorSchemeColors(primaryTextColor)
swipeRefreshFeature.set(
feature = SwipeRefreshFeature(
sessionManager,
requireComponents.core.store,
context.components.useCases.sessionUseCases.reload,
view.swipeRefresh,
customTabSessionId
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/org/mozilla/fenix/components/Components.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class Components(private val context: Context) {
core.sessionManager,
core.store,
search.searchEngineManager,
core.webAppShortcutManager,
core.thumbnailStorage
core.webAppShortcutManager
)
}
val intentProcessors by lazy {
Expand Down
9 changes: 5 additions & 4 deletions app/src/main/java/org/mozilla/fenix/components/UseCases.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package org.mozilla.fenix.components
import android.content.Context
import mozilla.components.browser.search.SearchEngineManager
import mozilla.components.browser.session.SessionManager
import mozilla.components.browser.session.usecases.EngineSessionUseCases
import mozilla.components.browser.state.store.BrowserStore
import mozilla.components.browser.thumbnails.storage.ThumbnailStorage
import mozilla.components.concept.engine.Engine
import mozilla.components.feature.app.links.AppLinksUseCases
import mozilla.components.feature.contextmenu.ContextMenuUseCases
Expand All @@ -32,8 +32,7 @@ class UseCases(
private val sessionManager: SessionManager,
private val store: BrowserStore,
private val searchEngineManager: SearchEngineManager,
private val shortcutManager: WebAppShortcutManager,
private val thumbnailStorage: ThumbnailStorage
private val shortcutManager: WebAppShortcutManager
) {
/**
* Use cases that provide engine interactions for a given browser session.
Expand All @@ -53,7 +52,7 @@ class UseCases(
/**
* Use cases that provide settings management.
*/
val settingsUseCases by lazy { SettingsUseCases(engine, sessionManager) }
val settingsUseCases by lazy { SettingsUseCases(engine, store) }

val appLinksUseCases by lazy { AppLinksUseCases(context.applicationContext) }

Expand All @@ -64,4 +63,6 @@ class UseCases(
val downloadUseCases by lazy { DownloadsUseCases(store) }

val contextMenuUseCases by lazy { ContextMenuUseCases(sessionManager, store) }

val engineSessionUseCases by lazy { EngineSessionUseCases(sessionManager) }
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ class TestComponents(private val context: Context) : Components(context) {
core.sessionManager,
core.store,
search.searchEngineManager,
core.webAppShortcutManager,
core.thumbnailStorage
core.webAppShortcutManager
)
}
override val intentProcessors by lazy { mockk<IntentProcessors>(relaxed = true) }
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/AndroidComponents.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

object AndroidComponents {
const val VERSION = "49.0.20200702131412"
const val VERSION = "49.0.20200702190156"
}

0 comments on commit f863c34

Please sign in to comment.