From 509d22a98c63a7f161e4093cef352c65e9e1ab80 Mon Sep 17 00:00:00 2001 From: Zane Schepke Date: Tue, 18 Jul 2023 17:07:36 -0400 Subject: [PATCH] build: disable crashlytics on debug builds --- app/src/main/AndroidManifest.xml | 4 +++- .../zaneschepke/wireguardautotunnel/WireGuardAutoTunnel.kt | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 580267a..44e14ad 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,6 @@ - @@ -70,5 +69,8 @@ + \ No newline at end of file diff --git a/app/src/main/java/com/zaneschepke/wireguardautotunnel/WireGuardAutoTunnel.kt b/app/src/main/java/com/zaneschepke/wireguardautotunnel/WireGuardAutoTunnel.kt index bf8a51d..12cb773 100644 --- a/app/src/main/java/com/zaneschepke/wireguardautotunnel/WireGuardAutoTunnel.kt +++ b/app/src/main/java/com/zaneschepke/wireguardautotunnel/WireGuardAutoTunnel.kt @@ -1,6 +1,8 @@ package com.zaneschepke.wireguardautotunnel import android.app.Application +import com.google.android.datatransport.BuildConfig +import com.google.firebase.crashlytics.FirebaseCrashlytics import com.zaneschepke.wireguardautotunnel.repository.Repository import com.zaneschepke.wireguardautotunnel.service.tunnel.model.Settings import dagger.hilt.android.HiltAndroidApp @@ -15,7 +17,10 @@ class WireGuardAutoTunnel : Application() { override fun onCreate() { super.onCreate() - if(BuildConfig.DEBUG) Timber.plant(Timber.DebugTree()) + if(BuildConfig.DEBUG) { + FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(false); + Timber.plant(Timber.DebugTree()) + } settingsRepo.init() } } \ No newline at end of file