Skip to content

Commit

Permalink
Remove crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
klassm committed Jul 6, 2024
1 parent 90c9151 commit 750f4a8
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 22 deletions.
1 change: 0 additions & 1 deletion app/build-includes/android.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ android {
}

debug {
ext.enableCrashlytics = false
ext.alwaysUpdateBuildId = false
//shrinkResources true
//minifyEnabled true
Expand Down
7 changes: 1 addition & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ buildscript {
version = "2.5.3"
)
classpath(group = "com.google.firebase", name = "perf-plugin", version = "1.4.2")
classpath(group = "com.google.firebase", name = "firebase-crashlytics-gradle", version = "3.0.1")
}
}

Expand Down Expand Up @@ -163,9 +162,6 @@ dependencies {
exclude(group = "glide-parent")
}

implementation(platform("com.google.firebase:firebase-bom:32.8.0"))
implementation("com.google.firebase:firebase-crashlytics")

implementation(group = "org.jetbrains.kotlin", name = "kotlin-stdlib-jdk7", version = kotlinVersion)
implementation(group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version = "1.6.3")
implementation(group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version = coroutinesVersion)
Expand Down Expand Up @@ -202,5 +198,4 @@ apply(from = "build-includes/android.gradle")
apply(from = "build-includes/unmock.gradle")
apply(from = "build-includes/postTasks.gradle")
apply(plugin = "com.google.gms.google-services")
apply(plugin = "com.google.firebase.firebase-perf")
apply(plugin = "com.google.firebase.crashlytics")
apply(plugin = "com.google.firebase.firebase-perf")
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import android.app.Application
import android.appwidget.AppWidgetManager
import android.content.Context
import android.content.SharedPreferences
import com.google.firebase.crashlytics.FirebaseCrashlytics
import li.klass.fhem.appwidget.ui.widget.WidgetTypeProvider
import li.klass.fhem.util.preferences.SharedPreferencesService
import org.slf4j.LoggerFactory
Expand Down Expand Up @@ -64,7 +63,6 @@ class AppWidgetInstanceManager @Inject constructor(
val content = widgetView.createView(applicationContext, configuration)
appWidgetManager.updateAppWidget(widgetId, content)
} catch (e: Exception) {
FirebaseCrashlytics.getInstance().recordException(e)
LOG.error("updateWidgetAfterDeviceListReload() - something strange happened during appwidget update", e)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
*/
package li.klass.fhem.graph.backend.gplot

import com.google.firebase.crashlytics.FirebaseCrashlytics
import li.klass.fhem.graph.backend.gplot.GPlotSeries.*
import org.slf4j.LoggerFactory
import java.io.IOException
Expand All @@ -41,10 +40,6 @@ class GPlotParser @Inject constructor() {
parse(content)
} catch (e: Exception) {
LOGGER.warn("parseSafe() - cannot parse: \r\n$content", e)
FirebaseCrashlytics.getInstance().apply {
setCustomKey("content", content)
recordException(e)
}
null
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ package li.klass.fhem.update.backend
import android.app.Application
import android.content.Context
import android.content.Intent
import com.google.firebase.crashlytics.FirebaseCrashlytics
import li.klass.fhem.appindex.AppIndexIntentService
import li.klass.fhem.connection.backend.ConnectionService
import li.klass.fhem.connection.backend.DataConnectionSwitch
Expand Down Expand Up @@ -143,7 +142,6 @@ class DeviceListUpdateService @Inject constructor(
applicationContext.startService(Intent("com.google.firebase.appindexing.UPDATE_INDEX")
.setClass(applicationContext, AppIndexIntentService::class.java))
} catch (e: Exception) {
FirebaseCrashlytics.getInstance().recordException(e)
LOG.debug("cannot update app index, probably because we are in background", e)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
package li.klass.fhem.update.backend.device.configuration

import android.content.Context
import com.google.firebase.crashlytics.FirebaseCrashlytics
import li.klass.fhem.resources.ResourceIdMapper
import org.json.JSONObject
import javax.inject.Inject
Expand Down Expand Up @@ -55,7 +54,6 @@ class DeviceDescMapping @Inject constructor() {
mapping = JSONObject(DeviceDescMapping::class.java.getResource("/deviceDescMapping.json")?.readText(Charsets.UTF_8)
?: "")
} catch (e: Exception) {
FirebaseCrashlytics.getInstance().recordException(e)
throw RuntimeException(e)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@

package li.klass.fhem.update.backend.device.configuration

import com.google.firebase.crashlytics.FirebaseCrashlytics
import li.klass.fhem.update.backend.device.configuration.sanitise.SanitiseConfiguration
import li.klass.fhem.update.backend.device.configuration.sanitise.SanitiseGeneral
import li.klass.fhem.update.backend.device.configuration.sanitise.SanitiseToAdd
import li.klass.fhem.update.backend.device.configuration.sanitise.SanitiseValue
import li.klass.fhem.update.backend.xmllist.DeviceNode
import li.klass.fhem.update.backend.xmllist.DeviceNode.DeviceNodeType.*
import li.klass.fhem.update.backend.xmllist.DeviceNode.DeviceNodeType.ATTR
import li.klass.fhem.update.backend.xmllist.DeviceNode.DeviceNodeType.INT
import li.klass.fhem.update.backend.xmllist.DeviceNode.DeviceNodeType.STATE
import li.klass.fhem.update.backend.xmllist.XmlListDevice
import li.klass.fhem.util.ValueDescriptionUtil
import li.klass.fhem.util.ValueExtractUtil.extractLeadingDouble
Expand All @@ -51,7 +52,6 @@ class Sanitiser @Inject constructor(
val sanitiseConfiguration = sanitiseConfigurationFor(deviceType) ?: return deviceNode
sanitise(deviceNode, sanitiseConfiguration)
} catch (e: Exception) {
FirebaseCrashlytics.getInstance().recordException(e)
LOGGER.error("cannot sanitise {}", deviceNode, e)
deviceNode
}
Expand All @@ -64,7 +64,6 @@ class Sanitiser @Inject constructor(

handleGeneral(xmlListDevice, generalOptions)
} catch (e: JSONException) {
FirebaseCrashlytics.getInstance().recordException(e)
throw RuntimeException(e)
}
}
Expand Down

0 comments on commit 750f4a8

Please sign in to comment.