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