From b421b6a504a922da1e0bfd53a29610801c84ff29 Mon Sep 17 00:00:00 2001 From: Felipe Leon Date: Mon, 23 Sep 2024 17:22:51 -0300 Subject: [PATCH] Comment out Crashlytics --- apk/app/build.gradle | 4 ++-- .../src/main/java/com/fgl27/twitch/PlayerActivity.java | 8 ++++---- apk/app/src/main/java/com/fgl27/twitch/Tools.java | 10 +++++----- apk/build.gradle | 4 ++-- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/apk/app/build.gradle b/apk/app/build.gradle index 64a7d63af..3f257d817 100644 --- a/apk/app/build.gradle +++ b/apk/app/build.gradle @@ -2,8 +2,8 @@ apply from: '../versions.gradle' apply plugin: 'com.android.application' //Crashlytics -apply plugin: 'com.google.gms.google-services' -apply plugin: 'com.google.firebase.crashlytics' +//apply plugin: 'com.google.gms.google-services' +//apply plugin: 'com.google.firebase.crashlytics' //Crashlytics end android { diff --git a/apk/app/src/main/java/com/fgl27/twitch/PlayerActivity.java b/apk/app/src/main/java/com/fgl27/twitch/PlayerActivity.java index 58ef7294f..2f1217432 100644 --- a/apk/app/src/main/java/com/fgl27/twitch/PlayerActivity.java +++ b/apk/app/src/main/java/com/fgl27/twitch/PlayerActivity.java @@ -89,7 +89,7 @@ import com.fgl27.twitch.channels.ChannelsUtils; import com.fgl27.twitch.notification.NotificationUtils; import com.google.firebase.FirebaseApp; -import com.google.firebase.crashlytics.FirebaseCrashlytics; +//import com.google.firebase.crashlytics.FirebaseCrashlytics; import com.google.gson.Gson; import net.grandcentrix.tray.AppPreferences; @@ -339,8 +339,8 @@ protected void onCreate(Bundle savedInstanceState) { intent.setAction(null); setIntent(intent); - FirebaseApp.initializeApp(this); - FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true); + //FirebaseApp.initializeApp(this); + //FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(true); try { setContentView(R.layout.activity_player); @@ -434,7 +434,7 @@ protected void onCreate(Bundle savedInstanceState) { initializeWebview(); StopNotificationService(); - FirebaseCrashlytics.getInstance().sendUnsentReports(); + //FirebaseCrashlytics.getInstance().sendUnsentReports(); DataThreadPool.execute(() -> Tools.GetUpdateFile(getApplicationContext())); diff --git a/apk/app/src/main/java/com/fgl27/twitch/Tools.java b/apk/app/src/main/java/com/fgl27/twitch/Tools.java index 475c0c3c8..b55d9345d 100644 --- a/apk/app/src/main/java/com/fgl27/twitch/Tools.java +++ b/apk/app/src/main/java/com/fgl27/twitch/Tools.java @@ -74,7 +74,7 @@ import com.fgl27.twitch.DataSource.DefaultHttpDataSource; import com.fgl27.twitch.notification.NotificationService; -import com.google.firebase.crashlytics.FirebaseCrashlytics; +//import com.google.firebase.crashlytics.FirebaseCrashlytics; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; @@ -1045,21 +1045,21 @@ public static void recordException(String TAG, String message, Throwable e) { try { - FirebaseCrashlytics.getInstance().log(TAG + " " + message); + //FirebaseCrashlytics.getInstance().log(TAG + " " + message); if (e != null) { - FirebaseCrashlytics.getInstance().recordException(e); + //FirebaseCrashlytics.getInstance().recordException(e); Log.w(TAG, message, e); } else { - FirebaseCrashlytics.getInstance().recordException(new RuntimeException(TAG + " e " + message)); + //FirebaseCrashlytics.getInstance().recordException(new RuntimeException(TAG + " e " + message)); Log.w(TAG, message); } - FirebaseCrashlytics.getInstance().sendUnsentReports(); + //FirebaseCrashlytics.getInstance().sendUnsentReports(); } catch (Exception ignore) {//Just in case prevent a crash sending a crash } diff --git a/apk/build.gradle b/apk/build.gradle index 812d2c179..cfe25a657 100644 --- a/apk/build.gradle +++ b/apk/build.gradle @@ -12,8 +12,8 @@ buildscript { classpath 'com.android.tools.build:gradle:8.6.1'//update gradlew -> ./gradlew wrapper //Crashlytics - classpath 'com.google.gms:google-services:4.4.2' - classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2' + //classpath 'com.google.gms:google-services:4.4.2' + //classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2' //Crashlytics end // NOTE: Do not place your application dependencies here; they belong