Skip to content

Commit

Permalink
upgrade Kodein-Type
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain Boisselle committed Dec 24, 2020
1 parent 8f595fc commit c830267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlin.reflect.*
@Suppress("UNCHECKED_CAST")
public fun DI.MainBuilder.installTornadoSource() {
externalSources += ExternalSource { key ->
val elementType = key.type.getRaw()?.jvmType as Class<*>?
val elementType = key.type.getRaw().jvmType as Class<*>?

// Check if the elementType is injectable by TornadoFX di container (infine if its a Component)
if (elementType != null &&
Expand Down
2 changes: 1 addition & 1 deletion kodein-di/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ kodein {

common {
main.dependencies {
api("org.kodein.type:kodein-type:1.3.0")
api("org.kodein.type:kodein-type:1.4.0")
}
test.dependencies {
implementation(project(":test-utils"))
Expand Down

0 comments on commit c830267

Please sign in to comment.