回答編集履歴
1
Firebase側の設定について追記
test
CHANGED
@@ -3,3 +3,41 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
[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)
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
---
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
**追記: Firebase Crashlyticsを使っている場合**
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
上記の内容に加えて、以下のようにManifestの内容を変更する必要があります。
|
18
|
+
|
19
|
+
manifestPlaceholdersを使ってdebug時のみcrashlyticsEnabledがfalseになるようにしてください。
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
- AndroidManifest.xml
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
```xml
|
28
|
+
|
29
|
+
<application ...>
|
30
|
+
|
31
|
+
...
|
32
|
+
|
33
|
+
<meta-data
|
34
|
+
|
35
|
+
android:name="firebase_crashlytics_collection_enabled"
|
36
|
+
|
37
|
+
android:value="${crashlyticsEnabled}"
|
38
|
+
|
39
|
+
/>
|
40
|
+
|
41
|
+
</application>
|
42
|
+
|
43
|
+
```
|