How to disable default Firebase crash reporting?

后端 未结 4 1458
自闭症患者
自闭症患者 2021-01-15 10:11

If I use apply plugin: \'com.google.gms.google-services\' in my build.gradle, Google says, The default configuration includes Firebase Analytics a

4条回答
  •  抹茶落季
    2021-01-15 10:24

    The piece of information on that tooltip about Crash Reporting being added by default when using the plugin (version 3.0.0) is actually incorrect. We need to correct that. You can verify for yourself what gets added to your project when you apply the google-services plugin version 3.0.0 by running ./gradlew androidDependencies on a fresh Android project with only that plugin applied. You'll see that firebas-crash will not appear in the dependency tree.

    The plugin does add Firebase Analytics, which can be disabled programmatically or by configuration if you don't want it to collect data.

    Similar disabling of Crash (when it is present, because you declared the dependency in your build.gradle) is a hotly requested feature, and we're working on that.

提交回复
热议问题