Enable RxJava2 assembly tracking
masterTo make RxJava2 crash reports clear and unique, enable assembly tracking as early as possible in your application lifecycle.
Important: You must call this method AFTER setting up any crash reporting mechanism (like Crashlytics or Fabric).
If you provide basePackageNames, the library will ensure that Stack Traces contain a reference to your code within those packages. This also helps crash reporting systems (like Crashlytics) treat different RxJava pipelines as unique issues rather than bundling them into a single report.
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Fabric.with(this, new Crashlytics());
// Enable RxJava assembly stack collection
// Call this AFTER setting up Crash reporting
RxJava2Debug.enableRxJava2AssemblyTracking(new String[]{"com.example.myapp", "com.example.mylibrary"});
}
}