Closed ahmed56734 closed 5 years ago
Should be possible by registering a custom ReportingAdministrator
which filters out everything except those with your package name in the stacktrace.
A more common pattern would be to have app developers catch crashes as they want to and let them report to upstream if a library is causing issues.
@F43nd1r 1- I tried to extend the reportingAdministrator but I don't know how to get the package name of the collected report ?
2- finally how to register that custom Administrator
Override shouldStartCollecting with something like
class MyAdmin implements ReportingAdministrator {
@Override
public boolean shouldStartCollecting(@NonNull Context context, @NonNull CoreConfiguration config, @NonNull ReportBuilder reportBuilder) {
if (reportBuilder.getException() != null) {
StringWriter stringWriter = new StringWriter();
reportBuilder.getException().printStackTrace(new PrintWriter(stringWriter));
return stringWriter.toString().contains("your.package.name");
}
return false;
}
}
can't find the auto-service annotation processor classpath anywhere
@F43nd1r
I already did that
It is auto-service, not auto-service-compile
On Thu, 29 Nov 2018, 12:22 ahmed <notifications@github.com wrote:
[image: screen shot 2018-11-29 at 1 17 20 pm] https://user-images.githubusercontent.com/10393214/49218531-51c33300-f3d9-11e8-9731-f493229c93e3.png I already did that
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ACRA/acra/issues/715#issuecomment-442798761, or mute the thread https://github.com/notifications/unsubscribe-auth/AJxxpCW_wPzUidnhk7O26cgO3q3C5KtZks5uz8NegaJpZM4YvP7v .
I am working on an android library, I want to know if it's possible to use Acra to detect and collect crashes related to my library not the app module ?