Closes #6440 Integrate Web Notifications Feature

staging
Roger Yang 5 years ago committed by Jonathan Almeida
parent ac95510bb6
commit f3fc532e0e

@ -383,6 +383,7 @@ dependencies {
implementation Deps.mozilla_feature_tab_collections
implementation Deps.mozilla_feature_sendtab
implementation Deps.mozilla_feature_webcompat
implementation Deps.mozilla_feature_webnotifications
implementation Deps.mozilla_service_sync_logins
implementation Deps.mozilla_service_firefox_accounts

@ -37,10 +37,13 @@ import mozilla.components.feature.session.HistoryDelegate
import mozilla.components.feature.webcompat.WebCompatFeature
import mozilla.components.lib.dataprotect.SecureAbove22Preferences
import mozilla.components.lib.dataprotect.generateEncryptionKey
import mozilla.components.feature.webnotifications.WebNotificationFeature
import mozilla.components.service.sync.logins.AsyncLoginsStorageAdapter
import mozilla.components.service.sync.logins.SyncableLoginsStore
import org.mozilla.fenix.AppRequestInterceptor
import org.mozilla.fenix.FeatureFlags
import org.mozilla.fenix.HomeActivity
import org.mozilla.fenix.R
import org.mozilla.fenix.ext.settings
import org.mozilla.fenix.test.Mockable
import java.io.File
@ -138,6 +141,9 @@ class Core(private val context: Context) {
// media in web content is playing.
MediaFeature(context).enable()
}
WebNotificationFeature(context, engine, icons, R.drawable.ic_status_logo,
HomeActivity::class.java)
}
}

@ -136,6 +136,7 @@ object Deps {
const val mozilla_feature_tab_collections = "org.mozilla.components:feature-tab-collections:${Versions.mozilla_android_components}"
const val mozilla_feature_sendtab = "org.mozilla.components:feature-sendtab:${Versions.mozilla_android_components}"
const val mozilla_feature_webcompat = "org.mozilla.components:feature-webcompat:${Versions.mozilla_android_components}"
const val mozilla_feature_webnotifications = "org.mozilla.components:feature-webnotifications:${Versions.mozilla_android_components}"
const val mozilla_service_sync_logins =
"org.mozilla.components:service-sync-logins:${Versions.mozilla_android_components}"

Loading…
Cancel
Save