Commit Graph

348 Commits

Author SHA1 Message Date
Sebastian Kaspari
ce323400dd [components] Run ktlintFormat to fix new ktlint errors. 2021-07-28 12:03:23 +00:00
Arturo Mejia
20c74779f3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/10127 expose new GV api for detecting SmartBlock exceptions. 2021-07-22 20:54:06 +00:00
Sebastian Kaspari
f14b267388 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10335: Update dependencies to support Jetpack Compose and add first prototype components.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Upgrade to Gradle 7.
* Update Android Gradle Plugin to 7.0.0 Beta 2.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Generate BuildConfig with VERSION_CODE and VERSION_NAME fields in library modules (for Glean).
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add first component using Jetpack Compose: compose-browser-toolbar.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Introduce Jetpack Compose bindings for lib-state.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Upstream Jetpack Compose toolbar prototype from Reference Browser.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add TargetTab helper for observing specific tabs.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add compose-engine component for adding Jetpack Compose bindings to a concept-engine implementation.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Add new sample app (samples-compose-browser) for prototyping browser UI using Jetpack Compose.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Update to Beta 3 of the Android Gradle plugin.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Allow usage of http when substituting maven repositories in CI.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Rename TabTarget helper to just Target.
* Issue https://github.com/mozilla-mobile/android-components/issues/10335: Make BrowserToolbar follow target tab too.
* Add awesomebar prototype using Jetpack Compose.
* Update to Gradle 7.0.2.
2021-07-20 16:22:26 +00:00
Sebastian Kaspari
9fb6953940 [components] Upgrade Android Gradle Plugin to 4.2.2 and Gradle to 6.7.1. 2021-07-19 09:32:44 +00:00
Sebastian Kaspari
28a76101be [components] Update Kotlin to 1.5.10 (and Coroutines to 1.5.0 and Room to 2.3.0). 2021-07-19 09:32:44 +00:00
Mugurell
acf8635f10 [components] For https://github.com/mozilla-mobile/android-components/issues/10555 - Use INPUT_HANDLING_UNKNOWN as the default of InputResultDetail
We need to wait until having a response from GeckoView on how it handled the
touch only after which we'll know whether to animate the toolbar or not.

