Commit adfbdc91 authored by deregges's avatar deregges

Deactivated Crashlytics on debug builds

parent ff19ebf9
......@@ -3,6 +3,8 @@ package io.ender.pathchaser.menu
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.crashlytics.android.Crashlytics
import com.crashlytics.android.core.CrashlyticsCore
import io.ender.pathchaser.BuildConfig
import io.ender.pathchaser.GameActivity
import io.ender.pathchaser.R
import io.ender.pathchaser.util.Utils
......@@ -13,7 +15,10 @@ import kotlinx.android.synthetic.main.a_mainmenu.*
class MainMenu : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
Fabric.with(this, Crashlytics())
Fabric.with(
this,
Crashlytics.Builder().core(CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build()).build()
)
setContentView(R.layout.a_mainmenu)
btnStart.setOnClickListener {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment