mirror of
https://gitlab.shinice.net/pixeldroid/PixelDroid
synced 2024-12-23 05:27:37 +01:00
Add crash report using TraceDroid
This commit is contained in:
parent
48849cf984
commit
98e18635b5
@ -152,6 +152,9 @@ dependencies {
|
||||
implementation 'com.karumi:dexter:6.2.1'
|
||||
|
||||
implementation 'com.google.android:flexbox:2.0.1'
|
||||
implementation 'com.github.ligi.tracedroid:lib:3.0'
|
||||
implementation 'com.github.ligi.tracedroid:supportemail:3.0'
|
||||
|
||||
|
||||
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
|
||||
|
||||
|
@ -36,6 +36,7 @@ import com.mikepenz.materialdrawer.util.AbstractDrawerImageLoader
|
||||
import com.mikepenz.materialdrawer.util.DrawerImageLoader
|
||||
import com.mikepenz.materialdrawer.widget.AccountHeaderView
|
||||
import kotlinx.android.synthetic.main.activity_main.*
|
||||
import org.ligi.tracedroid.sending.TraceDroidEmailSender
|
||||
import retrofit2.Call
|
||||
import retrofit2.Callback
|
||||
import retrofit2.Response
|
||||
@ -61,6 +62,9 @@ class MainActivity : AppCompatActivity() {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_main)
|
||||
|
||||
|
||||
TraceDroidEmailSender.sendStackTraces("contact@pixeldroid.org", this)
|
||||
|
||||
(this.application as Pixeldroid).getAppComponent().inject(this)
|
||||
|
||||
//get the currently active user
|
||||
|
@ -4,6 +4,7 @@ import android.app.Application
|
||||
import androidx.preference.PreferenceManager
|
||||
import com.h.pixeldroid.di.*
|
||||
import com.h.pixeldroid.utils.ThemeUtils
|
||||
import org.ligi.tracedroid.TraceDroid
|
||||
|
||||
|
||||
class Pixeldroid: Application() {
|
||||
@ -12,6 +13,7 @@ class Pixeldroid: Application() {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
TraceDroid.init(this)
|
||||
val sharedPreferences =
|
||||
PreferenceManager.getDefaultSharedPreferences(this)
|
||||
ThemeUtils.setThemeFromPreferences(sharedPreferences, resources)
|
||||
|
Loading…
Reference in New Issue
Block a user