From 6c6f0a48c70e646dfe695c3e133d3a7c92b7c924 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 24 Oct 2019 22:25:12 +0800 Subject: [PATCH] update docs --- mirai-core/build.gradle | 10 +++++++++- .../protocol/tim/packet/FriendOnlineStatusChanged.kt | 2 ++ .../tim/packet/login/ServerLoginSuccessPacket.kt | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/mirai-core/build.gradle b/mirai-core/build.gradle index 6e3d69b36..2d3d96a90 100644 --- a/mirai-core/build.gradle +++ b/mirai-core/build.gradle @@ -6,7 +6,9 @@ kotlin { fromPreset(presets.jvm, "jvm") //fromPreset(presets.mingwX64, "mingwX64") } - jvm() + jvm{ + withJava() + } /* mingwX64("mingwX64") { @@ -82,6 +84,8 @@ kotlin { }*/ jvmTest { + apply plugin: 'java' + } all { @@ -92,4 +96,8 @@ kotlin { compileKotlinJvm { +} + +compileTestJava{ + } \ No newline at end of file diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/FriendOnlineStatusChanged.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/FriendOnlineStatusChanged.kt index e9f4a4031..da8bd702e 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/FriendOnlineStatusChanged.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/FriendOnlineStatusChanged.kt @@ -11,6 +11,8 @@ import kotlin.properties.Delegates /** * 好友在线状态改变 + * + * TODO 真的是在线状态改变么 */ @PacketId(0x00_81u) class ServerFriendOnlineStatusChangedPacket(input: ByteReadPacket) : ServerPacket(input) { diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/login/ServerLoginSuccessPacket.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/login/ServerLoginSuccessPacket.kt index d63511844..690efe3cb 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/login/ServerLoginSuccessPacket.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/network/protocol/tim/packet/login/ServerLoginSuccessPacket.kt @@ -12,4 +12,4 @@ import net.mamoe.mirai.network.protocol.tim.packet.ServerPacket * @author Him188moe */ @PacketId(0x00_ECu) -class ServerLoginSuccessPacket(input: ByteReadPacket) : ServerPacket(input) \ No newline at end of file +class ServerLoginSuccessPacket(input: ByteReadPacket) : ServerPacket(input)//TODO 可能只是 login status change 的返回包 \ No newline at end of file