How to disable Crashlytics during development

后端 未结 28 2608
心在旅途
心在旅途 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:51

    Use flavors or build configs. Use a separate build identifier for dev build and all your crashes will keep going to a separate app. Can come handy in case of sharing the build with peers or using it without a debugger. Something like this -

        productFlavors {
        dev {
            applicationId "io.yourapp.developement"
        }
        staging {
            applicationId "io.yourapp.staging"
        }
    
        production {
            applicationId "io.yourapp.app"
        }
    

提交回复
热议问题