Commit graph

36 commits

Author SHA1 Message Date
mike a
2cbd968ba9 Bug 1873260 - Move Behavior classes to ui-widget component 2024-01-31 21:46:09 +00:00
mcarare
063c553913 Bug 1849833 - Replace deprecated compileSdkVersion.
This is replaced by defaultConfig compileSdk.
2023-09-11 06:36:20 +00:00
MatthewTighe
c87183c8b5 Bug 1843168 - Expose Mockito through test support component 2023-07-24 18:02:09 +00: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
Christian Sadilek
4091b14a33 Fix android lint in composite builds 2022-11-21 13:40:53 -05:00
Mugurell
d78b06b6bf [components] For https://github.com/mozilla-mobile/android-components/pull/11175 - Migrate runBlocking and runBlockingTest to runTest in unit tests
Used `runTestOnMain` where `MainCoroutineRule` was used or needed to be used,
`runTest` elsewhere.

Extra effort for removing all `runBlocking` occurrences in unit tests.
`kotlinx.coroutines.test.runTest` is a test specific API that seems like a more
appropriate way for running tests in a coroutine than the general
`kotlinx.coroutines.runBlocking` api.
2022-05-10 13:45:03 +00:00
Tiger Oakes
e83cf8b1d2 [components] Create new menu2 component
browser-menu v2: A new browser menu designed to work with lib-state.

This introduces a new API using immutable data classes to represent
options. Stateful functionality like the two-state button is replaced
with swapping out data classes and submitting a new list of options.

Internally this uses a recycler view and the view holders intentionally
do not map 1:1 to data classes. This way we can use different views
based on properties instead of introducing all new classes for every
combination of properties.
2020-07-24 09:31:23 -07:00
Mugurell
28fa5298dd [components] For https://github.com/mozilla-mobile/android-components/issues/3182 - Separate behaviours depending on user's MotionEvents
There are currently 3 Views interested in handling user's MotionEvents:
- GeckoView which renders web content
- SwipeRefreshLayout which handles pull down to refresh
- BrowserToolbar which can be dynamically hidden

Each of them have different behaviours based on different conditions so I
- removed the coupling of BrowserToolbar and Geckoview from `NestedGeckoView`.
It's `onTouchEventForResult` will now only set behaviour for GeckoView.
- created a new EngineView enum to expose the `PanZoomController` possible
result of how a specific user touch was handled to any components that have a
reference to an instance of EngineView without the need to have
`concept-engine` as a dependency.
- implemented specific behaviour in `SwipeRefreshFeature` for the pull down to
refresh functionality and in the `BrowserToolbarBottomBehavior` for the dynamic
navigation bar functionality.

