Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to completely uninstall Twitter's Fabric SDK from android project?

I have integrated the Fabric SDK by Twitter to an android project of mine, and now I would like to remove it completely. As I've seen so far, this SDK is fairly new, hence has little documentation and functionality beyond the most common use cases. I haven't found anything related to uninstalling it as yet.

I've tried removing the fabric-related code from the build.gradle file (and of course removing the invocations in java classes), though when I build the project, a file named crashlytics-build.properties appears in the project's folder for a few seconds. My IDE is IntelliJ. I am not experienced with gradle, and know that this wouldn't be more than a superficial method anyway.

So, my question is: how to uninstall fabric completely, without leaving a trace?

like image 317
Laszlo L. Mári Avatar asked Sep 28 '22 20:09

Laszlo L. Mári


1 Answers

Besides the gradle files, AndroidManifest.xml also contains Fabric related data. Make sure to delete this line from the file:

<meta-data android:name="com.crashlytics.ApiKey" android:value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/>

Besides this, look for $PROJECT/android/crashlytics.properties and remove this as well. This file contains the secret API key.

Hope this helps

like image 86
spqpad Avatar answered Oct 03 '22 07:10

spqpad