Pak*_*ko1 5 android google-analytics firebase crashlytics crashlytics-android
我正在开发一个 Android 应用程序,由于隐私政策,我们应该选择加入和退出崩溃和分析选项。我已经配置了 crashlytics,一切正常。当我禁用 crashlytics 时,我不会收到任何崩溃报告,当我启用时,我会再次开始收到它们。当我禁用分析时,我没有收到任何崩溃报告。这是我们应该期望的行为吗,因为我在某处读到分析只会提供更好的崩溃报告,而不是禁用它们。
清单文件
<meta-data
android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
<meta-data
android:name="firebase_analytics_collection_enabled"
android:value="false" />
Run Code Online (Sandbox Code Playgroud)
构建gradle依赖
dependencies {
classpath 'com.android.tools.build:gradle:4.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21"
classpath 'com.google.android.gms:oss-licenses-plugin:0.10.2'
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Run Code Online (Sandbox Code Playgroud)
构建gradle应用程序
//Firebase
implementation platform('com.google.firebase:firebase-bom:26.3.0'){
because("You don't specify versions in Firebase library dependencies")
}
implementation ('com.google.firebase:firebase-crashlytics-ktx'){
because("We want to be able to find and solve the crashes in the apps")
}
implementation ('com.google.firebase:firebase-analytics-ktx'){
because("It is required in order to make crashlytics work")
}
implementation ('com.google.firebase:firebase-analytics-ktx'){
because("It simplifies callbacks etc for firebase")
}
Run Code Online (Sandbox Code Playgroud)
提前致谢!
归档时间: |
|
查看次数: |
1231 次 |
最近记录: |