Fixes #1570 - Enable app-links feature
parent
35a745d67d
commit
060cd646c8
|
@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- #225 - Adds the ability to delete all browsing data
|
- #225 - Adds the ability to delete all browsing data
|
||||||
- #2903 - Fixed crash when trying to rate the app on a devices without the play store app.
|
- #2903 - Fixed crash when trying to rate the app on a devices without the play store app.
|
||||||
- #2419 - Adds a deletion state to the history component
|
- #2419 - Adds a deletion state to the history component
|
||||||
|
- #1570 - Enables the opening of links by other apps.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- #2673 - Fixed can't upload files using third party apps from the file manager.
|
- #2673 - Fixed can't upload files using third party apps from the file manager.
|
||||||
|
|
|
@ -294,6 +294,7 @@ dependencies {
|
||||||
implementation Deps.mozilla_browser_toolbar
|
implementation Deps.mozilla_browser_toolbar
|
||||||
|
|
||||||
implementation Deps.mozilla_feature_accounts
|
implementation Deps.mozilla_feature_accounts
|
||||||
|
implementation Deps.mozilla_feature_app_links
|
||||||
implementation Deps.mozilla_feature_awesomebar
|
implementation Deps.mozilla_feature_awesomebar
|
||||||
implementation Deps.mozilla_feature_contextmenu
|
implementation Deps.mozilla_feature_contextmenu
|
||||||
implementation Deps.mozilla_feature_customtabs
|
implementation Deps.mozilla_feature_customtabs
|
||||||
|
|
|
@ -34,6 +34,7 @@ import kotlinx.coroutines.runBlocking
|
||||||
import mozilla.appservices.places.BookmarkRoot
|
import mozilla.appservices.places.BookmarkRoot
|
||||||
import mozilla.components.browser.session.Session
|
import mozilla.components.browser.session.Session
|
||||||
import mozilla.components.browser.session.SessionManager
|
import mozilla.components.browser.session.SessionManager
|
||||||
|
import mozilla.components.feature.app.links.AppLinksFeature
|
||||||
import mozilla.components.feature.contextmenu.ContextMenuCandidate
|
import mozilla.components.feature.contextmenu.ContextMenuCandidate
|
||||||
import mozilla.components.feature.contextmenu.ContextMenuFeature
|
import mozilla.components.feature.contextmenu.ContextMenuFeature
|
||||||
import mozilla.components.feature.downloads.DownloadsFeature
|
import mozilla.components.feature.downloads.DownloadsFeature
|
||||||
|
@ -92,6 +93,7 @@ import kotlin.coroutines.CoroutineContext
|
||||||
|
|
||||||
@SuppressWarnings("TooManyFunctions", "LargeClass")
|
@SuppressWarnings("TooManyFunctions", "LargeClass")
|
||||||
class BrowserFragment : Fragment(), BackHandler, CoroutineScope {
|
class BrowserFragment : Fragment(), BackHandler, CoroutineScope {
|
||||||
|
|
||||||
private lateinit var toolbarComponent: ToolbarComponent
|
private lateinit var toolbarComponent: ToolbarComponent
|
||||||
|
|
||||||
private var sessionObserver: Session.Observer? = null
|
private var sessionObserver: Session.Observer? = null
|
||||||
|
@ -100,6 +102,7 @@ class BrowserFragment : Fragment(), BackHandler, CoroutineScope {
|
||||||
private val sessionFeature = ViewBoundFeatureWrapper<SessionFeature>()
|
private val sessionFeature = ViewBoundFeatureWrapper<SessionFeature>()
|
||||||
private val contextMenuFeature = ViewBoundFeatureWrapper<ContextMenuFeature>()
|
private val contextMenuFeature = ViewBoundFeatureWrapper<ContextMenuFeature>()
|
||||||
private val downloadsFeature = ViewBoundFeatureWrapper<DownloadsFeature>()
|
private val downloadsFeature = ViewBoundFeatureWrapper<DownloadsFeature>()
|
||||||
|
private val appLinksFeature = ViewBoundFeatureWrapper<AppLinksFeature>()
|
||||||
private val promptsFeature = ViewBoundFeatureWrapper<PromptFeature>()
|
private val promptsFeature = ViewBoundFeatureWrapper<PromptFeature>()
|
||||||
private val findInPageIntegration = ViewBoundFeatureWrapper<FindInPageIntegration>()
|
private val findInPageIntegration = ViewBoundFeatureWrapper<FindInPageIntegration>()
|
||||||
private val toolbarIntegration = ViewBoundFeatureWrapper<ToolbarIntegration>()
|
private val toolbarIntegration = ViewBoundFeatureWrapper<ToolbarIntegration>()
|
||||||
|
@ -224,6 +227,17 @@ class BrowserFragment : Fragment(), BackHandler, CoroutineScope {
|
||||||
view = view
|
view = view
|
||||||
)
|
)
|
||||||
|
|
||||||
|
appLinksFeature.set(
|
||||||
|
feature = AppLinksFeature(
|
||||||
|
requireContext(),
|
||||||
|
sessionManager = sessionManager,
|
||||||
|
sessionId = customTabSessionId,
|
||||||
|
fragmentManager = requireFragmentManager()
|
||||||
|
),
|
||||||
|
owner = this,
|
||||||
|
view = view
|
||||||
|
)
|
||||||
|
|
||||||
promptsFeature.set(
|
promptsFeature.set(
|
||||||
feature = PromptFeature(
|
feature = PromptFeature(
|
||||||
fragment = this,
|
fragment = this,
|
||||||
|
|
|
@ -97,6 +97,7 @@ object Deps {
|
||||||
const val mozilla_browser_storage_sync = "org.mozilla.components:browser-storage-sync:${Versions.mozilla_android_components}"
|
const val mozilla_browser_storage_sync = "org.mozilla.components:browser-storage-sync:${Versions.mozilla_android_components}"
|
||||||
|
|
||||||
const val mozilla_feature_accounts = "org.mozilla.components:feature-accounts:${Versions.mozilla_android_components}"
|
const val mozilla_feature_accounts = "org.mozilla.components:feature-accounts:${Versions.mozilla_android_components}"
|
||||||
|
const val mozilla_feature_app_links = "org.mozilla.components:feature-app-links:${Versions.mozilla_android_components}"
|
||||||
const val mozilla_feature_awesomebar = "org.mozilla.components:feature-awesomebar:${Versions.mozilla_android_components}"
|
const val mozilla_feature_awesomebar = "org.mozilla.components:feature-awesomebar:${Versions.mozilla_android_components}"
|
||||||
const val mozilla_feature_contextmenu = "org.mozilla.components:feature-contextmenu:${Versions.mozilla_android_components}"
|
const val mozilla_feature_contextmenu = "org.mozilla.components:feature-contextmenu:${Versions.mozilla_android_components}"
|
||||||
const val mozilla_feature_customtabs = "org.mozilla.components:feature-customtabs:${Versions.mozilla_android_components}"
|
const val mozilla_feature_customtabs = "org.mozilla.components:feature-customtabs:${Versions.mozilla_android_components}"
|
||||||
|
|
Loading…
Reference in New Issue