Skip to content

Commit

Permalink
For mozilla-mobile#12024: Deprecate TrustedWebActivityIntentProcessor.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarare committed Apr 20, 2022
1 parent 4687fa5 commit f94e626
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import mozilla.components.support.utils.toSafeIntent
/**
* Processor for intents which open Trusted Web Activities.
*/
@Deprecated("TWAs are not supported. See https://github.com/mozilla-mobile/android-components/issues/12024")
class TrustedWebActivityIntentProcessor(
private val addNewTabUseCase: CustomTabsUseCases.AddCustomTabUseCase,
packageManager: PackageManager,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ import mozilla.components.support.test.mock
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Before
import org.junit.Ignore
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mockito.verify

@RunWith(AndroidJUnit4::class)
@ExperimentalCoroutinesApi
@Suppress("DEPRECATION")
@Ignore("TrustedWebActivityIntentProcessorTest] is deprecated. See https://github.com/mozilla-mobile/android-components/issues/12024")
class TrustedWebActivityIntentProcessorTest {

private lateinit var store: BrowserStore
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ permalink: /changelog/
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/main/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/main/.config.yml)

* **feature-pwa**
* [TrustedWebActivityIntentProcessor] is now deprecated. See [issue #12024](https://github.com/mozilla-mobile/android-components/issues/12024).

* **feature-downloads**:
* 🚒 Bug fixed [issue #11259](https://github.com/mozilla-mobile/android-components/issues/11259) - Improved mime type inference for when sharing images from the contextual menu.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import mozilla.components.feature.pwa.ManifestStorage
import mozilla.components.feature.pwa.WebAppInterceptor
import mozilla.components.feature.pwa.WebAppShortcutManager
import mozilla.components.feature.pwa.WebAppUseCases
import mozilla.components.feature.pwa.intent.TrustedWebActivityIntentProcessor
import mozilla.components.feature.pwa.intent.WebAppIntentProcessor
import mozilla.components.feature.readerview.ReaderViewMiddleware
import mozilla.components.feature.search.SearchUseCases
Expand Down Expand Up @@ -240,12 +239,6 @@ open class DefaultComponents(private val applicationContext: Context) {
val externalAppIntentProcessors by lazy {
listOf(
WebAppIntentProcessor(store, customTabsUseCases.addWebApp, sessionUseCases.loadUrl, webAppManifestStorage),
TrustedWebActivityIntentProcessor(
customTabsUseCases.add,
applicationContext.packageManager,
relationChecker,
customTabsStore
),
CustomTabIntentProcessor(customTabsUseCases.add, applicationContext.resources)
)
}
Expand Down

0 comments on commit f94e626

Please sign in to comment.