-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inject crash report logger from platforms
- Loading branch information
Showing
11 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
androidApp/src/fdroid/kotlin/com/prof18/feedflow/android/CrashlyticsHelper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
package com.prof18.feedflow.android | ||
|
||
import co.touchlab.kermit.LogWriter | ||
import co.touchlab.kermit.Severity | ||
|
||
class CrashlyticsHelper { | ||
fun initCrashlytics() { | ||
// no-op | ||
} | ||
|
||
fun crashReportingLogWriter(): LogWriter = object : LogWriter() { | ||
override fun isLoggable(tag: String, severity: Severity): Boolean = false | ||
|
||
override fun log(severity: Severity, message: String, tag: String, throwable: Throwable?) { | ||
// no-op | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
shared/src/commonMain/kotlin/com/prof18/feedflow/shared/logging/CrashReportingLogWriter.kt
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
shared/src/commonMobileMain/kotlin/com/prof18/feedflow/shared/logging/FeedFlowLogWriter.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
shared/src/jvmMain/kotlin/com/prof18/feedflow/shared/logging/CrashReportingLogWrite.kt
This file was deleted.
Oops, something went wrong.