Multidex debug build

This commit is contained in:
len
2016-10-15 11:12:16 +02:00
parent 093ddd776b
commit 33df35db1b
2 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,8 @@
package eu.kanade.tachiyomi
import android.app.Application
import android.content.Context
import android.support.multidex.MultiDex
import org.acra.ACRA
import org.acra.annotation.ReportsCrashes
import timber.log.Timber
@ -27,6 +29,13 @@ open class App : Application() {
setupAcra()
}
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
if (BuildConfig.DEBUG) {
MultiDex.install(this)
}
}
protected open fun setupAcra() {
ACRA.init(this)
}