From 1c3369389b64d1939bd713df3484b0e8de11a462 Mon Sep 17 00:00:00 2001 From: PeratX Date: Fri, 1 Apr 2022 10:45:32 +0800 Subject: [PATCH] native: release 2.0.0 --- README.md | 3 ++- build.gradle.kts | 2 +- src/main/kotlin/org/itxtech/mirainative/Bridge.kt | 2 +- src/main/kotlin/org/itxtech/mirainative/MiraiNative.kt | 2 +- .../itxtech/mirainative/bridge/ForwardMessageDecoder.kt | 2 +- .../kotlin/org/itxtech/mirainative/bridge/MiraiBridge.kt | 3 +-- .../kotlin/org/itxtech/mirainative/bridge/MiraiImpl.kt | 2 +- .../kotlin/org/itxtech/mirainative/bridge/NativeBridge.kt | 2 +- .../kotlin/org/itxtech/mirainative/manager/CacheManager.kt | 7 +++++-- .../kotlin/org/itxtech/mirainative/manager/EventManager.kt | 2 +- .../org/itxtech/mirainative/manager/LibraryManager.kt | 2 +- .../org/itxtech/mirainative/manager/PluginManager.kt | 3 +-- .../org/itxtech/mirainative/message/ChainCodeConverter.kt | 2 +- .../org/itxtech/mirainative/message/RichMessageHelper.kt | 2 +- .../kotlin/org/itxtech/mirainative/plugin/NativePlugin.kt | 2 +- .../kotlin/org/itxtech/mirainative/plugin/PluginInfo.kt | 2 +- .../kotlin/org/itxtech/mirainative/ui/FloatingWindow.kt | 2 +- src/main/kotlin/org/itxtech/mirainative/ui/Tray.kt | 2 +- .../kotlin/org/itxtech/mirainative/util/Configuration.kt | 2 +- src/main/kotlin/org/itxtech/mirainative/util/Music.kt | 2 +- src/main/kotlin/org/itxtech/mirainative/util/NpmHelper.kt | 2 +- 21 files changed, 26 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 9cea060..7251582 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,8 @@ Mirai Native 插件管理器 ## 开源许可证 - Copyright (C) 2020-2021 iTX Technologies + iTXTech Mirai Native + Copyright (C) 2020-2022 iTX Technologies This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as diff --git a/build.gradle.kts b/build.gradle.kts index 86ee208..c3ba915 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { } group = "org.itxtech" -version = "2.0.0-beta.1" +version = "2.0.0" description = "强大的 mirai 原生插件加载器。" kotlin { diff --git a/src/main/kotlin/org/itxtech/mirainative/Bridge.kt b/src/main/kotlin/org/itxtech/mirainative/Bridge.kt index 97664af..cc65114 100644 --- a/src/main/kotlin/org/itxtech/mirainative/Bridge.kt +++ b/src/main/kotlin/org/itxtech/mirainative/Bridge.kt @@ -2,7 +2,7 @@ * * Mirai Native * -* Copyright (C) 2020-2021 iTX Technologies +* Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/MiraiNative.kt b/src/main/kotlin/org/itxtech/mirainative/MiraiNative.kt index 289e46d..5180b96 100644 --- a/src/main/kotlin/org/itxtech/mirainative/MiraiNative.kt +++ b/src/main/kotlin/org/itxtech/mirainative/MiraiNative.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/bridge/ForwardMessageDecoder.kt b/src/main/kotlin/org/itxtech/mirainative/bridge/ForwardMessageDecoder.kt index 3207700..b06c124 100644 --- a/src/main/kotlin/org/itxtech/mirainative/bridge/ForwardMessageDecoder.kt +++ b/src/main/kotlin/org/itxtech/mirainative/bridge/ForwardMessageDecoder.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/bridge/MiraiBridge.kt b/src/main/kotlin/org/itxtech/mirainative/bridge/MiraiBridge.kt index f02eaa9..fe07127 100644 --- a/src/main/kotlin/org/itxtech/mirainative/bridge/MiraiBridge.kt +++ b/src/main/kotlin/org/itxtech/mirainative/bridge/MiraiBridge.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -50,7 +50,6 @@ import org.itxtech.mirainative.Bridge import org.itxtech.mirainative.MiraiNative import org.itxtech.mirainative.fromNative import org.itxtech.mirainative.manager.CacheManager -import org.itxtech.mirainative.manager.EventManager import org.itxtech.mirainative.manager.PluginManager import org.itxtech.mirainative.message.ChainCodeConverter import org.itxtech.mirainative.plugin.FloatingWindowEntry diff --git a/src/main/kotlin/org/itxtech/mirainative/bridge/MiraiImpl.kt b/src/main/kotlin/org/itxtech/mirainative/bridge/MiraiImpl.kt index 49a9a49..8ff5678 100644 --- a/src/main/kotlin/org/itxtech/mirainative/bridge/MiraiImpl.kt +++ b/src/main/kotlin/org/itxtech/mirainative/bridge/MiraiImpl.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/bridge/NativeBridge.kt b/src/main/kotlin/org/itxtech/mirainative/bridge/NativeBridge.kt index 45f9270..8971fda 100644 --- a/src/main/kotlin/org/itxtech/mirainative/bridge/NativeBridge.kt +++ b/src/main/kotlin/org/itxtech/mirainative/bridge/NativeBridge.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/manager/CacheManager.kt b/src/main/kotlin/org/itxtech/mirainative/manager/CacheManager.kt index a600a9a..39ffbbd 100644 --- a/src/main/kotlin/org/itxtech/mirainative/manager/CacheManager.kt +++ b/src/main/kotlin/org/itxtech/mirainative/manager/CacheManager.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -33,8 +33,11 @@ import net.mamoe.mirai.contact.User import net.mamoe.mirai.event.events.BotEvent import net.mamoe.mirai.event.events.GroupMessageEvent import net.mamoe.mirai.event.events.GroupTempMessageEvent -import net.mamoe.mirai.message.data.* +import net.mamoe.mirai.message.data.MessageChain +import net.mamoe.mirai.message.data.MessageSource import net.mamoe.mirai.message.data.MessageSource.Key.recall +import net.mamoe.mirai.message.data.OnlineAudio +import net.mamoe.mirai.message.data.source import net.mamoe.mirai.utils.MiraiExperimentalApi import org.itxtech.mirainative.MiraiNative diff --git a/src/main/kotlin/org/itxtech/mirainative/manager/EventManager.kt b/src/main/kotlin/org/itxtech/mirainative/manager/EventManager.kt index b6b3dd3..5f28aea 100644 --- a/src/main/kotlin/org/itxtech/mirainative/manager/EventManager.kt +++ b/src/main/kotlin/org/itxtech/mirainative/manager/EventManager.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/manager/LibraryManager.kt b/src/main/kotlin/org/itxtech/mirainative/manager/LibraryManager.kt index 9c60051..17cc93e 100644 --- a/src/main/kotlin/org/itxtech/mirainative/manager/LibraryManager.kt +++ b/src/main/kotlin/org/itxtech/mirainative/manager/LibraryManager.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/manager/PluginManager.kt b/src/main/kotlin/org/itxtech/mirainative/manager/PluginManager.kt index a308c09..7a613e1 100644 --- a/src/main/kotlin/org/itxtech/mirainative/manager/PluginManager.kt +++ b/src/main/kotlin/org/itxtech/mirainative/manager/PluginManager.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -27,7 +27,6 @@ package org.itxtech.mirainative.manager import kotlinx.atomicfu.atomic import kotlinx.coroutines.Job import kotlinx.coroutines.launch -import kotlinx.serialization.json.Json import net.mamoe.mirai.console.command.CommandManager.INSTANCE.register import net.mamoe.mirai.console.command.CommandSender import net.mamoe.mirai.console.command.CompositeCommand diff --git a/src/main/kotlin/org/itxtech/mirainative/message/ChainCodeConverter.kt b/src/main/kotlin/org/itxtech/mirainative/message/ChainCodeConverter.kt index 0ca37a4..15a055a 100644 --- a/src/main/kotlin/org/itxtech/mirainative/message/ChainCodeConverter.kt +++ b/src/main/kotlin/org/itxtech/mirainative/message/ChainCodeConverter.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/message/RichMessageHelper.kt b/src/main/kotlin/org/itxtech/mirainative/message/RichMessageHelper.kt index da6c8bd..cab21e6 100644 --- a/src/main/kotlin/org/itxtech/mirainative/message/RichMessageHelper.kt +++ b/src/main/kotlin/org/itxtech/mirainative/message/RichMessageHelper.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/plugin/NativePlugin.kt b/src/main/kotlin/org/itxtech/mirainative/plugin/NativePlugin.kt index bfe7d3a..c4e6ab8 100644 --- a/src/main/kotlin/org/itxtech/mirainative/plugin/NativePlugin.kt +++ b/src/main/kotlin/org/itxtech/mirainative/plugin/NativePlugin.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/plugin/PluginInfo.kt b/src/main/kotlin/org/itxtech/mirainative/plugin/PluginInfo.kt index 65d899a..3fc1a93 100644 --- a/src/main/kotlin/org/itxtech/mirainative/plugin/PluginInfo.kt +++ b/src/main/kotlin/org/itxtech/mirainative/plugin/PluginInfo.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/ui/FloatingWindow.kt b/src/main/kotlin/org/itxtech/mirainative/ui/FloatingWindow.kt index e71472f..2af930e 100644 --- a/src/main/kotlin/org/itxtech/mirainative/ui/FloatingWindow.kt +++ b/src/main/kotlin/org/itxtech/mirainative/ui/FloatingWindow.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/ui/Tray.kt b/src/main/kotlin/org/itxtech/mirainative/ui/Tray.kt index 929914d..92b0842 100644 --- a/src/main/kotlin/org/itxtech/mirainative/ui/Tray.kt +++ b/src/main/kotlin/org/itxtech/mirainative/ui/Tray.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/util/Configuration.kt b/src/main/kotlin/org/itxtech/mirainative/util/Configuration.kt index 439165a..291f4fd 100644 --- a/src/main/kotlin/org/itxtech/mirainative/util/Configuration.kt +++ b/src/main/kotlin/org/itxtech/mirainative/util/Configuration.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/util/Music.kt b/src/main/kotlin/org/itxtech/mirainative/util/Music.kt index b347eb9..96ab4ce 100644 --- a/src/main/kotlin/org/itxtech/mirainative/util/Music.kt +++ b/src/main/kotlin/org/itxtech/mirainative/util/Music.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as diff --git a/src/main/kotlin/org/itxtech/mirainative/util/NpmHelper.kt b/src/main/kotlin/org/itxtech/mirainative/util/NpmHelper.kt index 2900f76..b6130a5 100644 --- a/src/main/kotlin/org/itxtech/mirainative/util/NpmHelper.kt +++ b/src/main/kotlin/org/itxtech/mirainative/util/NpmHelper.kt @@ -2,7 +2,7 @@ * * Mirai Native * - * Copyright (C) 2020-2021 iTX Technologies + * Copyright (C) 2020-2022 iTX Technologies * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as