Logging from a Java library within an Android app


#1

I’ve got an Android app in production which uses a pure Java library of my own. I’m currently using Crashlytics but am here because I can’t link Crashlytics into the Java library and so have to have the Java library log to an interface supplied at runtime by the Android app. This works but means that all Java-originated exceptions bunch into a single issue in Crashlytics (the resultant stack traces look questionable too). Fabric have confirmed there’s no workaround.

Could I achieve this in Sentry? I’ve had a quick look at the docs which state the Android SDK is built on the Java one. Could I thus include the Java SDK with my Java library and the Android SDK with the Android app, assuming the Java / Android SDKs were in step and exceptions could then be logged from both Android and the Java library?