Skip to content
This repository has been archived by the owner on Dec 4, 2022. It is now read-only.

Commit

Permalink
- patched ExMetaData dep
Browse files Browse the repository at this point in the history
  • Loading branch information
Doomsdayrs committed Dec 21, 2020
1 parent 4c28f7f commit e200a9c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/main/kotlin/app/shosetsu/lib/IExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,17 @@ interface IExtension {
@SerialName(J_REPO)
val repo: String = "",
@SerialName(J_DEP)
val dependencies: Map<String, Version> = mapOf()
)
val stringDep: List<String>
) {
val dependencies: Map<String, Version> by lazy {
val v = stringDep.map { value -> value.split(">=").let { dep -> dep.first() to dep[1] } }
val map = HashMap<String, Version>()
v.forEach { (dep, ver) ->
map[dep] = Version(ver)
}
map
}
}

/**
* This represents a "Page" that the source might have for listing novels.
Expand Down

0 comments on commit e200a9c

Please sign in to comment.