Skip to content
Snippets Groups Projects
Commit 826e1b07 authored by Jawnnypoo's avatar Jawnnypoo
Browse files

Fixes for normal build flavor

parent 00d2d7d7
No related branches found
No related tags found
No related merge requests found
package com.commit451.gitlab.util
 
import android.util.Log
import com.crashlytics.android.Crashlytics
import timber.log.Timber
 
/**
Loading
Loading
@@ -11,8 +9,7 @@ import timber.log.Timber
*/
class CrashlyticsWtfTree : Timber.Tree() {
 
@Override
protected fun log(priority: Int, tag: String, message: String, t: Throwable) {
override fun log(priority: Int, tag: String?, message: String?, t: Throwable?) {
if (priority == Log.ASSERT) {
Crashlytics.log(Log.ASSERT, tag, message)
}
Loading
Loading
Loading
Loading
@@ -13,7 +13,7 @@ import timber.log.Timber
*/
object FabricUtil {
 
fun init(@NonNull context: Context) {
fun init(context: Context) {
// Start crashlytics if enabled
if (!BuildConfig.DEBUG) {
Fabric.with(context, Crashlytics())
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment