Commit Graph

107 Commits

Author SHA1 Message Date
Gabriel Luong
09687df494 Bug 1822393 - Support Android Components consuming GeckoView directly. r=nalexander,geckoview-reviewers,tthibaud,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201483
2023-12-07 16:19:43 -05:00
mcarare
7562dc8765 Bug 1880077 - Switch to using Compose BOM instead of individual versioning 2024-02-22 08:51:53 +00:00
mcarare
06ab2382da Bug 1849833 - Replace deprecated compileSdkVersion.
This is replaced by defaultConfig compileSdk.
2023-09-21 13:28:28 +00:00
t-p-white
e01472a646 Bug 1820467 - Removed dependency to google_material from support-ktx gradle. (https://github.com/mozilla-mobile/firefox-android/pull/1132)
* Bug 1820467 - Removed dependency to google_material from support-ktx gradle.
Moved SnackbarDelegate.kt to ui-widget components.

* Bug 1820467 - PR change. Move build check to caller. Updated dependencies for Focus and Sample Browser

* Bug 1820467 - Force toolchain rebuild, build fix

* Bug 1820467 - Re-work from PR

---------

Co-authored-by: t-p-white <t-p-white>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-30 11:10:59 +00:00
Jonathan Almeida
367901441b Bug 1812149 - Add ActivityContextWrapper before updating locale
From ohall's learnings, we know that we need to use the original Android
Activity Context with the system PrintManager. When a configuration
change happens, a new Context is created and the original is lost.
The most straight-forward way to do that is to use a ContextWrapper
which internally holds a reference to the original context.
2023-03-15 16:50:35 -04:00
Ryan VanderMeulen
0e5e70291c Bug 1820233 - Remove unneeded kotlin_stdlib inclusions and re-enable Werror in detekt build.gradle 2023-03-07 00:12:18 +00:00
mcarare
1f589a2e0b Bug 1802817 - Set namespace via DSL in gradle build files.
See https://developer.android.com/studio/build/configure-app-module#set-namespace
and https://issuetracker.google.com/issues/172361895
2023-03-02 17:13:09 +00:00
mcarare
922b5f6643 Bug 1802817 - Rename AC Dependencies to ComponentsDependencies.
This change is needed in order to avoid clashes with Dependencies class introduced
in Gradle from 7.6 version.
2023-03-02 17:13:09 +00:00
mcarare
92fe0c0234 [components] For https://github.com/mozilla-mobile/android-components/issues/12724: Upgrade compose to 1.2.1 version.
Split versioning of compose compiler.
Enable Xjvm-default to allow inheriting from interfaces with '@JvmDefault' members
like RememberObserver.
2022-09-08 08:22:09 +00:00
Mugurell
bf8ab1bdb5 [components] For https://github.com/mozilla-mobile/android-components/issues/12469 - Cancel previous queries before new suggestions requests 2022-07-11 16:52:40 +00:00
Gabriel Luong
1c21cf8793 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11732: Refactor Frequency into support-base component 2022-02-22 21:35:51 +00:00
Sebastian Kaspari
90ec41fc3a [components] Update Kotlin and Jetpack Compose versions. 2021-10-25 10:58:07 +00:00
Ben Dean-Kawamura
dfdcdc402b [components] Use normal instead of DummyLoginsStorage in the sample browser
Also updated samsples:sync-logins and samples:sync
2021-10-13 20:30:28 -07:00
Sebastian Kaspari
9131af2833 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11063: samples-browser: Replace deprecated BrowserAwesomeBar with AwesomeBar composable 2021-10-04 09:42:19 +00:00
mcarare
636adaf2a9 [components] For https://github.com/mozilla-mobile/android-components/issues/10404: Remove deprecated kotlin-android-extensions plugin
(cherry picked from commit d99621583ceb11e7d91ebe284e40aec145793e48)
2021-06-15 08:32:26 +00:00
Christian Sadilek
4dfb6d92c1 [components] Revert "For https://github.com/mozilla-mobile/android-components/issues/10404: Remove deprecated kotlin-android-extensions plugin"
This reverts commit d99621583ceb11e7d91ebe284e40aec145793e48.
2021-06-14 18:09:24 +00:00
mcarare
17c2336fde [components] For https://github.com/mozilla-mobile/android-components/issues/10404: Remove deprecated kotlin-android-extensions plugin 2021-06-14 10:05:57 +00: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
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
Sebastian Kaspari
60c4e7fce3 [components] Remove browser-search and migrate leftover functionality to feature-search.
Now that Fenix and Focus have migrated to using search functionality from the state in
BrowserStore (provided by feature-search), we can remove browser-search. The client
for search suggestions and the assets still lived in browser-search and this patch
moves those to feature-search too.
2021-04-21 15:00:44 +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
f8699a769a [components] Add prototype component to support Android's autofill framework. 2021-02-19 14:02:55 +00:00
Jonathan Almeida
fe47bf44de [components] Close https://github.com/mozilla-mobile/android-components/issues/9376: Remove Nearby component and samples 2021-01-19 14:42:59 +00:00
Sebastian Kaspari
bfbe4e5945 [components] Closes https://github.com/mozilla-mobile/android-components/issues/9183, https://github.com/mozilla-mobile/android-components/issues/9199: Move SessionStorage from browser-session to browser-session-storage.
This is one piece of browser-session that we want to keep and moving it out allows more components to
not depend on browser-session anymore.

Multiple things are in this patch:
* Storage related code moved from browser-session to browser-session-storage
* BrowserStateSerializer gets split into BrowserStateWriter and BrowserStateReader
* SessionManager.Snapshot has been removed and we now save and restore independened from SessionManager.
  We already saved BrowserState. Now we restore into a generic `BrowsingSession`.
* feature-tab-collections no longer depends on browser-session.
* All restore code now goes through TabsUseCases instead of SessionManager directly.
2021-01-05 12:16:46 +00:00
Elise Richards
2ae9e420e7 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2743: Upstream tab counter changes from Fenix 2020-12-03 20:24:26 +00:00
Christian Sadilek
05d43cecff [components] Issue https://github.com/mozilla-mobile/android-components/issues/7247: Deprecate SelectionAwareSessionObserver 2020-11-06 20:16:38 +00:00
Sebastian Kaspari
9981f05aa2 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7864: Add RegionMiddleware and SearchMiddleware to sample browser. 2020-10-12 12:44:05 +00:00
Jonathan Almeida
ac73bae091 [components] Close https://github.com/mozilla-mobile/android-components/issues/8040: Move ImageLoader to support-base
The `ImageLoader` API is public and we should have it in a better place.
2020-10-06 14:39:58 +00:00
Sebastian Kaspari
7d7c42d825 [components] Issue #https://github.com/mozilla-mobile/android-components/issues/8255: Add crash reporter with dummy crash service to sample browser. 2020-09-02 15:28:39 +02:00
Nick Alexander
d56b440276 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7204: Allow to substitute GeckoView in all projects.
In particular, this allows to substitute local GeckoView versions with
JVM-level API changes.
2020-08-17 13:48:23 -07:00
Christian Sadilek
7f7ba9ad41 [components] Update LeakCanary to 2.4 and add to Sample Browser 2020-07-13 14:11:20 -04:00
Christian Sadilek
075c94f2db [components] Closes https://github.com/mozilla-mobile/android-components/issues/7278: Add task to generate versions for built-in extensions 2020-07-07 14:59:11 -04:00
Tiger Oakes
833d633e0d [components] Expose relationChecker in AbstractCustomTabsService 2020-06-23 14:14:16 -07:00
Jonathan Almeida
4ba666edc2 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7313: Update sample browser to use thumbnail loader 2020-06-12 12:30:10 -04:00
MozLando
a5321692dd [components] Merge https://github.com/mozilla-mobile/android-components/pull/7106
7106: Import MVP-version of the "Report Site Issue" feature ported from Desktop. r=pocmo,Amejia481 a=denschub



Co-authored-by: Dennis Schubert <dschubert@mozilla.com>
2020-05-29 12:33:32 +00:00
Dennis Schubert
f153ca096e [components] No Bug - Import MVP-version of the "Report Site Issue" feature ported from Desktop. 2020-05-28 14:59:51 +02:00
Grisha Kruglov
bac95aeb54 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7145: Switch sample-browser to browser-storage-sync 2020-05-27 23:49:29 -07:00
Gabriel Luong
f5b851bd14 [components] Issue https://github.com/mozilla-mobile/android-components/issues/6827: Move Thumbnails into its own browser component 2020-05-01 18:21:24 -04:00
codrut.topliceanu
b36e989985 [components] For https://github.com/mozilla-mobile/android-components/issues/6501 - Increment google_materials dependency to 1.1.0
Keeps backwards compatibility by adding a separate dependency for androidx.swiperefreshlayout
2020-04-06 12:43:45 +03:00
Ellen Spertus
fdbf3e0699 [components] Enable URLs and pages to be sent P2P 2020-03-31 12:10:48 -07:00
ValentinTimisica
19412d6cd0 [components] Fixes https://github.com/mozilla-mobile/android-components/issues/6094: Cleanup 2020-03-30 16:24:51 +03:00
Roger Yang
ec608b1148 [components] For https://github.com/mozilla-mobile/android-components/issues/5866: Don't crash when failed to launch new window request in custom tab 2020-03-24 19:02:59 -04:00
Alessio Placitelli
5ea750b794 [components] Enable the Glean SDK in sample-browser 2019-11-07 11:11:21 +01:00
Arturo Mejia
f3a228368f [components] Close issue https://github.com/mozilla-mobile/android-components/issues/4876: Add UI for addon discovery and installation. 2019-10-30 16:40:04 -04:00
Roger Yang
33df52b2d5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/2295, https://github.com/mozilla-mobile/android-components/issues/4549: Implement Web Notification Feature 2019-10-29 17:18:03 -04:00
Tiger Oakes
16f56a0a34 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3707 - Add SecureWindowFeature 2019-10-24 09:51:03 -07:00
Christian Sadilek
115a665afc [components] Closes https://github.com/mozilla-mobile/android-components/issues/4681: Support observing engine state changes for web extensions 2019-10-09 16:57:40 -04:00
Dennis Schubert
b37b52f59a [components] Add the WebCompatFeature to the sample browsers. 2019-09-24 15:53:40 +02:00
Nick Alexander
9ff8dcb5cb [components] Consume new substitute-local-geckoview.gradle script from Bug 1533465. 2019-09-13 13:30:45 +02:00