Fabric apiSecret 的用途是什么?

What is the Fabric apiSecret used for?

在 Android 文档和各种在线示例的历史 Fabric/Crashlytics 中,提到了 Fabric 'apiSecret' 应该包含在您的 fabric.properties 文件中。然而,在最新的关于使用 Gradle 进行设置的官方文档中,并没有提到它:https://fabric.io/kits/android/crashlytics/install。 Gradle 设置似乎不再使用 fabric.properties 而是使用 AndroidManifest.xml.

中定义的 apiKey

在 Android Gradle 项目中处理 'apiSecret' 和 'apiKey' 的推荐方法是什么?

目前 Google 正在从 fabric/crashlytics 过渡到 firebase/crashlytics。如果您目前正在实施 crashlytics

,我建议您查看本指南

https://firebase.google.com/docs/crashlytics/

如果走这条路,您必须在 firebase 中创建一个应用程序项目后从 firebase 下载一个 .json 文件,并将其包含在您的应用程序中。不需要密钥。