Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Colter23 committed Jun 19, 2022
1 parent d9b8e51 commit 224b44b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ repositories {

dependencies{
implementation("com.google.zxing:javase:3.4.1")
implementation("org.jetbrains.skiko:skiko-awt-runtime-windows-x64:0.7.18")

val skikoVersion = "0.7.20"
//api("org.jetbrains.skiko:skiko-awt:0.7.20")
//临时
implementation("org.jetbrains.skiko:skiko-awt-runtime-linux-x64:$skikoVersion")
implementation("org.jetbrains.skiko:skiko-awt-runtime-windows-x64:$skikoVersion")
implementation("org.jetbrains.skiko:skiko-awt-runtime-linux-arm64:$skikoVersion")
implementation("org.jetbrains.skiko:skiko-awt-runtime-macos-x64:$skikoVersion")
implementation("org.jetbrains.skiko:skiko-awt-runtime-macos-arm64:$skikoVersion")

testImplementation(kotlin("test", "1.6.21"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object BiliDataTasker {
private val filter by BiliData::filter

suspend fun listenAll(subject: String) = mutex.withLock {
dynamic.forEach { (uid, sub) ->
dynamic.forEach { (_, sub) ->
if (subject in sub.contacts) {
sub.contacts.remove(subject)
}
Expand Down Expand Up @@ -261,7 +261,7 @@ object BiliDataTasker {
suspend fun listUser() = mutex.withLock {
buildString {
val user = mutableSetOf<String>()
dynamic.forEach { (uid, sub) ->
dynamic.forEach { (_, sub) ->
user.addAll(sub.contacts)
}
val group = StringBuilder()
Expand Down

0 comments on commit 224b44b

Please sign in to comment.