Commit Graph

27 Commits

Author SHA1 Message Date
mcarare
1070e28db0 Bug 1893120 - Run AC Robolectric tests on SDK 34 and adapt tests. r=android-reviewers,webcompat-reviewers,twisniewski,avirvara
Differential Revision: https://phabricator.services.mozilla.com/D209640
2024-05-14 13:00:48 +00:00
acseh
3f4b08c594 Backed out changeset 9976b7730dbd (bug 1893120) for causing lint failures CLOSED TREE 2024-05-14 12:57:36 +03:00
mcarare
4a11afeae1 Bug 1893120 - Run AC Robolectric tests on SDK 34 and adapt tests. r=android-reviewers,webcompat-reviewers,twisniewski,avirvara
Differential Revision: https://phabricator.services.mozilla.com/D209640
2024-05-14 08:02:38 +00:00
Ryan VanderMeulen
6c60f85616 Bug 1857093 - Update Sentry to version 6.33.1 2023-11-09 17:04:21 +00:00
Jeff Boek
a3ea1c628b Bug 1851676 - Makes initIfNeeded public inside SentryService. 2023-09-19 19:06:04 +00:00
William Durand
1e154d2194 Bug 1851518 - Include remoteType in Fenix crash pings 2023-09-12 12:29:33 +00:00
mcarare
063c553913 Bug 1849833 - Replace deprecated compileSdkVersion.
This is replaced by defaultConfig compileSdk.
2023-09-11 06:36:20 +00:00
Gabriel Luong
cd6f5e0e77 Bug 1795140 - Enable AbsentOrWrongFileLicense detekt rule 2023-08-14 17:53:38 +00:00
MatthewTighe
c87183c8b5 Bug 1843168 - Expose Mockito through test support component 2023-07-24 18:02:09 +00:00
Jeff Boek
8e8e594281 Bug 1835107 - Attaches a Mechanism to the SentryException before sending it to Sentry 2023-06-01 16:09:08 +00:00
Geoff Brown
6561b2de2b Bug 1825116 - Resolve many black, isort, and file-whitespace lint issues 2023-04-12 14:04:29 +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
Ben Dean-Kawamura
ac04546caf Bug 1804157 - Adding back breadcrumb date changes
These changes don't seem to be causing the crash, so let's not back them
out.
2022-12-08 20:24:37 +00:00
Ben Dean-Kawamura
2ecb64ab9e Bug 1804157 - Revert "Bug 1801349 - Sentry breadcrumb fixes"
This reverts commit 2a0d18a4b542bb8a7da59e0e2b9d6299a5240172.
2022-12-08 20:24:37 +00:00
Christian Sadilek
4091b14a33 Fix android lint in composite builds 2022-11-21 13:40:53 -05: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
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
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
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
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
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
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
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