title: Prevent Firebase-Crashlytics from sending version numbers when collection is disabled
body: <p>During development and in QA tests we compile our apps in release mode to ensure everything is OK.</p>
  
  <p>We don't want crash reporting during development, so we put this in the AndroidManifest.xml:</p>
  
  <pre><code>&lt;meta-data android:name="firebase_crash_collection_enabled" android:value="false" /&gt;
  &lt;meta-data android:name="firebase_analytics_collection_enabled" android:value="false" /&gt;
  </code></pre>
  
  <p>In our application's onCreate:</p>
  
  <pre><code>FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(BuildConfig.crashlytics_enabled);
  </code></pre>
  
  <p>In app's build.gradle:</p>
  
  <pre><code>...    
  apply plugin: 'com.google.firebase.crashlytics'
  ...
  android {
      ...
      buildTypes {
          release {
              buildConfigField "boolean", "crashlytics_enabled", (isOfficialRelease() || isDailyJob()) ? "true" : "false"
              minifyEnabled true
              if (buildConfigFields.get("crashlytics_enabled").getValue() == "false" &amp;&amp; minifyEnabled) {
                  firebaseCrashlytics {
                      mappingFileUploadEnabled false
                  }
              }
          }
      }
  }
  ...
  apply plugin: 'com.google.gms.google-services'
  </code></pre>
  
  <p>The problem is, even when crashlytics is disabled, we still get the version number &amp; version name uploaded to crashlytics, and is clobbering up the filter dialog, so we are lost in a myriad of versions.</p>
  
  <p><a href="https://i.stack.imgur.com/uzwBx.png" rel="nofollow noreferrer">This is how our filter dialog looks now</a></p>
  
  <p>Also, since <a href="https://firebase.googleblog.com/2019/03/crashlytics-versions.html" rel="nofollow noreferrer">Firebase Crashlytics only shows the last 100 versions</a>, we may end in a situation where we may lose track of the official releases.</p>
  
  <p>Is there a way to prevent the sending of versions altogether?</p>