فهرست منبع

Remove redundant runtimeOnly dependencies, 0.8.0

Him188 6 سال پیش
والد
کامیت
eef4ed12f6
5فایلهای تغییر یافته به همراه18 افزوده شده و 5 حذف شده
  1. 13 0
      UpdateLog.md
  2. 1 1
      gradle.properties
  3. 1 1
      mirai-debug/build.gradle.kts
  4. 1 1
      mirai-demos/mirai-demo-1/build.gradle
  5. 2 2
      mirai-demos/mirai-demo-gentleman/build.gradle

+ 13 - 0
UpdateLog.md

@@ -4,6 +4,19 @@
 
 开发版本. 频繁更新, 不保证高稳定性
 
+### `0.8.0`  *2019/12/14*
+协议
+- 现在查询群资料时可处理群号无效的情况
+- 现在能正常分辨禁言事件包
+
+功能
+- 增加无锁链表: LockFreeLinkedList, 并将 ContactList 的实现改为该无锁链表
+- **ContactSystem.getQQ 不再是 `suspend`**
+- ContactSystem.getGroup 仍是 `suspend`, 原因为需要查询群资料. 在群 ID 无效时抛出 `GroupNotFoundException`
+
+优化
+- 日志中, 发送给服务器的包将会被以名字记录, 而不是 id
+
 ### `0.7.5`  *2019/12/09*
 - 修复验证码包发出后无回复 (错误的验证码包)
 

+ 1 - 1
gradle.properties

@@ -1,7 +1,7 @@
 # style guide
 kotlin.code.style=official
 # config
-mirai_version=0.7.5
+mirai_version=0.8.0
 kotlin.incremental.multiplatform=true
 kotlin.parallel.tasks.in.project=true
 # kotlin

+ 1 - 1
mirai-debug/build.gradle.kts

@@ -41,7 +41,7 @@ fun DependencyHandlerScope.ktor(id: String, version: String) = "io.ktor:ktor-$id
 
 dependencies {
     implementation(project(":mirai-core"))
-    runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main")) // classpath is not added correctly by IDE
+    // runtimeOnly(files("../mirai-core/build/classes/kotlin/jvm/main")) // classpath is not added correctly by IDE
 
     implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
 

+ 1 - 1
mirai-demos/mirai-demo-1/build.gradle

@@ -3,7 +3,7 @@ apply plugin: "java"
 
 dependencies {
     api project(":mirai-core")
-    runtime files("../../mirai-core/build/classes/kotlin/jvm/main") // classpath is not set correctly by IDE
+    // runtime files("../../mirai-core/build/classes/kotlin/jvm/main") // classpath is not set correctly by IDE
     api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
     api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion
 }

+ 2 - 2
mirai-demos/mirai-demo-gentleman/build.gradle

@@ -4,8 +4,8 @@ apply plugin: "application"
 
 dependencies {
     api project(":mirai-core")
-    runtime files("../../mirai-core/build/classes/kotlin/jvm/main") // classpath is not set correctly by IDE
-    //runtime files("../../mirai-core/build/classes/atomicfu/jvm/main") // classpath is not set correctly by IDE
+    //runtime files("../../mirai-core/build/classes/kotlin/jvm/main") // classpath is not set correctly by IDE
+
     implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion
     implementation group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion