Use kodein 4.0.0

This commit is contained in:
ligi 2017-06-20 00:29:47 +02:00
parent c286a6837a
commit 6e00aaeb55
No known key found for this signature in database
GPG key ID: 8E81894010ABF23D
2 changed files with 5 additions and 8 deletions

View file

@ -117,7 +117,7 @@ dependencies {
compile 'com.github.hotchemi:permissionsdispatcher:2.3.2'
kapt 'com.github.hotchemi:permissionsdispatcher-processor:2.3.2'
compile 'com.github.salomonbrys.kodein:kodein:3.3.0'
compile 'com.github.salomonbrys.kodein:kodein:4.0.0'
provided 'org.glassfish:javax.annotation:10.0-b28'

View file

@ -2,10 +2,7 @@ package org.ligi.passandroid
import android.app.Application
import android.support.v7.app.AppCompatDelegate
import com.github.salomonbrys.kodein.Kodein
import com.github.salomonbrys.kodein.bind
import com.github.salomonbrys.kodein.instance
import com.github.salomonbrys.kodein.singleton
import com.github.salomonbrys.kodein.*
import com.jakewharton.threetenabp.AndroidThreeTen
import com.squareup.leakcanary.LeakCanary
import com.squareup.moshi.Moshi
@ -61,8 +58,8 @@ open class App : Application() {
companion object {
lateinit var kodein: Kodein
val tracker by lazy { kodein.typed.instance(Tracker::class.java) }
val passStore by lazy { kodein.typed.instance(PassStore::class.java) }
val settings by lazy { kodein.typed.instance(Settings::class.java) }
val tracker by lazy { kodein.Instance(TT(Tracker::class.java)) }
val passStore by lazy { kodein.Instance(TT(PassStore::class.java)) }
val settings by lazy { kodein.Instance(TT(Settings::class.java)) }
}
}