You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`WhatTheStack` initializes automatically when your application starts. It accomplishes this using a `ContentProvider`.
19
+
`WhatTheStack` initializes automatically when your application starts. It accomplishes this using Jetpack's App Startup library.
18
20
19
-
If you want to disable automatic initialization, you should disable the initialization content provider of this library by adding the following lines to your application's `AndroidManifest.xml` file:
21
+
If you want to disable automatic startup, add the following lines to your Manifest file:
This library works by setting a default `UncaughtExceptionHandler` on your app, and running a service to receive notifications about these exceptions.
37
+
This library works by setting a default `UncaughtExceptionHandler` on your app, and running a service to receive notifications about thrown exceptions.
31
38
32
-
When an uncaught exception is thrown, it is caught by this handler and sent to the service running in a _different process than your application_ to parse and display the information about the exception to you.
39
+
When an uncaught exception is thrown, it is caught by this handler and sent to the service running in a _different process than your application_ to parse and display information about the exception.
33
40
34
41
Running in a separate process is important because when an uncaught exception is thrown, the main thread of your application becomes unable to perform any UI related actions, and hence can't launch an intent to display the error screen shipped with this library.
35
42
43
+
## Breaks Crash Reporting in Debug builds
44
+
45
+
WhatTheStack works by replacing the default uncaught exception handler in your app's process.
46
+
Unfortunately, crash reporting libraries such as Firebase Crashlytics also work in this manner.
47
+
Since there can only be one default uncaught exception handler and there is no fixed order of initialization for them, WhatTheStack prevents crash reporting libraries from working properly in debug builds.
48
+
This is not a problem for most of the time as crash reporting is commonly used only in release builds.
49
+
36
50
## Installation
37
51
38
52
Add Jitpack repository in your root `build.gradle` file:
@@ -60,5 +74,3 @@ It is not recommended to use WhatTheStack in anything other than debug builds of
60
74
## Contributions
61
75
62
76
Contributions to this library are very welcome.
63
-
64
-
I threw this together over one weekend, and it hasn't been thoroughly tested. Community validation and contributions would therefore be great.
0 commit comments