Commit graph

413 commits

Author SHA1 Message Date
Alexander Gramiak
bcc43f0530 Bug 1799230 - Use Non-Transitive R Classes
According to Android documentation: "This leads to faster builds and
the corresponding benefits of compilation avoidance."
2022-11-17 18:23:01 +00:00
Mihai Adrian Carare
e087b524a6 Bug 1796353 - Build with compileSdkVersion for Android 13 / API 33. (https://github.com/mozilla-mobile/firefox-android/pull/62)
* Bug 1796353 - Build with compileSdkVersion for Android 13 / API 33.

* Bug 1796353 - Update method signature for View.AccessibilityDelegate.

* Bug 1796353 - Handle AccessibilityNodeInfo.CollectionInfo.obtain deprecation.

* Bug 1796353 - Update method signature for View.OnAttachStateChangeListener.

* Bug 1796353 - Handle getParcelableExtra(String) deprecation.

* Bug 1796353 - Handle getParcelable(String) deprecation.

* Bug 1796353 - Handle getParcelableArrayListExtra(String) deprecation.

* Bug 1796353 - Move URLStringUtils to ktx package.

This is needed to avoid circular dependencies for some needed changes.

* Bug 1796353 - Suppress deprecation for get(String).

* Bug 1796353 - Replace removed method setAppCacheEnabled.

* Bug 1796353 - Handle PackageManager methods deprecations.

* Bug 1796353 - Handle getSerializable(String) deprecation.

* Bug 1796353 - Handle stopForeground deprecation.

* Bug 1796353 - Update method signature for GestureDetector.SimpleOnGestureListener.

* Bug 1796353 - Handle AccessibilityEvent.obtain deprecation.

* Bug 1796353 - Handle getParcelableArrayList(String) deprecation.

* Bug 1796353 - Handle getParcelableArray(String) deprecation.

* Bug 1796353 - Handle getSerializableExtra(String) deprecation.

* Bug 1796353 - Handle readParcelable(classLoader) deprecation.

* Bug 1796353 - Handle FillResponse.Builder setAuthentication deprecation.

* Bug 1796353 - Handle Dataset.Builder setValue deprecation.

* Bug 1796353 - Suppress get(String) deprecation.

We still need to use this method because we do not know the type beforehand.

* Bug 1796353 - Handle onBackPressed() deprecation.

* Bug 1796353 - Suppress queryBroadcastReceivers deprecation.

* Bug 1796353 - Suppress package manager methods deprecation.

* Bug 1796353 - Catch and report exceptions when handling touch event detection.

* Bug 1796353 - Suppress deprecation for getPackageInfo used in tests with SDK 28.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-11-16 00:35:40 -05:00
Mozilla L10n Automation Bot
29874a1b39 Import l10n. 2022-11-14 00:22:54 +00:00
mcarare
ef3c3593c1 [components] No issue: Update AndroidX Annotation to the latest version.
Update imports for annotations moved to Companion Object.
2022-10-25 19:19:29 +00:00
sarah541
50cbdca863 [components] Create extension for truncating urls 2022-10-19 17:04:43 +00:00
Gabriel Luong
d9d783b698 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12939: Address all ktlint issues 2022-10-17 17:07:40 -04:00
Mozilla L10n Automation Bot
1b14baec2a [components] Import l10n. 2022-09-08 00:20:22 +00:00
mcarare
6b1a2d5dcb [components] For https://github.com/mozilla-mobile/android-components/issues/12381: Replace VisibleForTesting with @get:VisibleForTesting. 2022-08-31 09:47:47 +00:00
mcarare
97ae5efa57 [components] For https://github.com/mozilla-mobile/android-components/issues/12381: Remove VisibleForTesting annotation.
Values are also accessed from code, not just from tests.
2022-08-31 09:47:47 +00:00
Mozilla L10n Automation Bot
291f58aa12 [components] Import l10n. 2022-08-29 00:25:29 +00:00
Mozilla L10n Automation Bot
ef2b1975c5 [components] Import l10n. 2022-08-28 01:12:33 +00:00
Mozilla L10n Automation Bot
67edbe7d0f [components] Import l10n. 2022-08-16 00:26:25 +00:00
Mozilla L10n Automation Bot
8b96068192 [components] Import l10n. 2022-08-04 00:21:34 +00:00
Ionut Cristian Bedregeanu
3ee69cf3f3 [components] For https://github.com/mozilla-mobile/android-components/issues/12497 - Set the same margin to toolbar background for display as for edit 2022-07-15 04:46:09 +00:00
mcarare
30e5a6f476 [components] For https://github.com/mozilla-mobile/android-components/issues/12402: Run Robolectric with SDK 32. 2022-06-29 16:31:33 +00:00
mcarare
2a1c468edc [components] For https://github.com/mozilla-mobile/android-components/issues/12376: Run Robolectric with SDK 31.
Current Robolectric version does not support SDK 32.
2022-06-28 13:42:14 +00:00
sarah541
a8ca80d2c1 [components] Improve search term performance on the toolbar 2022-06-01 15:51:49 +00:00
Mozilla L10n Automation Bot
df86e312d0 [components] Import l10n. 2022-05-24 00:25:19 +00: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
Mozilla L10n Automation Bot
8e44ec6a2b [components] Import l10n. 2022-05-08 23:01:10 +00:00
Mozilla L10n Automation Bot
a04407ea38 [components] Import l10n. 2022-05-06 00:18:19 +00:00
Roger Yang
bd452c3d99 [components] Close https://github.com/mozilla-mobile/android-components/issues/12109: Support removing edit action end in edit toolbar 2022-05-05 18:17:09 +00:00
Mozilla L10n Automation Bot
50160eb28f [components] Import l10n. 2022-04-30 00:23:45 +00:00
mcarare
f79d8f4759 [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Check a11y enabled state when sending a11y event. 2022-04-28 10:39:46 +00:00
mcarare
c867f69721 [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Send accessibility event directly.
This removed the need for using a delegate.
2022-04-28 08:33:29 +00:00
mcarare
2275e49731 [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Run tests on sdk 30. 2022-04-28 08:33:29 +00:00
Roger Yang
a51595e683 [components] Close https://github.com/mozilla-mobile/android-components/issues/12008: Support auto hiding edit action end in browser toolbar 2022-04-22 14:57:19 +00:00
Gabriel Luong
7c3dc51b44 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11890: Add a new action container in the EditToolbar 2022-03-24 20:27:23 +00:00
Mozilla L10n Automation Bot
e009629e17 [components] Import l10n. 2022-03-12 00:21:49 +00:00
Mugurell
1f12144020 [components] For https://github.com/mozilla-mobile/android-components/issues/10638 - Remove reflective access to "mSpanSlop" and "mMinSpan"
Removed reflective access to non-public SDK APIs controlling the sensitivity of
the gesture detector following which sparingly and for very short time a
pinch/spread to zoom gesture might be identified first as a scroll gesture and
move the toolbar a little before snapping to it's original position.
2022-03-10 10:51:42 +00:00
Mozilla L10n Automation Bot
61700d4de2 [components] Import l10n. 2022-02-12 00:25:46 +00:00
Mozilla L10n Automation Bot
3b8a78a7a9 [components] Import l10n. 2022-02-05 00:21:10 +00:00
Ionut Cristian Bedregeanu
64ca84523d [components] For https://github.com/mozilla-mobile/android-components/issues/11499 - Update tracking protection icon state
Update the state of tracking protection indicator even when is not displayed
in order to avoid that scenario when the tracking protection became visible later
but its state is not the last one
2022-01-25 07:31:02 +00:00
Ionut Cristian Bedregeanu
5348da1bc1 [components] For https://github.com/mozilla-mobile/android-components/issues/11545 - Replace clearColorFilter with setColorFilter for security icon
Clear color filter doesn't work on Api 21, 22
Even if we invalidate the view after clearColorFilter the filter is not removed, so to fix the bug
we need to use setColorFilter with color Color.Transparent when the API version is lower than 23
2022-01-21 09:01:07 +00:00
Mozilla L10n Automation Bot
3d267546da [components] Import l10n. 2022-01-07 00:40:22 +00:00
Mozilla L10n Automation Bot
12afbcd07d [components] Import l10n. 2021-12-22 00:25:35 +00:00
Mozilla L10n Automation Bot
9729f2fadb [components] Import l10n. 2021-12-12 00:23:03 +00:00
Mozilla L10n Automation Bot
f90987e522 [components] Import l10n. 2021-11-19 00:33:58 +00:00
Ionut Cristian Bedregeanu
a3340a5764 [components] For https://github.com/mozilla-mobile/android-components/issues/11279 - Add a method to remove navigation actions from toolbar
Add a new method(removeNavigationAction) in Toolbar interface to be able to remove a navigation action
as we have at this moment for browser/page actions(removeBrowserAction, removePageAction)
2021-11-17 13:22:48 +00:00
mike a
458027fb14 [components] Closes https://github.com/mozilla-mobile/android-components/issues/11252: fix for not hiding keyboard after edit toolbar loses focus 2021-11-15 17:21:10 +00:00
Mozilla L10n Automation Bot
750a0c4f03 [components] Import l10n. 2021-11-03 00:19:18 +00:00
Mozilla L10n Automation Bot
f9302c26d5 [components] Import l10n. 2021-10-25 17:30:12 +00:00
Christian Sadilek
00172fcad0 [components] Fix breakage in EditToolbarTest 2021-10-23 16:16:03 +00:00
Mozilla L10n Automation Bot
19628d9c83 [components] Import l10n. 2021-09-30 00:21:29 +00:00
Mozilla L10n Automation Bot
89e858047c [components] Import l10n. 2021-09-12 00:22:14 +00:00
Mozilla L10n Automation Bot
0e13472f95 [components] Import l10n. 2021-09-11 00:23:46 +00:00
mcarare
74afd9572b [components] For https://github.com/mozilla-mobile/android-components/issues/10916: Update layout_goneMarginStart to match display toolbar. 2021-09-01 17:32:18 +00:00
Mozilla L10n Automation Bot
0c48094300 [components] Import l10n. 2021-08-31 00:19:40 +00:00
Mozilla L10n Automation Bot
85f78e899b [components] Import l10n. 2021-08-25 00:17:33 +00:00
Mugurell
e277dd03f0 [components] For https://github.com/mozilla-mobile/android-components/issues/10803 - Force expanding the toolbar if requested by GeckoView 2021-08-16 07:46:15 +00:00