2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-05 21:20:45 +00:00

Closes #6440 Integrate Web Notifications Feature

This commit is contained in:
Roger Yang 2019-11-06 16:46:52 -05:00 committed by Jonathan Almeida
parent ac95510bb6
commit f3fc532e0e
3 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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)
}
}

View File

@ -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}"