The edgecase scenario of having pull to refresh enabled even before having a
response from GeckoView will still work because "canOverscrollTop()" only
checks for the touch to not be handled by the browser to pan the page.
2021-07-16 12:37:29 +00:00
Sebastian Kaspari
4863bc3b15 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10335: Use Java 11. 2021-07-15 14:57:23 +00:00
Arturo Mejia
497d1d2c35 [components] Improvements to site permissions 2021-06-21 12:12:35 +00:00
Arturo Mejia
66a515891e [components] Closes https://github.com/mozilla-mobile/android-components/issues/10245: Migrate tracking protection exceptions to new GV storage 2021-06-14 19:48:54 +00:00
Jan-Erik Rediger
163330b349 [components] Upgrade to Glean v39.0.3
This also adjusts sync-telemetry to use the non-deprecated form of
events now.
2021-06-14 15:48:35 +00:00
Christian Sadilek
1923446e74 [components] Revert "Issue https://github.com/mozilla-mobile/android-components/issues/10335: Use Java 11."
This reverts commit ad61d7c2f709a0566ea8574450ad34dd185ee22b.
2021-06-10 14:32:47 +00:00
Sebastian Kaspari
a98efdc968 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10335: Use Java 11. 2021-06-10 12:57:18 +00:00
Arturo Mejia
6ee48a1640 [components] Closes https://github.com/mozilla-mobile/android-components/issues/9391 Add support for geckoView site permissions storage. 2021-06-09 18:36:18 +00:00
Sebastian Kaspari
e02a012bcb [components] Revert "Upgrade to Glean v39.0.0"
This reverts commit 5af3322f80c7a67b5b99c4d57d739dac74cf93c9.
2021-06-08 17:54:42 +02:00
Sebastian Kaspari
b7d77a521d [components] Complete migration from browser-session to browser-state.
* Issue https://github.com/mozilla-mobile/android-components/issues/10197: Move EngineObserver and EngineMiddleware to browser-state and refactor SessionManager dependency away.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532: Migrate TabsUseCases to use BrowserStore exclusively.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Migrate SessionUseCases to use BrowserStore exclusively.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532, https://github.com/mozilla-mobile/android-components/issues/10209: Migrate components to use new UseCase APIs.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Migrate UndoMiddleware to use BrowserStore.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532: Migrate CustomTabsUseCases to use BrowserStore.
* Issue https://github.com/mozilla-mobile/android-components/issues/10211: Migrate sample-browser to not depend on browser-session.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Remove browser-session dependency.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532: feature-tabs: Remove browser-session dependency.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Fix UndoMiddlewareTest
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Refactor SessionUseCasesTest to not use SessionManager.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Fix SessionFeatureTest.
* Refactor support-migration tests to not use SessionManager.
* Fix tests in feature-contextmenu.
* Refactor feature-recentlyclosed tests to not use SessionManager
* Refactor browser-session-storage tests to not use SessionManager
* Refactor feature-intent tests to not use SessionManager
* Refactor feature-tabs tests to not use SessionManager pt. 1
* Refactor feature-customtabs tests to not depend on browser-session.
* Make sure initial load url flags are correct
* Refactor feature-tabs tests to not use SessionManager pt. 2
* Refactor browser-state tests to not depend on browser-session.
* SearchUseCasesTest: Use addTab use case instead of addPrivateTab.
* Samples Browser: Remove unused drawable.
* Fix feature-pwa tests
* Remove browser-session.
* Make sure engine session is linked for window requests
* Make sure engine session is linked when provided with tab
* Make sure engine session is linked when provided with tab pt. 2
* Prevent engine session from being created multiple times
* Prevent engine session from being created multiple times pt. 2
* Prevent engine session from being created multiple times pt. 3
* Part 4: REFACTOR ALL THE THINGS
* Update tests.
* Add additional test for multiple CreateEngineSessionAction dispatching.
* Refactor, some docs and tests
* Fix CustomTabs tests...
2021-06-08 14:44:09 +00:00
Jan-Erik Rediger
18f3609666 [components] Upgrade to Glean v39.0.0
This also adjusts sync-telemetry to use the non-deprecated form of
events now.
2021-06-08 09:31:46 +00:00
Sebastian Kaspari
ff784931ec [components] Revert "Complete migration from browser-session to browser-state."
This reverts commit c5474f00085cf5011e06e3826f611831c50c95b0.
2021-06-07 13:14:34 -04:00
Sebastian Kaspari
230c3e8a4b [components] Complete migration from browser-session to browser-state.
* Issue https://github.com/mozilla-mobile/android-components/issues/10197: Move EngineObserver and EngineMiddleware to browser-state and refactor SessionManager dependency away.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532: Migrate TabsUseCases to use BrowserStore exclusively.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Migrate SessionUseCases to use BrowserStore exclusively.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532, https://github.com/mozilla-mobile/android-components/issues/10209: Migrate components to use new UseCase APIs.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Migrate UndoMiddleware to use BrowserStore.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532: Migrate CustomTabsUseCases to use BrowserStore.
* Issue https://github.com/mozilla-mobile/android-components/issues/10211: Migrate sample-browser to not depend on browser-session.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Remove browser-session dependency.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532: feature-tabs: Remove browser-session dependency.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Fix UndoMiddlewareTest
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Refactor SessionUseCasesTest to not use SessionManager.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Fix SessionFeatureTest.
* Refactor support-migration tests to not use SessionManager.
* Fix tests in feature-contextmenu.
* Refactor feature-recentlyclosed tests to not use SessionManager
* Refactor browser-session-storage tests to not use SessionManager
* Refactor feature-intent tests to not use SessionManager
* Refactor feature-tabs tests to not use SessionManager pt. 1
* Refactor feature-customtabs tests to not depend on browser-session.
* Make sure initial load url flags are correct
* Refactor feature-tabs tests to not use SessionManager pt. 2
* Refactor browser-state tests to not depend on browser-session.
* SearchUseCasesTest: Use addTab use case instead of addPrivateTab.
* Samples Browser: Remove unused drawable.
* Fix feature-pwa tests
* Remove browser-session.
* Make sure engine session is linked for window requests
* Make sure engine session is linked when provided with tab
* Make sure engine session is linked when provided with tab pt. 2
* Prevent engine session from being created multiple times
* Prevent engine session from being created multiple times pt. 2
* Prevent engine session from being created multiple times pt. 3
* Part 4: REFACTOR ALL THE THINGS
* Update tests.
* Add additional test for multiple CreateEngineSessionAction dispatching.
* Refactor, some docs and tests
* Fix CustomTabs tests...
2021-06-07 15:29:14 +00:00
Arturo Mejia
90c7a7564c [components] Closes https://github.com/mozilla-mobile/android-components/issues/10126: Expose the new gecko API for
controlling CookieBehaviorPrivateMode.
2021-05-27 15:02:45 +00:00
Gabriel Luong
33dbca874c [components] Issue https://github.com/mozilla-mobile/android-components/issues/9813 - Add CreditCardUtils to parse credit card types from a card number and retrieve their logos 2021-05-25 23:31:52 +00:00
Sebastian Kaspari
98ab7b1b5f [components] Fix or suppress warnings from new detekt version. 2021-05-25 15:22:17 +00:00
Sebastian Kaspari
45c921d834 [components] AuthenticationDialogFragment: Use URL from prompt request. 2021-05-25 16:10:02 +02:00
Roger Yang
6e13e9d353 [components] No issue: update metrics.md 2021-05-21 18:44:08 +00:00
Gabriel Luong
838c9e6222 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10205: Add support for select credit card prompt
- Implements an override function of `onCreditCardSelect` in `GeckoPromptDelegate`
- Adds a new `CreditCard` data class in `concept-engine`. This is a parallel of GV's
`Autocomplete.CreditCard`. We can't using the existing `CreditCard` from `concept-storage`
since that has encryption dependencies whereas the card number is already decrypted
when it reaches GV.
- Adds a new `SelectCreditCard` in `PromptRequest`
2021-05-11 01:22:18 +00:00
Gabriel Luong
faf9c9bfb3 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10140 - Part 3: Implement the new Autocomplete.StorageDelegate interface in GeckoAutocompleteStorageDelegate
- Uses the new GeckoView's `Autocomplete.StorageDelegate` interface in GeckoStorageDelegate
- Implements GeckoView's `Autocomplete.StorageDelegate.onCreditCardFetch`
2021-05-05 22:45:59 +00:00
Gabriel Luong
1d6fbf8b09 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10140 - Part 2: Make a copy of GeckoLoginDelegateWrapper as GeckoAutocompleteStorageDelegate
We make a copy of GeckoLoginDelegateWrapper to not break the deprecated usage of `Autocomplete.LoginStorageDelegate`
until we are ready to replace with `GeckoStorageDelegate` which will use the new GV API `Autocomplete.StorageDelegate`.
2021-05-05 22:45:59 +00:00
Gabriel Luong
72a18d3322 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10140 - Part 1: Refactor autocomplete extension functions into ext/Login.kt
- Moves `Autocomplete.LoginEntry.toLogin()` and `Login.toLoginEntry()` extension functions
into `ext/Login.kt`
- Remove duplicates of `Autocomplete.LoginEntry.toLogin()` and `Login.toLoginEntry()`.
2021-05-05 22:45:59 +00:00
Roger Yang
ee67642224 [components] Closes https://github.com/mozilla-mobile/android-components/issues/10200: Expose enterpriseRootsEnabled runtime setting 2021-05-04 18:50:00 +00:00
Christian Sadilek
9ff0f33ae4 [components] Refactor engine-gecko tests to remove references to GeckoBundle 2021-05-04 15:22:09 +00:00
Roger Yang
8b4d5a05a0 [components] No issue: update metrics.md 2021-05-03 20:05:06 +00:00
Mugurell
ac57109a6e [components] For https://github.com/mozilla-mobile/android-components/issues/10162 - Expose the list of blocked url schemes
Some URL schemes may be blocked from loading in a new tab.
To ensure consistency with other app features this list needs to be easily
accessible.
2021-04-29 14:42:24 +00:00
Stefan Arentz
e6f4fef0cd [components] Update GeckoView (Nightly) to 90.0.20210421095627. (https://github.com/mozilla-mobile/android-components/pull/10130)
Co-authored-by: MickeyMoz <sebastian@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-04-22 09:47:04 +00:00
Christian Sadilek
39c4ab7d78 [components] Closes https://github.com/mozilla-mobile/android-components/issues/10082: Update port delegate when registering new message handler 2021-04-20 19:57:35 +00:00
Sebastian Kaspari
6b7d487589 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10070: Only keep one GeckoView component (tracking Nightly) 2021-04-20 18:51:39 +00:00
Sebastian Kaspari
8d9d23e6cc [components] Issue https://github.com/mozilla-mobile/android-components/issues/10114: (Merge day) browser-engine-gecko-nightly (89) -> browser-engine-gecko-beta (89) 2021-04-20 14:42:45 +00:00
Sebastian Kaspari
d710a76f5e [components] Issue https://github.com/mozilla-mobile/android-components/issues/10114: (Merge day) browser-engine-gecko-beta (88) -> browser-engine-gecko (88) 2021-04-20 14:42:45 +00:00
Mugurell
372b60754f [components] Fix https://github.com/mozilla-mobile/android-components/issues/9614 - Deprecate EngineView#InputResult
This will be replaced by the new InputResultDetail.
2021-03-30 13:44:44 +00:00
Michael Droettboom
8c604e1155 [components] Bug 1689162: Upgrade to new version of Glean metrics.yaml schema (https://github.com/mozilla-mobile/android-components/pull/9990)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-03-29 14:27:14 +00:00
Travis Long
d5e49d5b0a [components] [SDK-217] Allow consumer to set appName and channel for experiment filtering
Update samples-glean to pass in appName and channel, and use feature-id


Suppress lint warning


Update to A-S v74.0.1


Make `app_name` and `channel` part of a data struct


Update samples-glean


Fix test


lint
2021-03-19 19:02:56 +00:00
Christian Sadilek
c9d791c53b [components] Adjust detekt TooManyFunctions threshold 2021-03-18 15:25:40 +00:00
Jonathan Almeida
d3450e71bf [components] Issue https://github.com/mozilla-mobile/android-components/issues/9899: (Merge day) browser-engine-gecko-beta (87) -> browser-engine-gecko-release (87) 2021-03-16 16:42:05 +00:00
Roger Yang
0182d4d8b4 [components] Closes https://github.com/mozilla-mobile/android-components/issues/9859: Detect media notification icon size is incorrect 2021-03-10 17:26:09 +00:00
Roger Yang
a099c9e20e [components] Remove deprecated references to old MediaSession API 2021-03-03 17:27:16 +00:00
Arturo Mejia
d335091a6c [components] Closes https://github.com/mozilla-mobile/android-components/issues/9787 separate content blocking setting from TrackingProtectionState.enabled 2021-03-02 16:22:42 +00:00
Michael Droettboom
f0a9e90e0d [components] Upgrade to Glean 35.0.0 2021-02-26 15:50:59 +00:00
Sebastian Kaspari
1596845e0a [components] Issue https://github.com/mozilla-mobile/android-components/issues/9746: (Merge day) browser-engine-gecko-beta (86) -> browser-engine-gecko (86) 2021-02-23 16:45:17 +00:00
Sebastian Kaspari
282f5e3aef [components] Remove old media APIs. 2021-02-10 13:02:22 +00:00
codrut.topliceanu
354fdf44cb [components] For https://github.com/mozilla-mobile/android-components/issues/9606 - Adds defaultSettings when creating a new GeckoEngineSession
This fixes the issue where some new WebExtension tabs would have no ETP setting in Fenix.

For https://github.com/mozilla-mobile/android-components/issues/9606 - Removes fallback policy, adds settings to onOpenOptionsPage

For https://github.com/mozilla-mobile/android-components/issues/9606 - Adds defaultSettings to onToggleActionPopup on init GeckoEngineSession

For https://github.com/mozilla-mobile/android-components/issues/9606 - Removes new instance of trackingPolicy and uses passed parameter

For https://github.com/mozilla-mobile/android-components/issues/9606 - Adds documentation to new defaultSettings parameter

For https://github.com/mozilla-mobile/android-components/issues/9606 - Fixes formatting
2021-02-09 19:32:12 +00:00
mcarare
fbbe75889f [components] For https://github.com/mozilla-mobile/android-components/issues/8519: Fix nullability changes in SDK 30 in unit tests. 2021-02-09 18:03:01 +00:00
mcarare
7586242be2 [components] For https://github.com/mozilla-mobile/android-components/issues/8519: Suppress SDK 30 deprecations in tests and link to opened issues. 2021-02-09 18:03:01 +00:00