回答編集履歴
1
Firebase側の設定について追記
answer
CHANGED
@@ -1,3 +1,22 @@
|
|
1
1
|
お使いのCrashlyticsのバージョンにもよりそうですが、まずは公式ドキュメントに従って設定してみてはどうでしょうか?
|
2
2
|
|
3
|
-
[https://docs.fabric.io/android/crashlytics/build-tools.html#disable-crashlytics-for-debug-builds](https://docs.fabric.io/android/crashlytics/build-tools.html#disable-crashlytics-for-debug-builds)
|
3
|
+
[https://docs.fabric.io/android/crashlytics/build-tools.html#disable-crashlytics-for-debug-builds](https://docs.fabric.io/android/crashlytics/build-tools.html#disable-crashlytics-for-debug-builds)
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
**追記: Firebase Crashlyticsを使っている場合**
|
8
|
+
|
9
|
+
上記の内容に加えて、以下のようにManifestの内容を変更する必要があります。
|
10
|
+
manifestPlaceholdersを使ってdebug時のみcrashlyticsEnabledがfalseになるようにしてください。
|
11
|
+
|
12
|
+
- AndroidManifest.xml
|
13
|
+
|
14
|
+
```xml
|
15
|
+
<application ...>
|
16
|
+
...
|
17
|
+
<meta-data
|
18
|
+
android:name="firebase_crashlytics_collection_enabled"
|
19
|
+
android:value="${crashlyticsEnabled}"
|
20
|
+
/>
|
21
|
+
</application>
|
22
|
+
```
|