title: Disable importing of Crashlytics
body: <p>I just recently integrated Crashlytics into my App. But I am having a "problem": It's always enabled.</p>
  
  <p>On their page (and in various stackoverflow threads) it's said to turn it off I have to include <code>ext.enableCrashlytics = false</code> into my build.gradle.
  So my buildTypes look like the following:</p>
  
  <pre><code>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
          }
      }
  </code></pre>
  
  <p>But every time I run the debug buildType the application works without any crashes, i.e. <code>Crashlytics.start(this)</code> works without a crash even though I thought that it wouldn't even be compiled into the app with <code>enableCrashlytics = false</code> (strange "problem" to report, I know).</p>
  
  <p>I want to understand why the app doesn't crash (to further improve my understanding of using the build.gradle file). 
  And I want to understand why I can't disable Crashlytics with the gradle directive proposed by Crashlytics themselves. I know I can get rid of Crashlytics by simply not starting it (no call to <code>Crashlytics.start(this)</code>) but then the directive <code>enableCrashlytics</code> would be useless, right?</p>
  
  <p>Am I missing something?</p>