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

Commit

Permalink
Application services 93.0.1 (#24904)
Browse files Browse the repository at this point in the history
* Fixup breaking changes from AppServices upgrade to 93.0.0

* android-components RemoteTabsStorage now requires a Context param

* Update Android Components version to 102.0.20220509214046

Co-authored-by: James Hugman <james@hugman.tv>
Co-authored-by: Mark Hammond <mhammond@skippinet.com.au>
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
5 people committed May 10, 2022
1 parent fdeb22d commit e5b0069
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/org/mozilla/fenix/components/Core.kt
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ class Core(
/**
* The storage component to sync and persist tabs in a Firefox Sync account.
*/
val lazyRemoteTabsStorage = lazyMonitored { RemoteTabsStorage() }
val lazyRemoteTabsStorage = lazyMonitored { RemoteTabsStorage(context) }

val recentlyClosedTabsStorage = lazyMonitored { RecentlyClosedTabsStorage(context, engine, crashReporter) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class NimbusMessagingStorage(
val nimbusActions = nimbusFeature.actions

val nimbusMessages = nimbusFeature.messages
val defaultStyle = StyleData(context)
val defaultStyle = StyleData()
val storageMetadata = metadataStorage.getMetadata()

return nimbusMessages.mapNotNull { (key, value) ->
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/org/mozilla/fenix/utils/Settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ class Settings(private val appContext: Context) : PreferencesHolder {
*/
var searchTermTabGroupsAreEnabled by lazyFeatureFlagPreference(
appContext.getPreferenceKey(R.string.pref_key_search_term_tab_groups),
default = { FxNimbus.features.searchTermGroups.value(appContext).enabled },
default = { FxNimbus.features.searchTermGroups.value().enabled },
featureFlag = FeatureFlags.tabGroupFeature
)

Expand Down Expand Up @@ -1203,7 +1203,7 @@ class Settings(private val appContext: Context) : PreferencesHolder {
)

private val homescreenSections: Map<HomeScreenSection, Boolean> by lazy {
FxNimbus.features.homescreen.value(appContext).sectionsEnabled
FxNimbus.features.homescreen.value().sectionsEnabled
}

var historyMetadataUIFeature by lazyFeatureFlagPreference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class DefaultMessageControllerTest {

@Test
fun `WHEN calling onMessageDisplayed THEN report to the messageManager`() {
val data = MessageData(_context = testContext)
val data = MessageData()
val message = mockMessage(data)
assertFalse(Messaging.messageExpired.testHasValue())
assertFalse(Messaging.messageShown.testHasValue())
Expand All @@ -125,7 +125,7 @@ class DefaultMessageControllerTest {
verify { store.dispatch(MessageDisplayed(message)) }
}

private fun mockMessage(data: MessageData = MessageData(_context = testContext)) = Message(
private fun mockMessage(data: MessageData = MessageData()) = Message(
id = "id",
data = data,
style = mockk(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 = "102.0.20220509143036"
const val VERSION = "102.0.20220509214046"
}

0 comments on commit e5b0069

Please sign in to comment.