How to disable Crashlytics during development

后端 未结 28 2603
心在旅途
心在旅途 2020-11-29 15:42

Is there any simple way to turn Crashlytics Android SDK off while developing ?

I don\'t want it to send a crash every time I do something stupid

On the othe

28条回答
  •  感动是毒
    2020-11-29 15:56

    We can use fabric's isDebuggable() method.

    import static io.fabric.sdk.android.Fabric.isDebuggable;
    
    if(! isDebuggable()){
        // set Crashlytics ... 
    }
    

    Happy coding :)

提交回复
热议问题