禁止进口Crashlytics的 [英] Disable importing of Crashlytics

查看:162
本文介绍了禁止进口Crashlytics的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚整合Crashlytics到我的应用程序。但我有一个问题:它总是启用

I just recently integrated Crashlytics into my App. But I am having a "problem": Its always enabled

在他们的网页(以及各种计算器线程),它表示将其关闭我必须包括ext.enableCrashlytics =假到我build.gradle。 所以,我的buildTypes如下所示

On their page (and in various stackoverflow threads) its said to turn it off I have to include ext.enableCrashlytics = false into my build.gradle. So my buildTypes look like the following

buildTypes {
        debug {
            applicationIdSuffix ".debug"
            versionNameSuffix "-DEV"
            ext.enableCrashlytics = false
        }
        release {
            minifyEnabled false //TODO:Switch to true and add Proguard config to release
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            ext.enableCrashlytics = true
        }
    }

但每次我运行调试buildType应用程序的工作没有任何崩溃,即Crashlytics.start(这)工作没有,即使我认为它wouldnt甚至可以编译成enableCrashlytics = FALSE(奇怪的问题的应用程序崩溃记者了解,我知道)。

But everytime I run the debug buildType the application works without any crashes, i.e. Crashlytics.start(this) works without a crash even though I thought that it wouldnt even be compiled into the app with enableCrashlytics = false (strange "problem" to report, I know).

我想知道为什么应用程序犯规崩溃(进一步提高我使用build.gradle文件的理解)。 我想知道为什么我不能禁用Crashlytics与建议Crashlytics自己的人的摇篮指令。我知道我可以通过简单地不启动它摆脱Crashlytics的(以Crashlytics.start没有呼叫(本)),但随后的指令enableCrashlytics是无用的,对吧?

I want to understand why the app doesnt crash (to further improve my understanding of using the build.gradle file). And I want to understand why I cant disable Crashlytics with the gradle directive proposed by Crashlytics themselve. I know I can get rid of Crashlytics by simply not starting it (no call to Crashlytics.start(this)) but then the directive enableCrashlytics would be useless, right?

我缺少的东西?

推荐答案

迈克Crashlytics这里。

Mike from Crashlytics here.

ext.enableCrashlytics = false

禁用发送一个映射文件到我们的后端或生成一个ID为你构建,从而加快构建摇篮那些味道。

disables sending a mapping file to our backend or generating an ID for your build, which speeds up gradle builds of those flavors.

如果要禁用Crashlytics的调试版本,然后从这太问题应该帮助。

If you want to disable Crashlytics for debug builds, then the answers from this SO question should help.

这篇关于禁止进口Crashlytics的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