Skip to content

Commit

Permalink
Add firebase crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
brahmkshatriya committed Dec 16, 2024
1 parent 5382f41 commit 5541f2f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
6 changes: 6 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ plugins {
id("com.google.devtools.ksp")
id("com.google.dagger.hilt.android")
kotlin("plugin.serialization") version "2.0.10"
id("com.google.gms.google-services") version "4.4.2"
id("com.google.firebase.crashlytics") version "3.0.2"
}


Expand Down Expand Up @@ -87,6 +89,10 @@ dependencies {
implementation("com.flaviofaria:kenburnsview:1.0.7")
implementation("com.telefonica:nestedscrollwebview:0.1.6")

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

testImplementation("org.jetbrains.kotlin:kotlin-reflect:1.9.24")
testImplementation("junit:junit:4.13.2")
}
Expand Down
29 changes: 29 additions & 0 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"project_info": {
"project_number": "1080695702603",
"project_id": "echo-92245",
"storage_bucket": "echo-92245.firebasestorage.app"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:1080695702603:android:8d35debf80b002f7b1f9ce",
"android_client_info": {
"package_name": "dev.brahmkshatriya.echo"
}
},
"oauth_client": [],
"api_key": [
{
"current_key": "AIzaSyBFIGSjfDTcaDSXb67yH5yUQDUgeMPDsfM"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": []
}
}
}
],
"configuration_version": "1"
}
12 changes: 6 additions & 6 deletions app/src/main/java/dev/brahmkshatriya/echo/EchoApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ class EchoApplication : Application(), SingletonImageLoader.Factory {
applyUiChanges(this, settings)
cleanupTempApks()

//Crash Handling
Thread.setDefaultUncaughtExceptionHandler { _, exception ->
exception.printStackTrace()
ExceptionActivity.start(this, exception)
Runtime.getRuntime().exit(0)
}
// //Crash Handling
// Thread.setDefaultUncaughtExceptionHandler { _, exception ->
// exception.printStackTrace()
// ExceptionActivity.start(this, exception)
// Runtime.getRuntime().exit(0)
// }

scope.launch {
throwableFlow.collect {
Expand Down

0 comments on commit 5541f2f

Please sign in to comment.