Using Firebase Crashlytics in SDK

30 Views Asked by At

I am working on SDK which uses react native. And I want to integrate Firebase crashlytics into my SDK. I was able to do it and I am using https://rnfirebase.io/ and all data are collected right. My google-service.json is in my SDK which is an "Android module" and it is working. But the problem is when I release my SDK to production or use aar file in another app. With simple integration, all data are collected to my Firebase space which is good but a problem starts when I am implementing Firebase into that simple project it will override my original google-service.json and all errors including errors from my SDK are collected in a new instance of firebase because it is init before my and I can not init another instance of firebase ... Any idea how to create two different instance of firebase or some alternative for collecting crashing for SDK?

0

There are 0 best solutions below