Mapped PanZoomController's INPUT_RESULT to a new enum in order to not enforce
the need of including geckoview as a dependency in all components interested in
how a user's `MotionEvent` was handled and also because webview doesn't expose
such values so we needed a wrapper for it's handled or not boolean return.
2020-04-01 17:39:24 +03:00
Sebastian Kaspari
95febb2731 [components] Issue https://github.com/mozilla-mobile/android-components/issues/1514: Refactor BrowserToolbar to use ConstraintLayout for display and edit toolbars. 2019-10-22 11:47:36 -04:00
Tiger Oakes
0621656720 [components] Closes https://github.com/mozilla-mobile/android-components/issues/3101 - Support highlighting menu button 2019-06-14 07:42:29 -07:00
Denys M
1f8fc3fa5b [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Enable unit test binary resources globally.
Excluded few modules.
2019-06-13 09:29:52 +02:00
Denys M
7f70def010 [components] For https://github.com/mozilla-mobile/android-components/issues/1481. Use androidx runner in browser-toolbar. 2019-06-11 12:32:05 +02:00
Sebastian Kaspari
5c54ec453d [components] Closes https://github.com/mozilla-mobile/android-components/issues/842: Migrate from support libraries to AndroidX. 2019-05-02 16:08:55 +02:00
Grisha Kruglov
8260324a9b [components] Perform browser-toolbar autocompletion off the UI thread
At this point in the stack, we're not in control over what our
autocomplete providers are, what actions they'll do in order to
field our queries, etc. For example, some providers may hit the disk
and perform expensive DB queries internally. Some may even hit the
network, in theory!

In order to keep things perceptively speedy, let's run the actual work
off the main thread. This patch sets up a new pool thread to process
autocomplete requests. More than one thread is selected so that we maintain
liveliness during quick user input. Background tasks are cancelled as new
queries come in, and stale results are discarded.
2019-02-08 12:22:13 -08:00
Jonathan Almeida
0730f923c5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/1840: Add toolbar security icon color attributes 2019-02-04 13:55:22 -05:00
Sebastian Kaspari
44296da77d [components] Issue https://github.com/mozilla-mobile/android-components/issues/1604: Add BrowserToolbarBottomBehavior to be used when placing a BrowserToolbar at the bottom of a CoordinatorLayout. 2019-01-17 10:29:16 +01:00
Mitchell Hentges
8fd19cdf3a [components] Moves description to be part of project.ext 2019-01-11 10:08:32 +01:00
Mitchell Hentges
3ee4d96a84 [components] Reads componentsVersion from .buildconfig.yml 2019-01-11 10:08:32 +01:00
ali-abdullah
89f3263d12 [components] included buildSrc in ktlint and detekt checks 2018-11-16 12:40:04 +01:00
arturomejiamarmol
6147ec21b3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/772: Allowing to pass padding to BrowserToolbar.Button,
Toolbar.ActionButton,Toolbar.ActionToggleButton, Toolbar.ActionSpace
and Toolbar.ActionImage
2018-10-26 19:45:29 +02:00
Sebastian Kaspari
63a83a475c [components] Issue https://github.com/mozilla-mobile/android-components/issues/1109: browser-toolbar: Add listener for observing edit mode changes. 2018-10-24 11:41:13 +02:00
Sebastian Kaspari
9e17b84339 [components] Simplify build configuration. 2018-10-24 10:21:12 +02:00
Johan Lorenzo
0ca864a1bf [components] Stop Bintray. Update {group,artifact}Ids. Remove massage task 2018-10-22 14:35:51 +02:00
Sebastian Kaspari
946410ca86 [components] Configure dependencies from buildSrc Kotlin code. 2018-08-21 11:16:21 -04:00
Sebastian Kaspari
b56349cba2 [components] Issue https://github.com/mozilla-mobile/android-components/issues/622: browser-toolbar: Do not use ui-progress due to high CPU usage. 2018-08-20 10:55:07 -04:00
Angelo Rüggeberg
4e497962b0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/291 - Unified lint warnings as error and fail on error 2018-07-03 14:29:55 -04:00
Sebastian Kaspari
f7a9fdfeca [components] Issue https://github.com/mozilla-mobile/android-components/issues/297: Toolbar: Allow setting autocomplete filter. 2018-06-18 08:28:11 -07:00
Sebastian Kaspari
793f7b2937 [components] browser-toolbar: Make concept-toolbar visible to consumers so that they do not need to include this dependency manually. 2018-05-24 18:03:53 +02:00
Sebastian Kaspari
7f2ca8bc61 [components] Issue https://github.com/mozilla-mobile/android-components/issues/85: Add menu button to toolbar and integrate browser-menu component. 2018-05-16 13:10:14 -04:00
Sebastian Kaspari
63586a13b9 [components] Issue https://github.com/mozilla-mobile/android-components/issues/94: Toolbar: Create sub-component skeleton (DisplayToolbar / EditToolbar). 2018-05-02 13:10:35 -04:00
Christian Sadilek
565ab378e5 [components] Issue https://github.com/mozilla-mobile/android-components/issues/49: Add functionality (interactor, usecase, ui) to change URL 2018-04-19 18:22:37 +02:00
Sebastian Kaspari
f5f6daf529 [components] Issue https://github.com/mozilla-mobile/android-components/issues/49: browser-toolbar: Add very simple mechanism to display URL. 2018-04-13 17:28:57 +02:00
Sebastian Kaspari
753376a11c [components] Issue https://github.com/mozilla-mobile/android-components/issues/37: Gradle: Centralize depedency version configuration and use "implementation" instead of "compileOnly". 2018-03-29 10:06:41 +02:00
Sebastian Kaspari
0b1dddebb0 [components] Issue https://github.com/mozilla-mobile/android-components/issues/32: Create module layout for new "toolbar" component. 2018-03-28 18:25:32 +02:00