1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-07-30 11:25:54 +02:00

Restart inject module when the app is created

This commit is contained in:
len
2016-06-15 17:58:28 +02:00
parent a82e1d0e45
commit cd92569355
3 changed files with 4 additions and 14 deletions
app/src
main
java
eu
kanade
tachiyomi
test

@ -5,6 +5,8 @@ import org.acra.ACRA
import org.acra.annotation.ReportsCrashes
import timber.log.Timber
import uy.kohesive.injekt.Injekt
import uy.kohesive.injekt.api.InjektScope
import uy.kohesive.injekt.registry.default.DefaultRegistrar
@ReportsCrashes(
formUri = "http://tachiyomi.kanade.eu/crash_report",
@ -17,7 +19,9 @@ open class App : Application() {
override fun onCreate() {
super.onCreate()
Injekt = InjektScope(DefaultRegistrar())
Injekt.importModule(AppModule(this))
if (BuildConfig.DEBUG) Timber.plant(Timber.DebugTree())
setupAcra()