I was Using Fabric (Crashlytics and Digits) in my app since long time. I used to initialise Fabric instance by adding something like this.
Fabric.with(this, new Crashlytics(), new TwitterCore(authConfig), new Digits.Builder().withTheme(R.style.CustomDigitsTheme).build());
Then I added Twitter Core dependency as I wanted to use TwitterUI which is
But now Fabric can’t be initialised as
TwitterCore class is now not extending from
Kit. Basically Fabric’s
with method signature is something like this
with(Context context, Kit... kits) but since TwitterCore is not extending from
with method won’t accept it. I tried removing
TwitterCore from list of
Kits passed in
with method but Digits crashed immediately.
Note that If I Remove twitter dependancy then
TwitterCore is extending from
Kit and everything works fine.
What is the right way to init Fabric with Digits and Crashlytics now that Twitter Kit is not part of Fabric? Can someone provide snippet?