Commit graph

721 commits

Author SHA1 Message Date
Ben Dean-Kawamura
d29e0e539b Bug 1801611: Fix CrashReporterTest
The test was failing intermittently because `recordCrashBreadcrumb` now
runs in a coroutine context.  Make sure to run that context before
checking the results.
2022-11-21 16:16:01 +00:00
Alexandru2909
37b09f7b2b Bug 1796379 - Upstream String.toShortUrl to support-ktx 2022-11-21 13:36:48 +00:00
Ben Dean-Kawamura
7ef160477c Bug 1801349 - Sentry breadcrumb fixes
Hopefully the issue with the timestamps was simply that we were
recording them, but not copying them to the Sentry
breadcrumb class.

The issue with duplicate items looks like it could be a threading issue
to me and AFAICT when multiple threads report breadcrumbs, we are
currently mutating the array without any synchronization.
2022-11-21 07:15:43 +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
Gabriel Luong
3cf2c74734 Bug 1800540 - Refactor PublicSuffixListPlugin into a plugin using composite build 2022-11-15 01:37:25 +00:00
Mozilla L10n Automation Bot
29874a1b39 Import l10n. 2022-11-14 00:22:54 +00:00
Mozilla L10n Automation Bot
88312c6090 Import l10n. 2022-11-11 00:25:26 +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
mcarare
e1ab54ff44 [components] No issue: Update metrics.md files from glean_parser v6.2.1 2022-10-25 17:15:56 +00:00
mcarare
4ad330adbc [components] For https://github.com/mozilla-mobile/android-components/issues/12489: Upgrade kotlin, coroutines, compose compiler to latest versions.
Upgrade kotlin to 1.7.20, coroutines to 1.6.4 and compose compiler to 1.3.2.
Replace deprecated Xopt-in with op-in.
Replace deprecated Xjvm-default=enable with Xjvm-default=all.
Remove useIR property that is now default true.
2022-10-18 08:20:59 +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
6f898551b4 [components] Import l10n. 2022-10-16 00:22:01 +00:00
mcarare
5039c5e30d [components] For https://github.com/mozilla-mobile/android-components/issues/12500: Fix ktlint issues.
Also remove issues from ktlint baseline.
2022-10-11 07:17:12 +00:00
mcarare
89c716d240 [components] For https://github.com/mozilla-mobile/android-components/issues/12500: Handle OnLifecycleEvent deprecations. 2022-10-11 07:17:12 +00:00
Ryan VanderMeulen
cab349c088 [components] Update some Gradle dependencies
Also remove references to the obsolete androidmavenpublish plugin which was replaced previously.
2022-10-05 21:30:26 +00:00
Mozilla L10n Automation Bot
799367099c [components] Import l10n. 2022-09-20 00:22:20 +00:00
Mozilla L10n Automation Bot
b4cf4ab10b [components] Import l10n. 2022-09-15 01:19:26 +00:00
Mozilla L10n Automation Bot
c3fc0c8248 [components] Import l10n. 2022-09-13 00:24:27 +00:00
Mozilla L10n Automation Bot
6c1e645203 [components] Import l10n. 2022-09-11 00:19:17 +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
Ryan VanderMeulen
242051fb12 [components] Issue BZ-1776525: Update Firebase Cloud Messaging to 23.0.8
Co-authored-by: RyanVM
2022-09-08 02:14:32 +00:00
Mozilla L10n Automation Bot
1b14baec2a [components] Import l10n. 2022-09-08 00:20:22 +00:00
Mozilla L10n Automation Bot
23f86cc74a [components] Import l10n. 2022-09-05 00:24:11 +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
Mozilla L10n Automation Bot
291f58aa12 [components] Import l10n. 2022-08-29 00:25:29 +00:00
Mozilla L10n Automation Bot
2be03ebeee [components] Import l10n. 2022-08-27 00:24:35 +00:00
Mozilla L10n Automation Bot
1e9a07c0e9 [components] Import l10n. 2022-08-26 10:13:36 +00:00
Mozilla L10n Automation Bot
8dc948eceb [components] Import l10n. 2022-08-25 00:24:10 +00:00
Tarik Eshaq
f52779dfab [components] Upgrades appservices to 94.1.0 2022-08-19 12:35:38 +00:00
Mozilla L10n Automation Bot
a4c99e58fc [components] Import l10n. 2022-08-19 00:29:30 +00:00
Mozilla L10n Automation Bot
bb3eb46a46 [components] Import l10n. 2022-08-18 00:23:13 +00:00
Mozilla L10n Automation Bot
bd9f15d804 [components] Import l10n. 2022-08-17 00:43:35 +00:00
Mozilla L10n Automation Bot
67edbe7d0f [components] Import l10n. 2022-08-16 00:26:25 +00:00
Mozilla L10n Automation Bot
88e2de43e9 [components] Import l10n. 2022-08-15 00:24:35 +00:00
Mozilla L10n Automation Bot
0fe992ac90 [components] Import l10n. 2022-08-14 14:44:17 +00:00
Mozilla L10n Automation Bot
3c3e730c27 [components] Import l10n. 2022-08-13 00:21:38 +00:00
Mozilla L10n Automation Bot
f36f9fead0 [components] Import l10n. 2022-08-12 00:15:51 +00:00
Mozilla L10n Automation Bot
f29228e87a [components] Import l10n. 2022-08-10 10:16:39 +00:00
Mozilla L10n Automation Bot
11f8ece2e9 [components] Import l10n. 2022-08-09 00:23:59 +00:00
Mozilla L10n Automation Bot
23a7b3f437 [components] Import l10n. 2022-08-08 00:27:30 +00:00
Mozilla L10n Automation Bot
c7e47592d8 [components] Import l10n. 2022-08-07 20:51:52 +00:00
Mozilla L10n Automation Bot
5dd0ff37cb [components] Import l10n. 2022-08-06 00:22:21 +00:00
Mozilla L10n Automation Bot
551cea2f0e [components] Import l10n. 2022-08-05 00:20:46 +00:00
Mozilla L10n Automation Bot
8b96068192 [components] Import l10n. 2022-08-04 00:21:34 +00:00
Roger Yang
72fb7fe23b [components] Close https://github.com/mozilla-mobile/android-components/issues/12538: Crash notification will always trigger the crash prompt dialog 2022-08-03 14:55:23 +00:00
Mozilla L10n Automation Bot
db6bcee0e1 [components] Import l10n. 2022-08-03 00:23:06 +00:00
Mozilla L10n Automation Bot
b091f03321 [components] Import l10n. 2022-08-01 00:22:18 +00:00
Mozilla L10n Automation Bot
a4b61db992 [components] Import l10n. 2022-07-28 00:26:37 +00:00
Mozilla L10n Automation Bot
92e4ad4ac9 [components] Import l10n. 2022-07-23 00:18:32 +00:00
Mozilla L10n Automation Bot
ffaf449c0b [components] Import l10n. 2022-07-21 00:27:13 +00:00
Mozilla L10n Automation Bot
e67d9d7dfe [components] Import l10n. 2022-07-20 00:23:06 +00:00
Mozilla L10n Automation Bot
5a74fc3f3a [components] Import l10n. 2022-07-19 00:20:40 +00:00
Mozilla L10n Automation Bot
36ea098eaa [components] Import l10n. 2022-07-18 00:21:13 +00:00
Mozilla L10n Automation Bot
a9f1bbe6dc [components] Import l10n. 2022-07-17 00:24:24 +00:00
Mozilla L10n Automation Bot
e4c884e12b [components] Import l10n. 2022-07-16 00:21:52 +00:00
Ben Dean-Kawamura
e163f82bc2 [components] Dumping app-services to v93.6.0 2022-07-15 19:31:07 +00:00
Mozilla L10n Automation Bot
c2cbc1ba86 [components] Import l10n. 2022-07-15 00:25:07 +00:00
Roger Yang
d02bc57887 [components] Close https://github.com/mozilla-mobile/android-components/issues/10112: Create a clearer notification for sending telemetry data 2022-07-13 16:16:02 +00:00
Mugurell
044f8b777b [components] For https://github.com/mozilla-mobile/android-components/issues/12441 - Update metrics.md files from glean_parser v6.1.1 2022-07-06 16:29:58 +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
Mozilla L10n Automation Bot
b957002826 [components] Import l10n. 2022-06-29 00:26:15 +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
iorgamgabriel
2760f8f964 [components] Biometric prompt feature (https://github.com/mozilla-mobile/android-components/pull/12291)
Co-authored-by: MickeyMoz <sebastian@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-06-23 18:28:43 +00:00
Jan-Erik Rediger
706f1eb240 [components] Use patched Glean Gradle plugin to fix Windows build issues
The plugin has a single small change:
1c9577144a
2022-06-20 16:21:57 +00:00
Ben Dean-Kawamura
ff019a3f4f [components] Add support for app-services error reporting.
- Added new component that hooks into the new app-services error
  reporter and listens for events.  When it sees an event it submits it
  to the crash reporter.
- Added support for customizing crash reports for these errors.
2022-06-14 17:51:29 +00:00
Kishan Patel
d7c5c1d3c0 [components] Updated Sentry project URLs to the new format 2022-06-14 15:56:05 +00:00
Jan-Erik Rediger
705c223b8a [components] Adopt APIs from Glean UniFFI 2022-06-09 18:08:13 +00:00
Mozilla L10n Automation Bot
fa4d30ce54 [components] Import l10n. 2022-05-23 00:22:09 +00:00
Mozilla L10n Automation Bot
b251645572 [components] Import l10n. 2022-05-17 17:30:54 +00:00
Mozilla L10n Automation Bot
c3fcd60943 [components] Import l10n. 2022-05-13 00:22:43 +00:00
Mozilla L10n Automation Bot
ce699b94d1 [components] Import l10n. 2022-05-11 00:19:31 +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
Mugurell
2963708053 [components] For https://github.com/mozilla-mobile/android-components/issues/11755 - Replace TestCoroutineDispatcher with UnconfinedTestDispatcher
- Refactor out all usages of TestCoroutineDispatcher and TestCoroutineScope
- Refactor MainCoroutineRule to now use UnconfinedTestDispatcher by default.
This dispatcher will eagerly enter all launch or async blocks being more suited
to our codebase.
2022-05-10 13:45:03 +00:00
Mozilla L10n Automation Bot
acf35ca8b2 [components] Import l10n. 2022-05-09 00:25:31 +00:00
Mozilla L10n Automation Bot
97655be19c [components] Import l10n. 2022-05-07 00:25:54 +00:00
Mozilla L10n Automation Bot
8997afe61d [components] Import l10n. 2022-04-29 00:21:59 +00:00
Mozilla L10n Automation Bot
2aec6487e4 [components] Import l10n. 2022-04-22 00:22:53 +00:00
Mozilla L10n Automation Bot
c5556669e9 [components] Import l10n. 2022-04-21 00:21:42 +00:00
Mozilla L10n Automation Bot
fd4c26322e [components] Import l10n. 2022-04-20 00:21:14 +00:00
Arturo Mejia
4a3d228a92 [components] For https://github.com/mozilla-mobile/android-components/issues/11940: Disable uncaught native exceptions from being reported. 2022-04-19 15:04:03 +00:00
Mozilla L10n Automation Bot
17e14e9f57 [components] Import l10n. 2022-04-17 00:20:05 +00:00
Mozilla L10n Automation Bot
7f7c5b6928 [components] Import l10n. 2022-04-11 00:37:59 +00:00
Mozilla L10n Automation Bot
5c2edf0401 [components] Import l10n. 2022-04-05 00:21:36 +00:00
Jamie Nicol
682ef95b17 [components] For https://github.com/mozilla-mobile/android-components/issues/11954 - Prefer crash prompt over notification for background child process crashes
With the previous commit making the crash prompt more suitable for
background child process crashes, we should now favour showing it over
the notification. The notification is too hidden from the user,
resulting in fewer crashes being reported than desired.

On recent SDK versions, however, we may not be able to show the prompt
if the crash occurs while the app is in the background. So still use
the notification on those SDK versions.
2022-04-04 20:24:25 +00:00
Jamie Nicol
bb59a08515 [components] For https://github.com/mozilla-mobile/android-components/issues/11954 - Adapt crash prompt for background child process crashes
Although we currently prefer showing the crash notification over the
crash prompt for background process crashes, users can still open the
prompt by clicking on the notification. Unfortunately in its current
state the prompt is unsuitable for background process crashes. This
patch makes some adjustments to the prompt for the background process
case to make it less jarring:

* The title now matches the crash notification title for background
  child process crashes, eg "Sorry. A problem occurred in Firefox."
  rather than "Sorry. Firefox had a problem and crashed."
* We avoid setting the FLAG_ACTIVITY_CLEAR_TASK flag on the intent,
  meaning the browser remains visible behind the dialog.
* We remove the "Restart Firefox" button, as the browser has continued
  running and therefore does not need to be restarted.
2022-04-04 20:24:25 +00:00
Mozilla L10n Automation Bot
c285f63fff [components] Import l10n. 2022-04-04 19:55:57 +00:00
Arturo Mejia
60f13f07e3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/11940: Disable auto report crashes on the new SentryService sdk 2022-03-30 20:17:11 -07:00
Grigory Kruglov
2911d4490f [components] Allow disabling reporting of caught exceptions to Sentry 2022-03-29 14:59:38 -07:00
Jamie Nicol
9edf5f0f54 [components] For https://github.com/mozilla-mobile/android-components/issues/11876: Bucket native code crashes by process type in GleanCrashReporterService
Make GleanCrashReporterService count native code crashes based on
their processType field rather than whether they are fatal or
non-fatal.

Persisted fatal and non-fatal crashes will still be submitted for now,
but this code should be removed in a follow-up patch once we have
allowed time for them to be submitted.
2022-03-24 14:58:02 +00:00
Mozilla L10n Automation Bot
4dc34f9a64 [components] Import l10n. 2022-03-23 20:10:15 +00:00
Mozilla L10n Automation Bot
de86bbacd0 [components] Import l10n. 2022-03-23 00:19:53 +00:00
Mozilla L10n Automation Bot
642323ef4a [components] Import l10n. 2022-03-22 00:24:26 +00:00
Mozilla L10n Automation Bot
c839b8b4aa [components] Import l10n. 2022-03-21 22:01:32 +00:00
Mozilla L10n Automation Bot
2b47862a20 [components] Import l10n. 2022-03-20 00:27:09 +00:00
Mozilla L10n Automation Bot
1a59fe0d8f [components] Import l10n. 2022-03-19 00:25:14 +00:00
mcarare
9d4eb41837 [components] For https://github.com/mozilla-mobile/android-components/issues/11670: Use explicit intent for setup. 2022-03-18 12:43:16 +00:00
mcarare
33d5df7988 [components] For https://github.com/mozilla-mobile/android-components/issues/11670: Use shadowOf(getMainLooper()).idle() to execute all posted tasks.
This is needed due to the new default Looper Mode - PAUSED in Robolectric.
2022-03-18 12:43:16 +00:00
mcarare
42d0c1243e [components] For https://github.com/mozilla-mobile/android-components/issues/11670: Replace deprecated setupActivity. 2022-03-18 12:43:16 +00:00
Mozilla L10n Automation Bot
7d4f5d9117 [components] Import l10n. 2022-03-18 00:23:45 +00:00
Jamie Nicol
fa50ed5b41 [components] For https://github.com/mozilla-mobile/android-components/issues/11358 - Show crash notification for BACKGROUND_CHILD process crashes.
This adds a processType field to NativeCodeCrash which is read from
the GeckoView crash intent. This can have one of the following values:

* MAIN: indicating a fatal crash in the main process.
* FOREGROUND_CHILD: indicating a crash in a foreground child process (such as a
  Gecko content process). The application may be able to recover from this.
* BACKGROUND_CHILD: indicating a crash in a background child process (such as
  Gecko's GPU process). The engine will automatically recover from this, and the
  crash will have barely been noticeable to the user, if at all.

The existing isFatal property is now calculated from the processType. It is true
for MAIN, and false for others.

We treat MAIN crashes as we did fatal crashes before: we do not send the intent
to the application, but do show the prompt or notification to the user, if
required.

We treat FOREGROUND_CHILD crashes as we did non-fatal crashes before: sending
the intent to the application if requested.

For BACKGROUND_CHILD crashes, we do _not_ send the intent to the application. As
the engine automatically recovers there is no need for the application to handle
the crash. Additionally, we choose to display the crash notification rather than
prompt, as we do not wish to interrupt the user's flow.
2022-03-16 16:45:52 +00:00
Mozilla L10n Automation Bot
e009629e17 [components] Import l10n. 2022-03-12 00:21:49 +00:00
Jonathan Almeida
e8016bbe35 [components] Closes https://github.com/mozilla-mobile/android-components/issues/11646: Update Sentry version to latest release
Co-authored-by: Jonathan Almeida <jalmeida@mozilla.com>
Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2022-03-09 00:42:21 +00:00
Roger Yang
9207f32de3 [components] Close https://github.com/mozilla-mobile/android-components/issues/11809: Add missing EOL for Socorro report 2022-03-03 22:56:22 +00:00
Mozilla L10n Automation Bot
0ca1e422b7 [components] Import l10n. 2022-02-15 00:33:12 +00:00
mcarare
cba278b7af [components] For https://github.com/mozilla-mobile/android-components/issues/11717: Use app name for notification title. 2022-02-14 17:48:01 +00:00
Mugurell
d1ed87e71c [components] For https://github.com/mozilla-mobile/android-components/issues/11666 - Use PendingUtils.defaultFlags to specify mutability 2022-02-07 11:07:37 +00:00
Jonathan Almeida
6fff2ebc34 [components] Close https://github.com/mozilla-mobile/android-components/issues/11647: Remove lib-push-amazon component 2022-02-02 02:00:25 +00:00
iorgamgabriel
01c898fd7b [components] for https://github.com/mozilla-mobile/android-components/issues/6215 - Firefox crash notification is not displayed on devices with Android 11/Android 12 2022-01-27 15:31:45 +00:00
Matt Tighe
320db82e76 [components] remove deprecated lifecycle usages 2022-01-13 21:27:08 +00:00
Grigory Kruglov
ea678dc88f [components] Delete publicsuffixlist/ext/String
The only consumer of this, afaik, was logins sorting code in Fenix,
which after https://github.com/mozilla-mobile/fenix/pull/23163 stops using
this method.
2022-01-12 22:33:37 +00:00
Mozilla L10n Automation Bot
12afbcd07d [components] Import l10n. 2021-12-22 00:25:35 +00:00
rxu
bc58386677 [components] Add distribution ID support to Socorro crash reports 2021-12-09 06:36:17 +00:00
Mozilla L10n Automation Bot
c9c56e0e41 [components] Import l10n. 2021-11-20 00:34:43 +00:00
Mozilla L10n Automation Bot
66030bd986 [components] Import l10n. 2021-11-12 00:23:14 +00:00
Mozilla L10n Automation Bot
f9302c26d5 [components] Import l10n. 2021-10-25 17:30:12 +00:00
Sebastian Kaspari
90ec41fc3a [components] Update Kotlin and Jetpack Compose versions. 2021-10-25 10:58:07 +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
863bf833ca [components] Import l10n. 2021-08-27 00:21:54 +00:00
Jonathan Almeida
e7d3f34077 [components] Close https://github.com/mozilla-mobile/android-components/issues/10769: Add DebugAction.UpdateCreatedAtAction with reducer
We wanted to introduce this action for testing purposes in client apps
that want to "turn back time" for a certain tab.

The difficulty is in ensuring clients do not misuse these actions, and
we thought of a few strategies:

- Option 1: Make a separate grouping called `DebugAction` and document
that these are special actions.

- Option 2: Using a middleware, we only allow changes to the store
depending on some dynmamic logic in the client app. This is a bit
complicated and requries the user to restart the app to add this
special middleware.

- Option 3: Add an annotation that requires the client to opt into using
the action.

In this patch, I decided to go with a combination of options 1 and 3
which gave us the right about of warning and flexibility.

With option 2, we were still required to add new actions to the store
and the middleware would not have prevented misuse in those cases.
2021-08-12 03:56:04 +00:00
Jonathan Almeida
478711a6bf [components] Close https://github.com/mozilla-mobile/android-components/issues/10677: Update Mockito to 3.11.2
Co-authored-by: Mugurell <Mugurell@users.noreply.github.com>
2021-08-12 02:25:56 +00:00
Sebastian Kaspari
ce323400dd [components] Run ktlintFormat to fix new ktlint errors. 2021-07-28 12:03:23 +00:00
Michael Comella
06e80c6e10 [components] For https://github.com/mozilla-mobile/android-components/issues/10604: remove remaining unused imports automatically.
This commit was automatically generated with:
```sh
./gradlew ktlint --args="-F"
```
2021-07-27 19:39:04 +00:00
Michael Comella
56938c0849 [components] For https://github.com/mozilla-mobile/android-components/issues/10604: remove redundant constructor to MainCoroutineRule in tests.
The default argument is identical to the passed in argument.
2021-07-27 19:39:04 +00:00
Michael Comella
9f3e6f1a1b [components] For https://github.com/mozilla-mobile/android-components/issues/10604: reuse new TestCoroutineDispatcher in additional tests.
These follow a few more simple patterns I was able to find:
- the testDispatcher is not used anywhere else: remove it
- the testDispatcher is used to set a main dispatcher: this is redundant
to the test rule so remove it both the dispatcher & the main dispatcher
- the testDispatcher is actually used elsewhere: for simplicity, change
the reference to point at the MainCoroutineRule.
2021-07-27 19:39:04 +00:00
Michael Comella
6b28d7fae1 [components] For https://github.com/mozilla-mobile/android-components/issues/10604: reuse new TestCoroutineDispatcher in files with scope pattern.
I found a few antipatterns that were simple to address that used
a copy-pasted pattern that creates a new CoroutineScope.
2021-07-27 19:39:04 +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
1664ac9eb5 [components] For https://github.com/mozilla-mobile/android-components/issues/10515 - Populate the CrashReporterActivity layout. 2021-06-25 06:10:48 +00:00
Roger Yang
89cfe1df17 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10335: Update appcompat and fragment dependencies to 1.3.x. 2021-06-21 23:05:50 +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
Roger Yang
fc3893f5c7 [components] Revert "Issue https://github.com/mozilla-mobile/android-components/issues/10335: Update appcompat and fragment dependencies to 1.3.x."
This reverts commit d4acb0a56642347150d07ed431a554c62bdf6353.
2021-06-14 16:31:52 +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
Sebastian Kaspari
753f7a0971 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10335: Update appcompat and fragment dependencies to 1.3.x. 2021-06-14 15:02:37 +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
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
Mozilla L10n Automation Bot
5f4b14eec7 [components] Import l10n. 2021-06-05 00:18:44 +00:00
Sebastian Kaspari
98ab7b1b5f [components] Fix or suppress warnings from new detekt version. 2021-05-25 15:22:17 +00:00
Roger Yang
6e13e9d353 [components] No issue: update metrics.md 2021-05-21 18:44:08 +00:00
Mozilla L10n Automation Bot
d218d523cc [components] Import l10n. 2021-05-21 00:21:02 +00:00
Mozilla L10n Automation Bot
c17cb9921d [components] Import l10n. 2021-05-15 00:22:17 +00:00
Mozilla L10n Automation Bot
4aa33b72f9 [components] Import l10n. 2021-05-13 00:23:28 +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
Jonathan Almeida
be025ecd12 [components] Close https://github.com/mozilla-mobile/android-components/issues/10050: Upstream AbstractBinding from consuming applications 2021-05-04 20:14:29 +00:00
Mozilla L10n Automation Bot
c03bd2e998 [components] Import l10n. 2021-05-04 00:22:03 +00:00
Grisha Kruglov
0d4aa38533 [components] Introduce AutofillCrypto and add encryptio/decryption and key management to credit card storage 2021-04-21 21:06:50 +00:00