From c50b599ea5c4f742aaac6f397a4ceb06fcfb45ab Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 5 Feb 2020 10:39:35 +1100 Subject: [PATCH] Remove Crashlytics --- build.gradle | 4 ---- .../thoughtcrime/securesms/ApplicationContext.java | 12 +++--------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/build.gradle b/build.gradle index 6894a92fab..f8c62cab55 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,6 @@ buildscript { ext.kovenant_version = "3.3.0" ext.identicon_version = "v11" ext.rss_parser_version = "2.0.4" - ext.crashlytics_version = "2.10.1" repositories { mavenLocal() @@ -195,9 +194,6 @@ dependencies { implementation "nl.komponents.kovenant:kovenant-android:$kovenant_version" implementation "com.github.lelloman:android-identicons:$identicon_version" implementation "com.prof.rssparser:rssparser:$rss_parser_version" - implementation("com.crashlytics.sdk.android:crashlytics:$crashlytics_version@aar") { - transitive = true - } implementation "com.jakewharton.rxbinding3:rxbinding:3.1.0" implementation "com.github.tbruyelle:rxpermissions:0.10.2" implementation "com.github.ybq:Android-SpinKit:1.4.0" diff --git a/src/org/thoughtcrime/securesms/ApplicationContext.java b/src/org/thoughtcrime/securesms/ApplicationContext.java index eed7ba2f38..7f099f4617 100644 --- a/src/org/thoughtcrime/securesms/ApplicationContext.java +++ b/src/org/thoughtcrime/securesms/ApplicationContext.java @@ -31,7 +31,6 @@ import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.multidex.MultiDexApplication; -import com.crashlytics.android.Crashlytics; import com.google.android.gms.security.ProviderInstaller; import org.conscrypt.Conscrypt; @@ -65,14 +64,14 @@ import org.thoughtcrime.securesms.logging.CustomSignalProtocolLogger; import org.thoughtcrime.securesms.logging.Log; import org.thoughtcrime.securesms.logging.PersistentLogger; import org.thoughtcrime.securesms.logging.UncaughtExceptionLogger; -import org.thoughtcrime.securesms.loki.redesign.messaging.LokiAPIDatabase; import org.thoughtcrime.securesms.loki.LokiPublicChatManager; -import org.thoughtcrime.securesms.loki.redesign.messaging.LokiRSSFeedPoller; -import org.thoughtcrime.securesms.loki.redesign.messaging.LokiUserDatabase; import org.thoughtcrime.securesms.loki.MultiDeviceUtilities; import org.thoughtcrime.securesms.loki.redesign.activities.HomeActivity; import org.thoughtcrime.securesms.loki.redesign.messaging.BackgroundPollWorker; import org.thoughtcrime.securesms.loki.redesign.messaging.BackgroundPublicChatPollWorker; +import org.thoughtcrime.securesms.loki.redesign.messaging.LokiAPIDatabase; +import org.thoughtcrime.securesms.loki.redesign.messaging.LokiRSSFeedPoller; +import org.thoughtcrime.securesms.loki.redesign.messaging.LokiUserDatabase; import org.thoughtcrime.securesms.loki.redesign.utilities.Broadcaster; import org.thoughtcrime.securesms.notifications.MessageNotifier; import org.thoughtcrime.securesms.notifications.NotificationChannels; @@ -114,7 +113,6 @@ import java.util.Set; import java.util.concurrent.TimeUnit; import dagger.ObjectGraph; -import io.fabric.sdk.android.Fabric; import kotlin.Unit; import network.loki.messenger.BuildConfig; import okhttp3.Cache; @@ -186,10 +184,6 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc ProcessLifecycleOwner.get().getLifecycle().addObserver(this); // Loki - Set up P2P API if needed setUpP2PAPI(); - // Loki - Set up beta analytics - if (!BuildConfig.DEBUG) { - Fabric.with(this, new Crashlytics()); - } // Loki - Set the cache LokiDotNetAPI.setCache(new Cache(this.getCacheDir(), OK_HTTP_CACHE_SIZE)); // Loki - Update device mappings