Copy disabled (too large)
Download .txt
Showing preview only (13,153K chars total). Download the full file to get everything.
Repository: mamoe/mirai
Branch: dev
Commit: 283f8840d468
Files: 1801
Total size: 12.1 MB
Directory structure:
gitextract_8c_sgdaa/
├── .editorconfig
├── .gitattributes
├── .github/
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug.yml
│ │ ├── config.yml
│ │ └── feature.md
│ └── workflows/
│ ├── build.yml
│ ├── check-publishing.yml
│ ├── doc.yml
│ └── release.yml
├── .gitignore
├── .run/
│ ├── Check Binary Compatibility.run.xml
│ ├── Compile everything.run.xml
│ ├── Compile mirai-console.run.xml
│ ├── Compile mirai-core for JVM.run.xml
│ ├── Dump API Changes for mirai-console-frontend-base.run.xml
│ ├── Dump API Changes for mirai-console.run.xml
│ ├── Dump API Changes for mirai-core-api.run.xml
│ ├── Publish deps test artifacts.run.xml
│ ├── Publish local artifacts.run.xml
│ ├── Run IDE.run.xml
│ ├── Run core tests.run.xml
│ ├── RunMessageDecodingRecorderKt.run.xml
│ ├── RunRecorderKt.run.xml
│ ├── Test everything.run.xml
│ ├── Test mirai-console.run.xml
│ └── Test mirai-core for JVM.run.xml
├── CONTRIBUTING.md
├── LICENSE
├── README-eng.md
├── README.md
├── build.gradle.kts
├── buildSrc/
│ ├── build.gradle.kts
│ ├── settings.gradle.kts
│ └── src/
│ └── main/
│ ├── kotlin/
│ │ ├── Android.kt
│ │ ├── BinaryCompatibilityConfigurator.kt
│ │ ├── DependencyDumper.kt
│ │ ├── HmppConfigure.kt
│ │ ├── JvmDependencies.kt
│ │ ├── JvmPublishing.kt
│ │ ├── KotlinMetadataPatcher.kt
│ │ ├── LocalProperties.kt
│ │ ├── Mpp.kt
│ │ ├── MppPublishing.kt
│ │ ├── ProjectConfigure.kt
│ │ ├── PublishingHelpers.kt
│ │ ├── Stdlib.kt
│ │ ├── TestDependencies.kt
│ │ ├── UpdateSnapshotPage.kt
│ │ ├── Versions.kt
│ │ ├── analyzes/
│ │ │ ├── AndroidApiLevelCheck.kt
│ │ │ ├── AsmUtil.kt
│ │ │ ├── CompiledCodeVerify.kt
│ │ │ └── NoSuchMethodAnalyzer.kt
│ │ ├── explicit-api.gradle.kts
│ │ ├── keys/
│ │ │ └── SecretKeys.kt
│ │ ├── shadow/
│ │ │ ├── Relocation.kt
│ │ │ ├── RelocationConfig.kt
│ │ │ └── Shadow.kt
│ │ └── utils.kt
│ └── resources/
│ ├── androidutil/
│ │ └── api-versions.xml
│ ├── binary-compatibility-validator-build.txt
│ └── binary-compatibility-validator-ignore.txt
├── ci-release-helper/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── changelogs/
│ │ ├── 2.10.1.md
│ │ ├── 2.10.2.md
│ │ ├── 2.11.0-M1.md
│ │ ├── 2.11.0-RC.md
│ │ ├── 2.11.0.md
│ │ ├── 2.12.0-RC.md
│ │ ├── 2.12.0.md
│ │ ├── 2.12.1.md
│ │ ├── 2.12.2.md
│ │ ├── 2.12.3.md
│ │ ├── 2.13.0-M1.md
│ │ ├── 2.13.0-RC.md
│ │ ├── 2.13.0-RC2.md
│ │ ├── 2.13.0.md
│ │ ├── 2.13.1.md
│ │ ├── 2.13.2.md
│ │ ├── 2.13.3.md
│ │ ├── 2.13.4.md
│ │ ├── 2.14.0-RC.md
│ │ ├── 2.14.0.md
│ │ ├── 2.15.0-M1.md
│ │ └── README.md
│ ├── scripts/
│ │ └── kill-java.js
│ └── src/
│ ├── CiHelper.kt
│ ├── buildIndex/
│ │ ├── Index.kt
│ │ └── SnapshotVersions.kt
│ └── package.kt
├── docs/
│ ├── .conf/
│ │ └── nav.js
│ ├── Bots.md
│ ├── ConciseAPI.md
│ ├── ConfiguringMultiplatformProjects.md
│ ├── ConfiguringProjects.md
│ ├── ConsoleTerminal.md
│ ├── Contacts.md
│ ├── CoreAPI.md
│ ├── DebuggingNetwork.md
│ ├── EventList.md
│ ├── Events.md
│ ├── Evolution.md
│ ├── KotlinAndJava.md
│ ├── Messages.md
│ ├── MigrationFrom1x.md
│ ├── Preparations.md
│ ├── Questions.md
│ ├── README.md
│ ├── UserManual.md
│ ├── UsingSnapshots.md
│ ├── contributing/
│ │ ├── ImplementingProtocol.md
│ │ ├── README.md
│ │ ├── SimpleInstructions.md
│ │ ├── VerifyingABI.md
│ │ ├── building/
│ │ │ ├── BuildingCoreAndroid.md
│ │ │ └── README.md
│ │ └── mock/
│ │ └── SpaceAllocation.md
│ ├── files/
│ │ └── install-20210412.cmd
│ ├── mirai-ecology.md
│ ├── mocking/
│ │ └── Mocking.md
│ └── src/
│ ├── Contacts.mermaid.md
│ └── Messages.mermaid.md
├── gradle/
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── install.sh
├── logging/
│ ├── README.md
│ ├── mirai-logging-log4j2/
│ │ ├── build.gradle.kts
│ │ ├── resources/
│ │ │ └── META-INF/
│ │ │ └── services/
│ │ │ └── net.mamoe.mirai.utils.MiraiLogger$Factory
│ │ ├── src/
│ │ │ └── MiraiLog4JFactory.kt
│ │ └── test/
│ │ └── MiraiLog4JAdapterTest.kt
│ ├── mirai-logging-slf4j/
│ │ ├── build.gradle.kts
│ │ └── test/
│ │ └── MiraiSlf4JAdapterTest.kt
│ ├── mirai-logging-slf4j-logback/
│ │ ├── build.gradle.kts
│ │ └── test/
│ │ └── MiraiSlf4JLogbackAdapterTest.kt
│ └── mirai-logging-slf4j-simple/
│ ├── build.gradle.kts
│ └── test/
│ └── MiraiSlf4JSimpleAdapterTest.kt
├── mirai-bom/
│ └── build.gradle.kts
├── mirai-console/
│ ├── .gitignore
│ ├── .gitmodules
│ ├── README.md
│ ├── backend/
│ │ ├── codegen/
│ │ │ ├── README.md
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── Codegen.kt
│ │ │ ├── MessageScopeCodegen.kt
│ │ │ ├── ValuePluginDataCodegen.kt
│ │ │ ├── old/
│ │ │ │ ├── JSettingCodegen.kt
│ │ │ │ ├── SettingValueUseSiteCodegen.kt
│ │ │ │ ├── ValueImplCodegen.kt
│ │ │ │ └── ValuesCodegen.kt
│ │ │ └── util.kt
│ │ ├── integration-test/
│ │ │ ├── README.md
│ │ │ ├── build.gradle.kts
│ │ │ ├── src/
│ │ │ │ ├── AbstractTestPoint.kt
│ │ │ │ ├── AbstractTestPointAsPlugin.kt
│ │ │ │ ├── IntegrationTestBootstrap.kt
│ │ │ │ ├── MiraiConsoleIntegrationTestLauncher.kt
│ │ │ │ └── utils.kt
│ │ │ ├── test/
│ │ │ │ ├── MiraiConsoleIntegrationTestBootstrap.kt
│ │ │ │ └── testpoints/
│ │ │ │ ├── DoNothingPoint.kt
│ │ │ │ ├── MCITBSelfAssertions.kt
│ │ │ │ ├── PluginSharedLibraries.kt
│ │ │ │ └── plugin/
│ │ │ │ ├── PluginDataRenameToIdTest.kt
│ │ │ │ ├── PluginDependOnErrorPlugin.kt
│ │ │ │ ├── PluginOnDisableCalledOnlyOnceTest.kt
│ │ │ │ └── PluginWithExceptionTest.kt
│ │ │ └── testers/
│ │ │ ├── .gitignore
│ │ │ ├── MCITSelfTestPlugin/
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ └── src/
│ │ │ │ └── MCITSelfTestPlugin.kt
│ │ │ ├── README.md
│ │ │ ├── mirai-plugin-compatibility/
│ │ │ │ ├── .module-group.txt
│ │ │ │ ├── mirai-jar-after-2_11/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── META-INF/
│ │ │ │ │ │ └── services/
│ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ └── src/
│ │ │ │ │ └── After211.kt
│ │ │ │ ├── mirai-jar-after-2_11-without-new/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── META-INF/
│ │ │ │ │ │ └── services/
│ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ └── src/
│ │ │ │ │ └── After211NoNew.kt
│ │ │ │ ├── mirai-jar-before-2_11/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── META-INF/
│ │ │ │ │ │ └── services/
│ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ └── src/
│ │ │ │ │ └── Before211.kt
│ │ │ │ ├── same-pkg-1/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── META-INF/
│ │ │ │ │ │ └── services/
│ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ └── src/
│ │ │ │ │ └── P.kt
│ │ │ │ └── same-pkg-2/
│ │ │ │ ├── .nested-module.txt
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ └── src/
│ │ │ │ └── P.kt
│ │ │ ├── never-override-jdk-modules/
│ │ │ │ ├── module-jdk-module/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── mvn.txt
│ │ │ │ │ └── src/
│ │ │ │ │ └── javax/
│ │ │ │ │ └── xml/
│ │ │ │ │ └── parsers/
│ │ │ │ │ └── SAXParser.kt
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ └── src/
│ │ │ │ └── NeverOverrideJdkModules.kt
│ │ │ ├── options-properties/
│ │ │ │ ├── independent-plugin/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── META-INF/
│ │ │ │ │ │ └── services/
│ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ └── src/
│ │ │ │ │ └── Independent.kt
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ ├── mirai-console-plugin/
│ │ │ │ │ │ └── options.properties
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ └── src/
│ │ │ │ └── OptionsProperties.kt
│ │ │ ├── plugin-can-depends-on-mirai-console/
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ └── src/
│ │ │ │ └── PluginCanDependsOnMiraiConsole.kt
│ │ │ ├── plugin-dep-dependon-dep-issue-2054/
│ │ │ │ ├── module-moda/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── mvn.txt
│ │ │ │ │ └── src/
│ │ │ │ │ └── ModuleA.kt
│ │ │ │ ├── module-modb/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── mvn.txt
│ │ │ │ │ └── src/
│ │ │ │ │ └── ModuleB.kt
│ │ │ │ ├── module-private-issue2108/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── mvn.txt
│ │ │ │ │ └── src/
│ │ │ │ │ └── PrivateModule.kt
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ ├── second-plugin/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── META-INF/
│ │ │ │ │ │ └── services/
│ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ └── src/
│ │ │ │ │ └── PDepDependOnDepSec.kt
│ │ │ │ └── src/
│ │ │ │ └── PDepDependOnDep.kt
│ │ │ ├── plugin-depend-on-other/
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ └── src/
│ │ │ │ ├── PluginDependOnOther.kt
│ │ │ │ └── issue1920/
│ │ │ │ ├── OtherClass1.kt
│ │ │ │ └── OtherClass2.kt
│ │ │ ├── plugin-dynamic-dependencies-download/
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ ├── mirai-console-plugin/
│ │ │ │ │ │ ├── dependencies-private.txt
│ │ │ │ │ │ └── dependencies-shared.txt
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ └── src/
│ │ │ │ └── P.kt
│ │ │ ├── plugin-resolve-self-dependencies-over-console-ones/
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ ├── mirai-console-plugin/
│ │ │ │ │ │ └── dependencies-private.txt
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ └── src/
│ │ │ │ └── PluginResolveSelfDependenciesOverConsoleOnes.kt
│ │ │ ├── plugin-use-console-deps-fallback/
│ │ │ │ ├── resources/
│ │ │ │ │ └── META-INF/
│ │ │ │ │ └── services/
│ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ └── src/
│ │ │ │ └── PluginUseConsoleDepsFallback.kt
│ │ │ ├── plugin-with-pluginyml/
│ │ │ │ ├── resources/
│ │ │ │ │ ├── META-INF/
│ │ │ │ │ │ └── services/
│ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ └── plugin.yml
│ │ │ │ └── src/
│ │ │ │ └── PluginWithPluginYml.kt
│ │ │ ├── plugin-with-pluginyml-can-use-libraries-while-clinit/
│ │ │ │ ├── clinit-library/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── mvn.txt
│ │ │ │ │ └── src/
│ │ │ │ │ └── PluginLibrary.kt
│ │ │ │ ├── resources/
│ │ │ │ │ ├── META-INF/
│ │ │ │ │ │ ├── mirai-console-plugin/
│ │ │ │ │ │ │ └── dependencies-private.txt
│ │ │ │ │ │ └── services/
│ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ └── plugin.yml
│ │ │ │ └── src/
│ │ │ │ └── PluginWithPluginYmlClinitTest.kt
│ │ │ ├── service-loader/
│ │ │ │ ├── module-service-loader-impl/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ ├── META-INF/
│ │ │ │ │ │ │ └── services/
│ │ │ │ │ │ │ └── net.mamoe.console.integrationtest.mod.servicetypedef.ServiceTypedef
│ │ │ │ │ │ └── test-res.txt
│ │ │ │ │ └── src/
│ │ │ │ │ └── ServiceImpl.kt
│ │ │ │ ├── module-service-loader-typedef/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ └── test-res.txt
│ │ │ │ │ └── src/
│ │ │ │ │ └── ServiceTypedef.kt
│ │ │ │ ├── resources/
│ │ │ │ │ ├── META-INF/
│ │ │ │ │ │ └── services/
│ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ └── test-res.txt
│ │ │ │ ├── service-loader-2dep-plugin/
│ │ │ │ │ ├── .nested-module.txt
│ │ │ │ │ ├── resources/
│ │ │ │ │ │ ├── META-INF/
│ │ │ │ │ │ │ └── services/
│ │ │ │ │ │ │ ├── net.mamoe.console.integrationtest.mod.servicetypedef.ServiceTypedef
│ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin
│ │ │ │ │ │ └── test-res.txt
│ │ │ │ │ └── src/
│ │ │ │ │ └── PMain.kt
│ │ │ │ └── src/
│ │ │ │ └── PMain.kt
│ │ │ └── tester.template.gradle.kts
│ │ └── mirai-console/
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── build.gradle.kts
│ │ ├── compatibility-validation/
│ │ │ └── jvm/
│ │ │ └── api/
│ │ │ └── jvm.api
│ │ ├── resources/
│ │ │ └── net/
│ │ │ └── mamoe/
│ │ │ └── mirai/
│ │ │ └── console/
│ │ │ └── internal/
│ │ │ └── enduserreadme/
│ │ │ └── readme.txt
│ │ ├── src/
│ │ │ ├── MiraiConsole.kt
│ │ │ ├── MiraiConsoleFrontEndDescription.kt
│ │ │ ├── MiraiConsoleImplementation.kt
│ │ │ ├── command/
│ │ │ │ ├── AbstractCommand.kt
│ │ │ │ ├── BuiltInCommands.kt
│ │ │ │ ├── Command.kt
│ │ │ │ ├── CommandContext.kt
│ │ │ │ ├── CommandExecuteResult.kt
│ │ │ │ ├── CommandExecutionException.kt
│ │ │ │ ├── CommandManager.kt
│ │ │ │ ├── CommandOwner.kt
│ │ │ │ ├── CommandPermissionDeniedException.kt
│ │ │ │ ├── CommandSender.kt
│ │ │ │ ├── CompositeCommand.kt
│ │ │ │ ├── IllegalCommandArgumentException.kt
│ │ │ │ ├── RawCommand.kt
│ │ │ │ ├── SimpleCommand.kt
│ │ │ │ ├── descriptor/
│ │ │ │ │ ├── CommandArgumentContext.kt
│ │ │ │ │ ├── CommandArgumentParserBuiltins.kt
│ │ │ │ │ ├── CommandParameter.kt
│ │ │ │ │ ├── CommandSignature.kt
│ │ │ │ │ ├── CommandValueArgumentParser.kt
│ │ │ │ │ ├── Exceptions.kt
│ │ │ │ │ ├── ExperimentalCommandDescriptors.kt
│ │ │ │ │ └── TypeVariant.kt
│ │ │ │ ├── java/
│ │ │ │ │ ├── JCompositeCommand.kt
│ │ │ │ │ ├── JRawCommand.kt
│ │ │ │ │ └── JSimpleCommand.kt
│ │ │ │ ├── parse/
│ │ │ │ │ ├── CommandCall.kt
│ │ │ │ │ ├── CommandCallParser.kt
│ │ │ │ │ ├── CommandValueArgument.kt
│ │ │ │ │ └── SpaceSeparatedCommandCallParser.kt
│ │ │ │ └── resolve/
│ │ │ │ ├── BuiltInCommandCallResolver.kt
│ │ │ │ ├── CommandCallInterceptor.kt
│ │ │ │ ├── CommandCallResolver.kt
│ │ │ │ └── ResolvedCommandCall.kt
│ │ │ ├── data/
│ │ │ │ ├── AbstractPluginData.kt
│ │ │ │ ├── AutoSavePluginConfig.kt
│ │ │ │ ├── AutoSavePluginData.kt
│ │ │ │ ├── AutoSavePluginDataHolder.kt
│ │ │ │ ├── PluginConfig.kt
│ │ │ │ ├── PluginData.kt
│ │ │ │ ├── PluginDataExtensions.kt
│ │ │ │ ├── PluginDataHolder.kt
│ │ │ │ ├── PluginDataStorage.kt
│ │ │ │ ├── ReadOnlyPluginConfig.kt
│ │ │ │ ├── ReadOnlyPluginData.kt
│ │ │ │ ├── Value.kt
│ │ │ │ ├── ValueDescription.kt
│ │ │ │ ├── ValueName.kt
│ │ │ │ └── java/
│ │ │ │ ├── JAutoSavePluginConfig.kt
│ │ │ │ ├── JAutoSavePluginData.kt
│ │ │ │ ├── JavaAutoSavePluginConfig.kt
│ │ │ │ └── JavaAutoSavePluginData.kt
│ │ │ ├── enduserreadme/
│ │ │ │ └── EndUserReadme.kt
│ │ │ ├── events/
│ │ │ │ ├── AutoLoginEvent.kt
│ │ │ │ ├── CommandExecutionEvent.kt
│ │ │ │ ├── ConsoleEvent.kt
│ │ │ │ ├── EndUserReadmeInitializeEvent.kt
│ │ │ │ └── StartupEvent.kt
│ │ │ ├── extension/
│ │ │ │ ├── ComponentStorage.kt
│ │ │ │ ├── Extension.kt
│ │ │ │ ├── ExtensionException.kt
│ │ │ │ ├── ExtensionPoint.kt
│ │ │ │ ├── ExtensionRegistry.kt
│ │ │ │ └── PluginComponentStorage.kt
│ │ │ ├── extensions/
│ │ │ │ ├── BotConfigurationAlterer.kt
│ │ │ │ ├── CommandCallInterceptorProvider.kt
│ │ │ │ ├── CommandCallParserProvider.kt
│ │ │ │ ├── CommandCallResolverProvider.kt
│ │ │ │ ├── PermissionServiceProvider.kt
│ │ │ │ ├── PluginLoaderProvider.kt
│ │ │ │ ├── PostStartupExtension.kt
│ │ │ │ └── SingletonExtensionSelector.kt
│ │ │ ├── fontend/
│ │ │ │ ├── DefaultLoggingProcessProgress.kt
│ │ │ │ └── ProcessProgress.kt
│ │ │ ├── internal/
│ │ │ │ ├── MiraiConsoleBuildConstants.kt.template
│ │ │ │ ├── MiraiConsoleImplementationBridge.kt
│ │ │ │ ├── auth/
│ │ │ │ │ ├── ConsoleBotAuthorization.kt
│ │ │ │ │ └── ConsoleSecretsCalculator.kt
│ │ │ │ ├── command/
│ │ │ │ │ ├── CommandManagerImpl.kt
│ │ │ │ │ ├── CommandReflector.kt
│ │ │ │ │ ├── CommnadConfig.kt
│ │ │ │ │ ├── builtin/
│ │ │ │ │ │ └── LoginCommandImpl.kt
│ │ │ │ │ └── internal.kt
│ │ │ │ ├── data/
│ │ │ │ │ ├── CompositeValueImpl.kt
│ │ │ │ │ ├── MemoryPluginDataStorageImpl.kt
│ │ │ │ │ ├── MultiFilePluginDataStorageImpl.kt
│ │ │ │ │ ├── PluginDataImpl.kt
│ │ │ │ │ ├── _PluginData.value.kt
│ │ │ │ │ ├── _PrimitiveValueDeclarations.kt
│ │ │ │ │ ├── builtins/
│ │ │ │ │ │ ├── AutoLoginConfig.kt
│ │ │ │ │ │ ├── ConsoleDataScopeImpl.kt
│ │ │ │ │ │ ├── EndUserReadmeData.kt
│ │ │ │ │ │ ├── LoggerConfig.kt
│ │ │ │ │ │ └── PluginDependenciesConfig.kt
│ │ │ │ │ ├── collectionUtil.kt
│ │ │ │ │ ├── reflectionUtils.kt
│ │ │ │ │ ├── serializerHelper.kt
│ │ │ │ │ └── valueFromKTypeImpl.kt
│ │ │ │ ├── enduserreadme/
│ │ │ │ │ └── EndUserReadmeProcessor.kt
│ │ │ │ ├── extension/
│ │ │ │ │ ├── ComponentStorageInternal.kt
│ │ │ │ │ └── SingletonExtensionSelectorImpl.kt
│ │ │ │ ├── logging/
│ │ │ │ │ ├── LazyInitMiraiLogger.kt
│ │ │ │ │ ├── LoggerControllerImpl.kt
│ │ │ │ │ ├── MiraiConsoleLogger.kt
│ │ │ │ │ └── externalbind/
│ │ │ │ │ └── slf4j/
│ │ │ │ │ ├── MiraiConsoleSLF4JService.kt
│ │ │ │ │ └── SLF4JAdapterLogger.kt
│ │ │ │ ├── permission/
│ │ │ │ │ ├── AbstractConcurrentPermissionService.kt
│ │ │ │ │ ├── BuiltInPermissionServices.kt
│ │ │ │ │ └── parseFromStringImpl.kt
│ │ │ │ ├── plugin/
│ │ │ │ │ ├── AllDependenciesClassesHolder.kt
│ │ │ │ │ ├── BuiltInJvmPluginLoaderImpl.kt
│ │ │ │ │ ├── Exceptions.kt
│ │ │ │ │ ├── ExportManagerImpl.kt
│ │ │ │ │ ├── JvmPluginClassLoader.kt
│ │ │ │ │ ├── JvmPluginDependencyDownload.kt
│ │ │ │ │ ├── JvmPluginInternal.kt
│ │ │ │ │ ├── JvmPluginTesting.kt
│ │ │ │ │ ├── MiraiConsoleAsPlugin.kt
│ │ │ │ │ ├── NotYetLoadedJvmPlugin.kt
│ │ │ │ │ ├── PluginDescriptionUtil.kt
│ │ │ │ │ └── PluginManagerImpl.kt
│ │ │ │ ├── shutdown/
│ │ │ │ │ └── ShutdownDaemon.kt
│ │ │ │ └── util/
│ │ │ │ ├── CommonUtils.kt
│ │ │ │ ├── ConsoleInputImpl.kt
│ │ │ │ ├── JavaPluginSchedulerImpl.kt
│ │ │ │ ├── PluginServiceHelper.kt
│ │ │ │ └── semver/
│ │ │ │ ├── RequirementInternal.kt
│ │ │ │ ├── RequirementParser.kt
│ │ │ │ └── SemVersionInternal.kt
│ │ │ ├── logging/
│ │ │ │ ├── AbstractLoggerController.kt
│ │ │ │ └── LoggerController.kt
│ │ │ ├── permission/
│ │ │ │ ├── Permission.kt
│ │ │ │ ├── PermissionId.kt
│ │ │ │ ├── PermissionIdNamespace.kt
│ │ │ │ ├── PermissionImplementation.kt
│ │ │ │ ├── PermissionRegistryConflictException.kt
│ │ │ │ ├── PermissionService.kt
│ │ │ │ ├── Permittee.kt
│ │ │ │ └── PermitteeId.kt
│ │ │ ├── plugin/
│ │ │ │ ├── NotYetLoadedPlugin.kt
│ │ │ │ ├── Plugin.kt
│ │ │ │ ├── PluginFileExtensions.kt
│ │ │ │ ├── PluginManager.kt
│ │ │ │ ├── ResourceContainer.kt
│ │ │ │ ├── center/
│ │ │ │ │ └── PluginCenter.kt
│ │ │ │ ├── description/
│ │ │ │ │ ├── IllegalPluginDescriptionException.kt
│ │ │ │ │ ├── PluginDependency.kt
│ │ │ │ │ └── PluginDescription.kt
│ │ │ │ ├── jvm/
│ │ │ │ │ ├── AbstractJvmPlugin.kt
│ │ │ │ │ ├── ExportManager.kt
│ │ │ │ │ ├── JavaPlugin.kt
│ │ │ │ │ ├── JavaPluginScheduler.kt
│ │ │ │ │ ├── JvmPlugin.kt
│ │ │ │ │ ├── JvmPluginClasspath.kt
│ │ │ │ │ ├── JvmPluginDescription.kt
│ │ │ │ │ ├── JvmPluginLoader.kt
│ │ │ │ │ └── KotlinPlugin.kt
│ │ │ │ └── loader/
│ │ │ │ ├── FilePluginLoader.kt
│ │ │ │ ├── PluginLoadException.kt
│ │ │ │ └── PluginLoader.kt
│ │ │ └── util/
│ │ │ ├── Annotations.kt
│ │ │ ├── AnsiMessageBuilder.kt
│ │ │ ├── ConsoleInput.kt
│ │ │ ├── ContactUtils.kt
│ │ │ ├── CoroutineScopeUtils.kt
│ │ │ ├── MemoryFormat.kt
│ │ │ ├── MessageScope.kt
│ │ │ ├── MessageUtils.kt
│ │ │ ├── SemVersion.kt
│ │ │ ├── StandardUtils.kt
│ │ │ └── retryCatching.kt
│ │ ├── test/
│ │ │ ├── TestMiraiConosle.kt
│ │ │ ├── command/
│ │ │ │ ├── AbstractCommandTest.kt
│ │ │ │ ├── CommandContextTest.kt
│ │ │ │ ├── CommandValueArgumentContextTest.kt
│ │ │ │ ├── InstanceTestCommand.kt
│ │ │ │ ├── JSimpleTest.java
│ │ │ │ └── commanTestingUtil.kt
│ │ │ ├── configuration/
│ │ │ │ └── AutoLoginTest.kt
│ │ │ ├── data/
│ │ │ │ ├── JAutoSavePluginDataTest.kt
│ │ │ │ ├── JavaPluginDescriptionTests.kt
│ │ │ │ ├── MultiFilePluginDataStorageImplTests.kt
│ │ │ │ ├── PluginDataTest.kt
│ │ │ │ └── PluginMovingTests.kt
│ │ │ ├── extension/
│ │ │ │ └── GlobalComponentStorageTest.kt
│ │ │ ├── logging/
│ │ │ │ ├── TestAbstractLoggerController.kt
│ │ │ │ └── TestAbstractLoggerController_PathBased.kt
│ │ │ ├── permission/
│ │ │ │ ├── PermissionServiceTest.kt
│ │ │ │ └── PermissionsBasicsTest.kt
│ │ │ ├── plugin/
│ │ │ │ ├── BuiltInJvmPluginLoaderImplTest.kt
│ │ │ │ └── PluginLoadingOrderTest.kt
│ │ │ ├── testFramework/
│ │ │ │ ├── AbstractConsoleInstanceTest.kt
│ │ │ │ ├── MockConsoleImplementation.kt
│ │ │ │ └── test/
│ │ │ │ └── FrameworkInstanceTest.kt
│ │ │ └── util/
│ │ │ ├── TestCoroutineUtils.kt
│ │ │ └── TestSemVersion.kt
│ │ └── testResources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── org.slf4j.spi.SLF4JServiceProvider
│ ├── docs/
│ │ ├── .conf/
│ │ │ └── nav.js
│ │ ├── Appendix.md
│ │ ├── BuiltInCommands.md
│ │ ├── Commands.md
│ │ ├── ConfiguringProjects.md
│ │ ├── Contributing.md
│ │ ├── Extensions.md
│ │ ├── FrontEnd.md
│ │ ├── Logging.md
│ │ ├── Permissions.md
│ │ ├── PluginData.md
│ │ ├── QA.md
│ │ ├── README.md
│ │ ├── Run.md
│ │ └── plugin/
│ │ ├── JVMPlugin-Appendix.md
│ │ ├── JVMPlugin-DataExchange.md
│ │ ├── JVMPlugin-Debug.md
│ │ ├── JVMPlugin.md
│ │ └── Plugins.md
│ ├── frontend/
│ │ ├── mirai-android/
│ │ │ ├── .github/
│ │ │ │ ├── ISSUE_TEMPLATE/
│ │ │ │ │ └── bug_report.md
│ │ │ │ └── workflows/
│ │ │ │ └── android.yml
│ │ │ ├── .gitignore
│ │ │ ├── LICENSE
│ │ │ ├── README.md
│ │ │ ├── app/
│ │ │ │ ├── .gitignore
│ │ │ │ ├── build.gradle
│ │ │ │ ├── libs/
│ │ │ │ │ ├── d8.jar
│ │ │ │ │ ├── giteeman-0.2.3.jar
│ │ │ │ │ ├── mirai-console-0.5.2.jar
│ │ │ │ │ └── mirai-js-1.0.0.jar
│ │ │ │ ├── proguard-rules.pro
│ │ │ │ └── src/
│ │ │ │ ├── androidTest/
│ │ │ │ │ └── java/
│ │ │ │ │ └── io/
│ │ │ │ │ └── github/
│ │ │ │ │ └── mzdluo123/
│ │ │ │ │ └── mirai/
│ │ │ │ │ └── android/
│ │ │ │ │ ├── TestWithIdleResources.kt
│ │ │ │ │ ├── activity/
│ │ │ │ │ │ └── NavTest.kt
│ │ │ │ │ ├── console/
│ │ │ │ │ │ ├── ConsoleIntentTest.kt
│ │ │ │ │ │ └── ConsoleTest.kt
│ │ │ │ │ ├── script/
│ │ │ │ │ │ └── ScriptManageTest.kt
│ │ │ │ │ └── utils.kt
│ │ │ │ └── main/
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── aidl/
│ │ │ │ │ └── io/
│ │ │ │ │ └── github/
│ │ │ │ │ └── mzdluo123/
│ │ │ │ │ └── mirai/
│ │ │ │ │ └── android/
│ │ │ │ │ └── IbotAidlInterface.aidl
│ │ │ │ ├── java/
│ │ │ │ │ ├── io/
│ │ │ │ │ │ └── github/
│ │ │ │ │ │ └── mzdluo123/
│ │ │ │ │ │ └── mirai/
│ │ │ │ │ │ └── android/
│ │ │ │ │ │ ├── AppSettings.kt
│ │ │ │ │ │ ├── BotApplication.kt
│ │ │ │ │ │ ├── IdleResources.kt
│ │ │ │ │ │ ├── NotificationFactory.kt
│ │ │ │ │ │ ├── activity/
│ │ │ │ │ │ │ ├── CaptchaActivity.kt
│ │ │ │ │ │ │ ├── MainActivity.kt
│ │ │ │ │ │ │ ├── PluginImportActivity.kt
│ │ │ │ │ │ │ └── UnsafeLoginActivity.kt
│ │ │ │ │ │ ├── crash/
│ │ │ │ │ │ │ ├── MiraiAndroidReportSender.kt
│ │ │ │ │ │ │ └── MiraiAndroidReportSenderFactory.kt
│ │ │ │ │ │ ├── miraiconsole/
│ │ │ │ │ │ │ ├── AndroidLoginSolver.kt
│ │ │ │ │ │ │ └── AndroidMiraiConsole.kt
│ │ │ │ │ │ ├── receiver/
│ │ │ │ │ │ │ ├── BootReceiver.kt
│ │ │ │ │ │ │ └── PushMsgReceiver.kt
│ │ │ │ │ │ ├── script/
│ │ │ │ │ │ │ ├── JavaScriptHost.kt
│ │ │ │ │ │ │ ├── LuaScriptHost.kt
│ │ │ │ │ │ │ ├── ScriptHost.kt
│ │ │ │ │ │ │ ├── ScriptHostFactory.kt
│ │ │ │ │ │ │ └── ScriptManager.kt
│ │ │ │ │ │ ├── service/
│ │ │ │ │ │ │ ├── BotService.kt
│ │ │ │ │ │ │ └── ServiceConnector.kt
│ │ │ │ │ │ ├── ui/
│ │ │ │ │ │ │ ├── about/
│ │ │ │ │ │ │ │ └── AboutFragment.kt
│ │ │ │ │ │ │ ├── console/
│ │ │ │ │ │ │ │ └── ConsoleFragment.kt
│ │ │ │ │ │ │ ├── plugin/
│ │ │ │ │ │ │ │ ├── PluginFragment.kt
│ │ │ │ │ │ │ │ └── PluginViewModel.kt
│ │ │ │ │ │ │ ├── script/
│ │ │ │ │ │ │ │ ├── ScriptCenterFragment.kt
│ │ │ │ │ │ │ │ ├── ScriptCenterListAdapter.kt
│ │ │ │ │ │ │ │ ├── ScriptCenterViewModel.kt
│ │ │ │ │ │ │ │ ├── ScriptFragment.kt
│ │ │ │ │ │ │ │ ├── ScriptInfoDialogFragment.kt
│ │ │ │ │ │ │ │ ├── ScriptListAdapter.kt
│ │ │ │ │ │ │ │ └── ScriptViewModel.kt
│ │ │ │ │ │ │ └── setting/
│ │ │ │ │ │ │ └── SettingFragment.kt
│ │ │ │ │ │ └── utils/
│ │ │ │ │ │ ├── CommandFastRegister.kt
│ │ │ │ │ │ ├── DeviceStatus.java
│ │ │ │ │ │ ├── DexCompiler.java
│ │ │ │ │ │ ├── LoopQueue.java
│ │ │ │ │ │ ├── MiraiAndroidStatus.kt
│ │ │ │ │ │ ├── TextSharer.kt
│ │ │ │ │ │ ├── dnsQuery.kt
│ │ │ │ │ │ ├── fileUtils.kt
│ │ │ │ │ │ └── pasteBin.kt
│ │ │ │ │ └── java/
│ │ │ │ │ └── awt/
│ │ │ │ │ └── image/
│ │ │ │ │ └── BufferedImage.java
│ │ │ │ └── res/
│ │ │ │ ├── color/
│ │ │ │ │ └── color_drawer_item.xml
│ │ │ │ ├── drawable/
│ │ │ │ │ ├── ic_add_white_24dp.xml
│ │ │ │ │ ├── ic_android_24.xml
│ │ │ │ │ ├── ic_baseline_folder_24.xml
│ │ │ │ │ ├── ic_baseline_insert_drive_file_24.xml
│ │ │ │ │ ├── ic_baseline_keyboard_arrow_up_24.xml
│ │ │ │ │ ├── ic_baseline_publish_24.xml
│ │ │ │ │ ├── ic_battery_alert_24.xml
│ │ │ │ │ ├── ic_chat_bubble_black_24dp.xml
│ │ │ │ │ ├── ic_check_white_24dp.xml
│ │ │ │ │ ├── ic_delete_black_24dp.xml
│ │ │ │ │ ├── ic_desktop_windows_black_24dp.xml
│ │ │ │ │ ├── ic_edit_black_24dp.xml
│ │ │ │ │ ├── ic_exit_to_app_24dp.xml
│ │ │ │ │ ├── ic_extension_black_24dp.xml
│ │ │ │ │ ├── ic_info_black_24dp.xml
│ │ │ │ │ ├── ic_insert_drive_file_black_24dp.xml
│ │ │ │ │ ├── ic_keyboard_arrow_down_black_24dp.xml
│ │ │ │ │ ├── ic_keyboard_return_black_24dp.xml
│ │ │ │ │ ├── ic_launcher_background.xml
│ │ │ │ │ ├── ic_local_printshop_24.xml
│ │ │ │ │ ├── ic_new_launcher_foreground.xml
│ │ │ │ │ ├── ic_refresh_black_24dp.xml
│ │ │ │ │ ├── ic_restore_24.xml
│ │ │ │ │ ├── ic_save_black_24dp.xml
│ │ │ │ │ ├── ic_settings_black_24dp.xml
│ │ │ │ │ ├── ic_share_24.xml
│ │ │ │ │ ├── ic_store_white_24.xml
│ │ │ │ │ ├── icon.xml
│ │ │ │ │ ├── loading_background.xml
│ │ │ │ │ └── side_nav_bar.xml
│ │ │ │ ├── drawable-v24/
│ │ │ │ │ └── ic_launcher_foreground.xml
│ │ │ │ ├── layout/
│ │ │ │ │ ├── activity_captcha.xml
│ │ │ │ │ ├── activity_main.xml
│ │ │ │ │ ├── activity_plugin_import.xml
│ │ │ │ │ ├── activity_unsafe_login.xml
│ │ │ │ │ ├── app_bar_main.xml
│ │ │ │ │ ├── content_main.xml
│ │ │ │ │ ├── dialog_ask_filename.xml
│ │ │ │ │ ├── dialog_autologin.xml
│ │ │ │ │ ├── dialog_script_info.xml
│ │ │ │ │ ├── fragment_about.xml
│ │ │ │ │ ├── fragment_home.xml
│ │ │ │ │ ├── fragment_plugin.xml
│ │ │ │ │ ├── fragment_script.xml
│ │ │ │ │ ├── fragment_script_center.xml
│ │ │ │ │ ├── fragment_script_center_empty.xml
│ │ │ │ │ ├── fragment_script_empty.xml
│ │ │ │ │ ├── item_plugin.xml
│ │ │ │ │ ├── item_script.xml
│ │ │ │ │ ├── item_script_center_list.xml
│ │ │ │ │ └── nav_header_main.xml
│ │ │ │ ├── menu/
│ │ │ │ │ ├── menu_activity_main_drawer.xml
│ │ │ │ │ ├── menu_console.xml
│ │ │ │ │ ├── menu_script.xml
│ │ │ │ │ ├── menu_script_center.xml
│ │ │ │ │ ├── plugin_add.xml
│ │ │ │ │ ├── plugin_manage.xml
│ │ │ │ │ └── unsafe_menu.xml
│ │ │ │ ├── mipmap-anydpi-v26/
│ │ │ │ │ ├── ic_launcher.xml
│ │ │ │ │ ├── ic_launcher_round.xml
│ │ │ │ │ ├── ic_new_launcher.xml
│ │ │ │ │ └── ic_new_launcher_round.xml
│ │ │ │ ├── navigation/
│ │ │ │ │ └── mobile_navigation.xml
│ │ │ │ ├── values/
│ │ │ │ │ ├── colors.xml
│ │ │ │ │ ├── dimens.xml
│ │ │ │ │ ├── ic_new_launcher_background.xml
│ │ │ │ │ ├── strings.xml
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── values-night/
│ │ │ │ │ └── colors-night.xml
│ │ │ │ ├── values-v21/
│ │ │ │ │ └── styles.xml
│ │ │ │ ├── values-v29/
│ │ │ │ │ └── styles.xml
│ │ │ │ └── xml/
│ │ │ │ ├── path_script.xml
│ │ │ │ └── setting_screen.xml
│ │ │ ├── build.gradle
│ │ │ ├── gradle/
│ │ │ │ └── wrapper/
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ │ ├── gradle.properties
│ │ │ ├── gradlew
│ │ │ ├── gradlew.bat
│ │ │ └── settings.gradle
│ │ ├── mirai-console-frontend-base/
│ │ │ ├── build.gradle.kts
│ │ │ ├── compatibility-validation/
│ │ │ │ └── jvm/
│ │ │ │ └── api/
│ │ │ │ └── jvm.api
│ │ │ ├── resources/
│ │ │ │ └── META-INF/
│ │ │ │ └── services/
│ │ │ │ └── org.slf4j.spi.SLF4JServiceProvider
│ │ │ ├── src/
│ │ │ │ ├── AbstractMiraiConsoleFrontendImplementation.kt
│ │ │ │ ├── FrontendBase.kt
│ │ │ │ ├── RepipedMessageForward.kt
│ │ │ │ ├── logging/
│ │ │ │ │ └── LogRecorder.kt
│ │ │ │ └── package.kt
│ │ │ └── test/
│ │ │ ├── RepipedMessageForwardTest.kt
│ │ │ └── package.kt
│ │ └── mirai-console-terminal/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── src/
│ │ │ ├── BufferedOutputStream.kt
│ │ │ ├── ConsoleInputImpl.kt
│ │ │ ├── ConsoleTerminalSettings.kt
│ │ │ ├── ConsoleThread.kt
│ │ │ ├── JLineInputDaemon.kt
│ │ │ ├── LoggingService.kt
│ │ │ ├── MiraiConsoleImplementationTerminal.kt
│ │ │ ├── MiraiConsoleTerminalLoader.kt
│ │ │ ├── TerminalProcessProgress.kt
│ │ │ ├── net/
│ │ │ │ └── mamoe/
│ │ │ │ └── mirai/
│ │ │ │ └── console/
│ │ │ │ └── pure/
│ │ │ │ └── MiraiConsolePureLoader.kt
│ │ │ └── noconsole/
│ │ │ └── NoConsole.kt
│ │ └── test/
│ │ └── RunTerminal.kt
│ └── tools/
│ ├── compiler-annotations/
│ │ ├── README.md
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── commonMain/
│ │ └── kotlin/
│ │ ├── CheckerConstants.kt
│ │ ├── ResolveContext.kt
│ │ └── RestrictedScope.kt
│ ├── compiler-common/
│ │ ├── README.md
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── diagnostics/
│ │ │ ├── MiraiConsoleErrors.kt
│ │ │ └── MiraiConsoleErrorsRendering.kt
│ │ ├── resolve/
│ │ │ ├── resolveCommon.kt
│ │ │ └── resolveTypes.kt
│ │ └── utilCommon.kt
│ ├── gradle-plugin/
│ │ ├── .gitignore
│ │ ├── README.md
│ │ ├── build.gradle.kts
│ │ ├── gradle.properties
│ │ ├── src/
│ │ │ ├── integTest/
│ │ │ │ └── kotlin/
│ │ │ │ ├── AbstractTest.kt
│ │ │ │ ├── KotlinTransitiveDependenciesIntegrationTest.kt
│ │ │ │ ├── TestBuildPlugin.kt
│ │ │ │ └── TestPluginApply.kt
│ │ │ └── main/
│ │ │ └── kotlin/
│ │ │ ├── BuildMiraiPluginTask.kt
│ │ │ ├── BuildMiraiPluginV2.kt
│ │ │ ├── IGNORED_DEPENDENCIES_IN_SHADOW.kt
│ │ │ ├── MiraiConsoleExtension.kt
│ │ │ ├── MiraiConsoleGradlePlugin.kt
│ │ │ ├── VersionConstants.kt.template
│ │ │ ├── dsl.kt
│ │ │ └── publishing.kt
│ │ └── test/
│ │ └── net/
│ │ └── mamoe/
│ │ └── mirai/
│ │ └── console/
│ │ └── gradle/
│ │ ├── AbstractTest.groovy
│ │ └── TestPluginApply.groovy
│ └── intellij-plugin/
│ ├── .gitignore
│ ├── README.md
│ ├── build.gradle.kts
│ ├── gradle.properties
│ ├── libs/
│ │ └── ide-common.jar
│ ├── resources/
│ │ ├── META-INF/
│ │ │ └── plugin.xml
│ │ ├── fileTemplates/
│ │ │ └── code/
│ │ │ ├── .gitignore.ft
│ │ │ ├── .gitignore.html
│ │ │ ├── Gradle gradle-wrapper.properties.ft
│ │ │ ├── Gradle gradle-wrapper.properties.html
│ │ │ ├── Gradle gradle.properties.ft
│ │ │ ├── Gradle gradle.properties.html
│ │ │ ├── Plugin build.gradle.ft
│ │ │ ├── Plugin build.gradle.html
│ │ │ ├── Plugin build.gradle.kts.ft
│ │ │ ├── Plugin build.gradle.kts.html
│ │ │ ├── Plugin main class Java.java.ft
│ │ │ ├── Plugin main class Java.java.ft.back
│ │ │ ├── Plugin main class Java.java.html
│ │ │ ├── Plugin main class Kotlin.kt.ft
│ │ │ ├── Plugin main class Kotlin.kt.html
│ │ │ ├── Plugin main service.txt.ft
│ │ │ ├── Plugin main service.txt.html
│ │ │ ├── Plugin settings.gradle.ft
│ │ │ ├── Plugin settings.gradle.html
│ │ │ ├── Plugin settings.gradle.kts.ft
│ │ │ ├── Plugin settings.gradle.kts.html
│ │ │ ├── RunTerminal.run.xml.ft
│ │ │ ├── RunTerminal.run.xml.html
│ │ │ ├── account.properties.ft
│ │ │ └── account.properties.html
│ │ ├── inspectionDescriptions/
│ │ │ ├── PluginMainServiceNotConfigured.html
│ │ │ ├── ResourceNotClosed.html
│ │ │ └── UsingStringPlusMessage.html
│ │ ├── intentionDescriptions/
│ │ │ ├── WrapWithResourceUseCallIntention/
│ │ │ │ ├── after.receiver.template
│ │ │ │ ├── before.receiver.template
│ │ │ │ └── description.html
│ │ │ └── WrapWithResourceUseCallJavaIntention/
│ │ │ ├── after.action.template
│ │ │ ├── before.action.template
│ │ │ └── description.html
│ │ └── messages/
│ │ ├── InspectionGadgetsBundle.properties
│ │ ├── InspectionsBundle.properties
│ │ ├── MiraiProjectWizardBundle.properties
│ │ └── MiraiProjectWizardBundle_zh.properties
│ ├── run/
│ │ └── projects/
│ │ ├── .gitignore
│ │ └── test-project/
│ │ ├── build.gradle.kts
│ │ ├── gradle/
│ │ │ └── wrapper/
│ │ │ ├── gradle-wrapper.jar
│ │ │ └── gradle-wrapper.properties
│ │ ├── gradle.properties
│ │ ├── gradlew
│ │ ├── gradlew.bat
│ │ ├── settings.gradle.kts
│ │ └── src/
│ │ ├── main/
│ │ │ ├── java/
│ │ │ │ └── test/
│ │ │ │ ├── ResourceNotClosedInspectionTestJava.java
│ │ │ │ └── TestJavaPlugin.java
│ │ │ └── kotlin/
│ │ │ └── org/
│ │ │ └── example/
│ │ │ └── myplugin/
│ │ │ ├── AbstractMessageKeysUsages.kt
│ │ │ ├── ConsoleCommandOwnerCheck.kt
│ │ │ ├── MyPluginMain.kt
│ │ │ ├── MySimpleCommand.kt
│ │ │ ├── ReadOnlyPluginDataVar.kt
│ │ │ ├── ResourceNotClosedInspectionTest.kt
│ │ │ ├── StringPlusMessageInspectionTest.kt
│ │ │ ├── UsingDerivedMap.kt
│ │ │ └── WrapWithResourceUseCallIntentionTest.kt
│ │ └── test/
│ │ └── kotlin/
│ │ └── RunConsole.kt
│ ├── src/
│ │ ├── IDEContainerContributor.kt
│ │ ├── QuickFixRegistrar.kt
│ │ ├── assets/
│ │ │ ├── Assets.kt
│ │ │ └── FileTemplateRegistrar.kt
│ │ ├── diagnostics/
│ │ │ ├── CommandDeclarationChecker.kt
│ │ │ ├── ContextualParametersChecker.kt
│ │ │ ├── MessageChainGetCallChecker.kt
│ │ │ ├── PluginDataValuesChecker.kt
│ │ │ ├── PluginMainServiceNotConfiguredInspection.kt
│ │ │ ├── QuickFixUtils.kt
│ │ │ ├── ResourceNotClosedInspection.kt
│ │ │ ├── TaskUtils.kt
│ │ │ ├── UsingStringPlusMessageInspection.kt
│ │ │ ├── diagnosticsUtil.kt
│ │ │ └── fix/
│ │ │ ├── AbuseYellowIntention.kt
│ │ │ ├── AddSerializerFix.kt
│ │ │ ├── ConfigurePluginMainServiceFix.kt
│ │ │ ├── ConvertToValFix.kt
│ │ │ ├── ProvideDefaultValueFix.kt
│ │ │ ├── TypeProjectionFix.kt
│ │ │ └── WrapWithResourceUseCallIntention.kt
│ │ ├── line/
│ │ │ └── marker/
│ │ │ ├── CommandDeclarationLineMarkerProvider.kt
│ │ │ └── PluginMainLineMarkerProvider.kt
│ │ ├── resolve/
│ │ │ ├── FunctionSignature.kt
│ │ │ ├── ReceiverExpression.kt
│ │ │ └── resolveIdea.kt
│ │ ├── util/
│ │ │ ├── RequirementHelper.kt
│ │ │ ├── RequirementParser.kt
│ │ │ └── RunIgnoringErrors.kt
│ │ └── wizard/
│ │ ├── BuildSystemType.kt
│ │ ├── KotlinStdlibVersion.kt
│ │ ├── LanguageType.kt
│ │ ├── MiraiModuleBuilder.kt
│ │ ├── MiraiModuleType.kt
│ │ ├── MiraiProjectModel.kt
│ │ ├── MiraiProjectWizardInitialStep.kt
│ │ ├── MiraiValidations.kt
│ │ ├── MiraiVersion.kt
│ │ ├── MiraiWizardBundle.kt
│ │ └── ProjectAssetsProvider.kt
│ └── test/
│ ├── creator/
│ │ ├── MiraiVersionKindTest.kt
│ │ └── tasks/
│ │ └── TaskUtilsKtTest.kt
│ └── package.kt
├── mirai-core/
│ ├── .gitignore
│ ├── README.md
│ ├── build.gradle.kts
│ ├── compatibility-validation/
│ │ ├── android/
│ │ │ └── api/
│ │ │ └── android.api
│ │ └── jvm/
│ │ └── api/
│ │ └── jvm.api
│ └── src/
│ ├── androidInstrumentedTest/
│ │ └── kotlin/
│ │ ├── package.kt
│ │ ├── test/
│ │ │ └── initializeTestJvm.kt
│ │ └── testFramework/
│ │ └── currentPlatform.kt
│ ├── androidMain/
│ │ ├── AndroidManifest.xml
│ │ └── kotlin/
│ │ ├── package.kt
│ │ └── utils/
│ │ └── crypto/
│ │ └── EcdhAndroid.kt
│ ├── androidUnitTest/
│ │ └── kotlin/
│ │ ├── package.kt
│ │ ├── test/
│ │ │ ├── Logger.kt
│ │ │ └── initializeTestJvm.kt
│ │ └── testFramework/
│ │ └── currentPlatform.kt
│ ├── commonMain/
│ │ ├── kotlin/
│ │ │ ├── AbstractBot.kt
│ │ │ ├── BotAccount.kt
│ │ │ ├── BotFactory.kt
│ │ │ ├── MiraiImpl.kt
│ │ │ ├── QQAndroidBot.kt
│ │ │ ├── contact/
│ │ │ │ ├── AbstractContact.kt
│ │ │ │ ├── AbstractMember.kt
│ │ │ │ ├── AbstractUser.kt
│ │ │ │ ├── AnonymousMemberImpl.kt
│ │ │ │ ├── ContactAware.kt
│ │ │ │ ├── FriendImpl.kt
│ │ │ │ ├── GroupImpl.kt
│ │ │ │ ├── GroupSendMessageImpl.kt
│ │ │ │ ├── GroupSettingsImpl.kt
│ │ │ │ ├── MemberActiveImpl.kt
│ │ │ │ ├── NormalMemberImpl.kt
│ │ │ │ ├── OnlineAnnouncementImpl.kt
│ │ │ │ ├── OtherClientImpl.kt
│ │ │ │ ├── SendMessageHandler.kt
│ │ │ │ ├── StrangerImpl.kt
│ │ │ │ ├── active/
│ │ │ │ │ ├── GroupActiveImpl.kt
│ │ │ │ │ └── GroupActiveProtocol.kt
│ │ │ │ ├── announcement/
│ │ │ │ │ ├── AnnouncementsImpl.kt
│ │ │ │ │ └── GroupAnnouncement.kt
│ │ │ │ ├── essence/
│ │ │ │ │ ├── EssencesImpl.kt
│ │ │ │ │ └── GroupDigestProtocol.kt
│ │ │ │ ├── file/
│ │ │ │ │ ├── AbsoluteFileImpl.kt
│ │ │ │ │ ├── AbsoluteFolderImpl.kt
│ │ │ │ │ ├── AbstractAbsoluteFileFolder.kt
│ │ │ │ │ ├── FileProtocol.kt
│ │ │ │ │ └── RemoteFilesImpl.kt
│ │ │ │ ├── friendgroup/
│ │ │ │ │ ├── FriendGroupImpl.kt
│ │ │ │ │ └── FriendGroupsImpl.kt
│ │ │ │ ├── info/
│ │ │ │ │ ├── FriendGroupInfo.kt
│ │ │ │ │ ├── FriendInfoImpl.kt
│ │ │ │ │ ├── GroupInfoImpl.kt
│ │ │ │ │ ├── MemberInfoImpl.kt
│ │ │ │ │ └── StrangerInfoImpl.kt
│ │ │ │ ├── roaming/
│ │ │ │ │ ├── AbstractRoamingMessages.kt
│ │ │ │ │ ├── RoamingMessagesImplFriend.kt
│ │ │ │ │ ├── RoamingMessagesImplGroup.kt
│ │ │ │ │ └── TimeBasedRoamingMessagesImpl.kt
│ │ │ │ └── util.kt
│ │ │ ├── event/
│ │ │ │ ├── EventChannelImpl.kt
│ │ │ │ ├── EventChannelToEventDispatcherAdapter.kt
│ │ │ │ ├── EventListeners.kt
│ │ │ │ ├── GlobalEventChannelProviderImpl.kt
│ │ │ │ ├── SafeListener.kt
│ │ │ │ └── package.kt
│ │ │ ├── message/
│ │ │ │ ├── ReceiveMessageHandler.kt
│ │ │ │ ├── RefinableMessage.kt
│ │ │ │ ├── atImpl.kt
│ │ │ │ ├── contextualBugReportException.kt
│ │ │ │ ├── data/
│ │ │ │ │ ├── FileMessageImpl.kt
│ │ │ │ │ ├── LongMessageInternal.kt
│ │ │ │ │ ├── MarketFaceImpl.kt
│ │ │ │ │ ├── MessageChainBuilderExt.kt
│ │ │ │ │ ├── MessageSourceExt.kt
│ │ │ │ │ ├── MultiMsgUploader.kt
│ │ │ │ │ ├── UnsupportedMessageImpl.kt
│ │ │ │ │ ├── audio.kt
│ │ │ │ │ ├── lightApp.kt
│ │ │ │ │ └── shortVideo.kt
│ │ │ │ ├── faceImpl.kt
│ │ │ │ ├── flags/
│ │ │ │ │ └── InternalFlagOnlyMessage.kt
│ │ │ │ ├── image/
│ │ │ │ │ ├── AbstractImage.kt
│ │ │ │ │ ├── ImageDecoder.kt
│ │ │ │ │ ├── ImageInfo.kt
│ │ │ │ │ ├── ImageUrlAware.kt
│ │ │ │ │ ├── InternalImageProtocolImpl.kt
│ │ │ │ │ ├── InternalShortVideoProtocolImpl.kt
│ │ │ │ │ ├── OfflineImage.kt
│ │ │ │ │ ├── OnlineImage.kt
│ │ │ │ │ └── jceData.kt
│ │ │ │ ├── imagesImpl.kt
│ │ │ │ ├── messageToElems.kt
│ │ │ │ ├── protocol/
│ │ │ │ │ ├── MessageProtocol.kt
│ │ │ │ │ ├── MessageProtocolFacade.kt
│ │ │ │ │ ├── decode/
│ │ │ │ │ │ ├── MessageDecoder.kt
│ │ │ │ │ │ └── MessageDecoderPipeline.kt
│ │ │ │ │ ├── encode/
│ │ │ │ │ │ ├── MessageEncoder.kt
│ │ │ │ │ │ └── MessageEncoderPipeline.kt
│ │ │ │ │ ├── impl/
│ │ │ │ │ │ ├── AudioProtocol.kt
│ │ │ │ │ │ ├── CustomMessageProtocol.kt
│ │ │ │ │ │ ├── FaceProtocol.kt
│ │ │ │ │ │ ├── FileMessageProtocol.kt
│ │ │ │ │ │ ├── FlashImageProtocol.kt
│ │ │ │ │ │ ├── ForwardMessageProtocol.kt
│ │ │ │ │ │ ├── GeneralMessageSenderProtocol.kt
│ │ │ │ │ │ ├── IgnoredMessagesProtocol.kt
│ │ │ │ │ │ ├── ImageProtocol.kt
│ │ │ │ │ │ ├── LongMessageProtocol.kt
│ │ │ │ │ │ ├── MarketFaceProtocol.kt
│ │ │ │ │ │ ├── MusicShareProtocol.kt
│ │ │ │ │ │ ├── PokeMessageProtocol.kt
│ │ │ │ │ │ ├── PttMessageProtocol.kt
│ │ │ │ │ │ ├── QuoteReplyProtocol.kt
│ │ │ │ │ │ ├── RichMessageProtocol.kt
│ │ │ │ │ │ ├── ShortVideoProtocol.kt
│ │ │ │ │ │ ├── SuperFaceProtocol.kt
│ │ │ │ │ │ ├── TextProtocol.kt
│ │ │ │ │ │ ├── UnsupportedMessageProtocol.kt
│ │ │ │ │ │ └── VipFaceProtocol.kt
│ │ │ │ │ ├── outgoing/
│ │ │ │ │ │ ├── HighwayUploader.kt
│ │ │ │ │ │ ├── MessageProtocolStrategy.kt
│ │ │ │ │ │ ├── OutgoingMessagePipeline.kt
│ │ │ │ │ │ ├── OutgoingMessagePipelineProcessor.kt
│ │ │ │ │ │ └── OutgoingMessageProcessor.kt
│ │ │ │ │ └── serialization/
│ │ │ │ │ └── MessageSerializer.kt
│ │ │ │ ├── rich/
│ │ │ │ │ └── package.kt
│ │ │ │ ├── source/
│ │ │ │ │ ├── MessageSourceInternal.kt
│ │ │ │ │ ├── incomingSourceImpl.kt
│ │ │ │ │ ├── offlineSourceImpl.kt
│ │ │ │ │ └── outgoingSourceImpl.kt
│ │ │ │ └── visitor/
│ │ │ │ └── MessageVisitorEx.kt
│ │ │ ├── network/
│ │ │ │ ├── ContactListCache.kt
│ │ │ │ ├── DebuggingProperties.kt
│ │ │ │ ├── Packet.kt
│ │ │ │ ├── QQAndroidClient.kt
│ │ │ │ ├── Ticket.kt
│ │ │ │ ├── auth/
│ │ │ │ │ ├── AuthControl.kt
│ │ │ │ │ ├── BotAuthSessionInternal.kt
│ │ │ │ │ ├── DefaultBotAuthorizationFactoryImpl.kt
│ │ │ │ │ └── SafeBotAuthSession.kt
│ │ │ │ ├── component/
│ │ │ │ │ ├── ComponentKey.kt
│ │ │ │ │ ├── ComponentStorage.kt
│ │ │ │ │ ├── ComponentStorageDelegate.kt
│ │ │ │ │ ├── ConcurrentComponentStorage.kt
│ │ │ │ │ ├── MutableComponentStorage.kt
│ │ │ │ │ └── NoSuchComponentException.kt
│ │ │ │ ├── components/
│ │ │ │ │ ├── AccountSecretsManager.kt
│ │ │ │ │ ├── BdhSessionSyncer.kt
│ │ │ │ │ ├── BotClientHolder.kt
│ │ │ │ │ ├── BotInitProcessor.kt
│ │ │ │ │ ├── BotOfflineEventMonitor.kt
│ │ │ │ │ ├── CacheValidator.kt
│ │ │ │ │ ├── ClockComponent.kt
│ │ │ │ │ ├── ConfigPushProcessor.kt
│ │ │ │ │ ├── ConfigPushSyncer.kt
│ │ │ │ │ ├── ContactCacheService.kt
│ │ │ │ │ ├── ContactUpdater.kt
│ │ │ │ │ ├── EcdhInitialPublicKeyUpdater.kt
│ │ │ │ │ ├── EncryptServiceHolder.kt
│ │ │ │ │ ├── EventDispatcher.kt
│ │ │ │ │ ├── HeartbeatProcessor.kt
│ │ │ │ │ ├── HeartbeatScheduler.kt
│ │ │ │ │ ├── HttpClientProvider.kt
│ │ │ │ │ ├── KeyRefreshProcessor.kt
│ │ │ │ │ ├── MessageSvcSyncer.kt
│ │ │ │ │ ├── NetworkHandlerReference.kt
│ │ │ │ │ ├── NoticeProcessorPipeline.kt
│ │ │ │ │ ├── OtherClientUpdater.kt
│ │ │ │ │ ├── PacketCodec.kt
│ │ │ │ │ ├── PacketHandler.kt
│ │ │ │ │ ├── PacketLoggingStrategy.kt
│ │ │ │ │ ├── QRCodeLoginProcessor.kt
│ │ │ │ │ ├── ServerList.kt
│ │ │ │ │ ├── SsoProcessor.kt
│ │ │ │ │ ├── SsoProcessorContext.kt
│ │ │ │ │ ├── SyncController.kt
│ │ │ │ │ └── package.kt
│ │ │ │ ├── handler/
│ │ │ │ │ ├── CommonNetworkHandler.kt
│ │ │ │ │ ├── NetworkHandler.kt
│ │ │ │ │ ├── NetworkHandlerContext.kt
│ │ │ │ │ ├── NetworkHandlerFactory.kt
│ │ │ │ │ ├── NetworkHandlerSupport.kt
│ │ │ │ │ ├── selector/
│ │ │ │ │ │ ├── AbstractKeepAliveNetworkHandlerSelector.kt
│ │ │ │ │ │ ├── ExceptionInSelectorResumeException.kt
│ │ │ │ │ │ ├── MaxAttemptsReachedException.kt
│ │ │ │ │ │ ├── NetworkChannelException.kt
│ │ │ │ │ │ ├── NetworkException.kt
│ │ │ │ │ │ ├── NetworkHandlerSelector.kt
│ │ │ │ │ │ ├── NoServerAvailableException.kt
│ │ │ │ │ │ ├── PacketTimeoutException.kt
│ │ │ │ │ │ ├── SelectorNetworkHandler.kt
│ │ │ │ │ │ └── SelectorRequireReconnectException.kt
│ │ │ │ │ └── state/
│ │ │ │ │ ├── CombinedStateObserver.kt
│ │ │ │ │ ├── ExceptionInStateObserverException.kt
│ │ │ │ │ ├── JobAttachStateObserver.kt
│ │ │ │ │ ├── LoggingStateObserver.kt
│ │ │ │ │ ├── SafeStateObserver.kt
│ │ │ │ │ ├── StateChangedObserver.kt
│ │ │ │ │ └── StateObserver.kt
│ │ │ │ ├── highway/
│ │ │ │ │ ├── ChunkedFlowSession.kt
│ │ │ │ │ ├── Highway.kt
│ │ │ │ │ └── Http.kt
│ │ │ │ ├── impl/
│ │ │ │ │ ├── HeartbeatFailedException.kt
│ │ │ │ │ ├── ServerClosedException.kt
│ │ │ │ │ └── package.kt
│ │ │ │ ├── keys.kt
│ │ │ │ ├── notice/
│ │ │ │ │ ├── NewContactSupport.kt
│ │ │ │ │ ├── PrivateContactSupport.kt
│ │ │ │ │ ├── TraceLoggingNoticeProcessor.kt
│ │ │ │ │ ├── UnconsumedNoticesAlerter.kt
│ │ │ │ │ ├── decoders/
│ │ │ │ │ │ ├── GroupNotificationDecoder.kt
│ │ │ │ │ │ └── MsgInfoDecoder.kt
│ │ │ │ │ ├── group/
│ │ │ │ │ │ ├── GroupMessageProcessor.kt
│ │ │ │ │ │ ├── GroupNotificationProcessor.kt
│ │ │ │ │ │ ├── GroupOrMemberListNoticeProcessor.kt
│ │ │ │ │ │ └── GroupRecallProcessor.kt
│ │ │ │ │ └── priv/
│ │ │ │ │ ├── FriendGroupNoticeProcessor.kt
│ │ │ │ │ ├── FriendNoticeProcessor.kt
│ │ │ │ │ ├── OtherClientNoticeProcessor.kt
│ │ │ │ │ └── PrivateMessageProcessor.kt
│ │ │ │ ├── protocol/
│ │ │ │ │ ├── LoginType.kt
│ │ │ │ │ ├── SyncingCacheList.kt
│ │ │ │ │ ├── data/
│ │ │ │ │ │ ├── jce/
│ │ │ │ │ │ │ ├── ChangeFriendNameReq.kt
│ │ │ │ │ │ │ ├── ConfigPush.kt
│ │ │ │ │ │ │ ├── DeviceItemDes.kt
│ │ │ │ │ │ │ ├── FriendList.kt
│ │ │ │ │ │ │ ├── GroupMngReq.kt
│ │ │ │ │ │ │ ├── InstanceInfo.kt
│ │ │ │ │ │ │ ├── MoveGroupMemPack.kt
│ │ │ │ │ │ │ ├── MsgType0x210.kt
│ │ │ │ │ │ │ ├── OnlinePushPack.kt
│ │ │ │ │ │ │ ├── PushNotifyPack.kt
│ │ │ │ │ │ │ ├── ReqPushStatus.kt
│ │ │ │ │ │ │ ├── ReqSummaryCard.kt
│ │ │ │ │ │ │ ├── RequestMSFForceOffline.kt
│ │ │ │ │ │ │ ├── RequestPacket.kt
│ │ │ │ │ │ │ ├── RequestPushForceOffline.kt
│ │ │ │ │ │ │ ├── SetGroupPack.kt
│ │ │ │ │ │ │ ├── SvcDevLoginInfo.kt
│ │ │ │ │ │ │ ├── SvcReqMSFLoginNotifyData.kt
│ │ │ │ │ │ │ ├── SvcReqRegister.kt
│ │ │ │ │ │ │ ├── SvcRequestPushReadedNotify.kt
│ │ │ │ │ │ │ ├── SvcRespRegister.kt
│ │ │ │ │ │ │ ├── SvcRspGetDevLoginInfo.kt
│ │ │ │ │ │ │ └── TroopList.kt
│ │ │ │ │ │ ├── proto/
│ │ │ │ │ │ │ ├── Cmd0x346.kt
│ │ │ │ │ │ │ ├── Cmd0x352.kt
│ │ │ │ │ │ │ ├── Cmd0x388.kt
│ │ │ │ │ │ │ ├── Cmd0x857.kt
│ │ │ │ │ │ │ ├── Cmd0x858.kt
│ │ │ │ │ │ │ ├── Define.kt
│ │ │ │ │ │ │ ├── Exciting.kt
│ │ │ │ │ │ │ ├── FrdSysMsg.kt
│ │ │ │ │ │ │ ├── FriendListCommon.kt
│ │ │ │ │ │ │ ├── Group.kt
│ │ │ │ │ │ │ ├── GroupFileCommon.kt
│ │ │ │ │ │ │ ├── Highway.kt
│ │ │ │ │ │ │ ├── HummerCommelem.kt
│ │ │ │ │ │ │ ├── HummerResv12.kt
│ │ │ │ │ │ │ ├── HummerResv21.kt
│ │ │ │ │ │ │ ├── HummerResv3.kt
│ │ │ │ │ │ │ ├── HummerResv6.kt
│ │ │ │ │ │ │ ├── ImageRequest.kt
│ │ │ │ │ │ │ ├── ImgExtPbResvAttrCommon.kt
│ │ │ │ │ │ │ ├── LongMsg.kt
│ │ │ │ │ │ │ ├── Msg.kt
│ │ │ │ │ │ │ ├── MsgCommon.kt
│ │ │ │ │ │ │ ├── MsgRevokeUserDef.kt
│ │ │ │ │ │ │ ├── MsgSvc.kt
│ │ │ │ │ │ │ ├── MsgTransmit.kt
│ │ │ │ │ │ │ ├── MultiMsg.kt
│ │ │ │ │ │ │ ├── OIDB.kt
│ │ │ │ │ │ │ ├── Oidb0x6d6.kt
│ │ │ │ │ │ │ ├── Oidb0x6d7.kt
│ │ │ │ │ │ │ ├── Oidb0x6d8.kt
│ │ │ │ │ │ │ ├── Oidb0x6d9.kt
│ │ │ │ │ │ │ ├── Oidb0x769.kt
│ │ │ │ │ │ │ ├── Oidb0xeac.kt
│ │ │ │ │ │ │ ├── OidbCmd0xb77.kt
│ │ │ │ │ │ │ ├── OnlinePush.kt
│ │ │ │ │ │ │ ├── PbReserve.kt
│ │ │ │ │ │ │ ├── PttShortVideo.kt
│ │ │ │ │ │ │ ├── SSOReserveField.kt
│ │ │ │ │ │ │ ├── StatSvcGetOnline.kt
│ │ │ │ │ │ │ ├── StatSvcSimpleGet.kt
│ │ │ │ │ │ │ ├── StructMsg.kt
│ │ │ │ │ │ │ ├── SyncCookie.kt
│ │ │ │ │ │ │ ├── msgType0x210.kt
│ │ │ │ │ │ │ └── msgType0x211.kt
│ │ │ │ │ │ └── richstatus/
│ │ │ │ │ │ └── RichStatus.kt
│ │ │ │ │ └── packet/
│ │ │ │ │ ├── EncryptMethod.kt
│ │ │ │ │ ├── OutgoingPacket.kt
│ │ │ │ │ ├── PacketFactory.kt
│ │ │ │ │ ├── Tlv.kt
│ │ │ │ │ ├── chat/
│ │ │ │ │ │ ├── ChatType.kt
│ │ │ │ │ │ ├── GroupFile.kt
│ │ │ │ │ │ ├── MultiMsg.kt
│ │ │ │ │ │ ├── MusicSharePacket.kt
│ │ │ │ │ │ ├── NewContact.kt
│ │ │ │ │ │ ├── NudgePacket.kt
│ │ │ │ │ │ ├── PbMessageSvc.kt
│ │ │ │ │ │ ├── SendMessageMultiProtocol.kt
│ │ │ │ │ │ ├── TroopEssenceMsgManager.kt
│ │ │ │ │ │ ├── TroopManagement.kt
│ │ │ │ │ │ ├── image/
│ │ │ │ │ │ │ ├── ImgStore.kt
│ │ │ │ │ │ │ └── LongConn.kt
│ │ │ │ │ │ ├── receive/
│ │ │ │ │ │ │ ├── MessageSvc.PbDeleteMsg.kt
│ │ │ │ │ │ │ ├── MessageSvc.PbGetGroupMsg.kt
│ │ │ │ │ │ │ ├── MessageSvc.PbGetMsg.kt
│ │ │ │ │ │ │ ├── MessageSvc.PbGetRoamMsgReq.kt
│ │ │ │ │ │ │ ├── MessageSvc.PbSendMsg.kt
│ │ │ │ │ │ │ ├── MessageSvc.PushForceOffline.kt
│ │ │ │ │ │ │ ├── MessageSvc.PushNotify.kt
│ │ │ │ │ │ │ ├── MessageSvc.PushReaded.kt
│ │ │ │ │ │ │ ├── MessageSvc.RequestPushStatus.kt
│ │ │ │ │ │ │ ├── OnlinePush.PbC2CMsgSync.kt
│ │ │ │ │ │ │ ├── OnlinePush.PbPushGroupMsg.kt
│ │ │ │ │ │ │ ├── OnlinePush.PbPushTransMsg.kt
│ │ │ │ │ │ │ ├── OnlinePush.ReqPush.kt
│ │ │ │ │ │ │ └── OnlinePush.SidExpired.kt
│ │ │ │ │ │ ├── shortvideo/
│ │ │ │ │ │ │ └── PttCenterSvr.kt
│ │ │ │ │ │ └── voice/
│ │ │ │ │ │ └── PttStore.kt
│ │ │ │ │ ├── list/
│ │ │ │ │ │ ├── FriendList.kt
│ │ │ │ │ │ ├── ProfileService.kt
│ │ │ │ │ │ └── StrangerList.kt
│ │ │ │ │ ├── login/
│ │ │ │ │ │ ├── ConfigPushSvc.kt
│ │ │ │ │ │ ├── Heartbeat.kt
│ │ │ │ │ │ ├── StatSvc.kt
│ │ │ │ │ │ ├── WtLogin.kt
│ │ │ │ │ │ └── wtlogin/
│ │ │ │ │ │ ├── WtLogin10.kt
│ │ │ │ │ │ ├── WtLogin15.kt
│ │ │ │ │ │ ├── WtLogin2.kt
│ │ │ │ │ │ ├── WtLogin20.kt
│ │ │ │ │ │ ├── WtLogin7.kt
│ │ │ │ │ │ ├── WtLogin8.kt
│ │ │ │ │ │ ├── WtLogin9.kt
│ │ │ │ │ │ └── WtLoginExt.kt
│ │ │ │ │ ├── sso/
│ │ │ │ │ │ └── TRpcRawPacket.kt
│ │ │ │ │ └── summarycard/
│ │ │ │ │ ├── FriendRemark.kt
│ │ │ │ │ └── SummaryCard.kt
│ │ │ │ └── qimei/
│ │ │ │ └── Qimei.kt
│ │ │ ├── pipeline/
│ │ │ │ └── ProcessorPipeline.kt
│ │ │ ├── spi/
│ │ │ │ └── EncryptService.kt
│ │ │ └── utils/
│ │ │ ├── AtomicIntSeq.kt
│ │ │ ├── BotConfigurationExt.kt
│ │ │ ├── ExternalResourceImpl.kt
│ │ │ ├── FileSystem.kt
│ │ │ ├── FragmentedMsgParsingCache.kt
│ │ │ ├── GuidSource.kt
│ │ │ ├── ImagePatcher.kt
│ │ │ ├── MiraiCoreServices.kt
│ │ │ ├── MiraiProtocolInternal.kt
│ │ │ ├── MiraiUtilsLogger.kt
│ │ │ ├── NetworkType.kt
│ │ │ ├── PlatformDatagramChannel.kt
│ │ │ ├── PlatformSocket.kt
│ │ │ ├── ScheduledJob.kt
│ │ │ ├── SingleEntrantLock.kt
│ │ │ ├── SubLogger.kt
│ │ │ ├── collection.kt
│ │ │ ├── crypto/
│ │ │ │ ├── AES.kt
│ │ │ │ ├── Ecdh.kt
│ │ │ │ ├── QQEcdh.kt
│ │ │ │ ├── RSA.kt
│ │ │ │ └── TEA.kt
│ │ │ ├── flags.kt
│ │ │ ├── io/
│ │ │ │ ├── ProtocolStruct.kt
│ │ │ │ ├── output.kt
│ │ │ │ └── serialization/
│ │ │ │ ├── tars/
│ │ │ │ │ ├── Tars.kt
│ │ │ │ │ ├── TarsId.kt
│ │ │ │ │ └── internal/
│ │ │ │ │ ├── TarsDecoder.kt
│ │ │ │ │ ├── TarsInput.kt
│ │ │ │ │ ├── TarsOld.kt
│ │ │ │ │ └── TarsTag.kt
│ │ │ │ └── utils.kt
│ │ │ ├── numbers.kt
│ │ │ ├── printStructure.kt
│ │ │ ├── retryWithServers.kt
│ │ │ ├── runCoroutineInPlace.kt
│ │ │ ├── string.kt
│ │ │ └── type.kt
│ │ └── resources/
│ │ ├── META-INF/
│ │ │ └── services/
│ │ │ ├── net.mamoe.mirai.IMirai
│ │ │ ├── net.mamoe.mirai.auth.DefaultBotAuthorizationFactory
│ │ │ ├── net.mamoe.mirai.event.InternalGlobalEventChannelProvider
│ │ │ ├── net.mamoe.mirai.internal.message.protocol.MessageProtocol
│ │ │ ├── net.mamoe.mirai.message.data.InternalImageProtocol
│ │ │ ├── net.mamoe.mirai.message.data.InternalShortVideoProtocol
│ │ │ ├── net.mamoe.mirai.message.data.OfflineAudio$Factory
│ │ │ └── net.mamoe.mirai.utils.InternalProtocolDataExchange
│ │ └── emoji-pattern.regex
│ ├── commonTest/
│ │ ├── kotlin/
│ │ │ ├── AbstractTestWithMiraiImpl.kt
│ │ │ ├── BotFactoryTest.kt
│ │ │ ├── MockBot.kt
│ │ │ ├── PlatformUtilsTest.kt
│ │ │ ├── ScheduledJobTest.kt
│ │ │ ├── TypeConversionTest.kt
│ │ │ ├── contact/
│ │ │ │ └── file/
│ │ │ │ └── AbsoluteFolderTest.kt
│ │ │ ├── event/
│ │ │ │ ├── AbstractEventTest.kt
│ │ │ │ ├── CancelScopeTest.kt
│ │ │ │ ├── EventChannelFlowTest.kt
│ │ │ │ ├── EventChannelTest.kt
│ │ │ │ ├── EventTests.kt
│ │ │ │ ├── NextEventTest.kt
│ │ │ │ └── StepUtil.kt
│ │ │ ├── message/
│ │ │ │ ├── CleanupRubbishMessageElementsTest.kt
│ │ │ │ ├── ImageBuilderTest.kt
│ │ │ │ ├── ImageReadingTest.kt
│ │ │ │ ├── InternalImageProtocolImplTest.kt
│ │ │ │ ├── RefineContextTest.kt
│ │ │ │ ├── code/
│ │ │ │ │ └── TestMiraiCode.kt
│ │ │ │ ├── data/
│ │ │ │ │ ├── AudioTest.kt
│ │ │ │ │ ├── ContentEqualsTest.kt
│ │ │ │ │ ├── ForwardRefineTest.kt
│ │ │ │ │ ├── MessageReceiptTest.kt
│ │ │ │ │ ├── MessageRefineTest.kt
│ │ │ │ │ └── MessageSerializationTest.kt
│ │ │ │ ├── protocol/
│ │ │ │ │ ├── MessageProtocolFacadeTest.kt
│ │ │ │ │ └── impl/
│ │ │ │ │ ├── AbstractMessageProtocolTest.kt
│ │ │ │ │ ├── CustomMessageProtocolTest.kt
│ │ │ │ │ ├── EqualityAsserter.kt
│ │ │ │ │ ├── FaceProtocolTest.kt
│ │ │ │ │ ├── FileMessageProtocolTest.kt
│ │ │ │ │ ├── FlashImageProtocolTest.kt
│ │ │ │ │ ├── ForwardMessageProtocolTest.kt
│ │ │ │ │ ├── GeneralMessageSenderProtocolTest.kt
│ │ │ │ │ ├── ImageProtocolTest.kt
│ │ │ │ │ ├── LongMessageProtocolTest.kt
│ │ │ │ │ ├── MarketFaceProtocolTest.kt
│ │ │ │ │ ├── MusicShareProtocolTest.kt
│ │ │ │ │ ├── PokeMessageProtocolTest.kt
│ │ │ │ │ ├── QuoteReplyProtocolTest.kt
│ │ │ │ │ ├── RichMessageProtocolTest.kt
│ │ │ │ │ ├── SuperFaceProtocolTest.kt
│ │ │ │ │ ├── TextProtocolTest.kt
│ │ │ │ │ └── VipFaceProtocolTest.kt
│ │ │ │ └── serialization/
│ │ │ │ └── AbstractMessageSerializationTest.kt
│ │ │ ├── network/
│ │ │ │ ├── AwaitStateTest.kt
│ │ │ │ ├── PacketCodecTest.kt
│ │ │ │ ├── ServerListTest.kt
│ │ │ │ ├── auth/
│ │ │ │ │ ├── AbstractBotAuthTest.kt
│ │ │ │ │ ├── AuthorizationReasonTest.kt
│ │ │ │ │ └── BotAuthorizationTest.kt
│ │ │ │ ├── component/
│ │ │ │ │ ├── AbstractMutableComponentStorageTest.kt
│ │ │ │ │ ├── BotAuthControlTest.kt
│ │ │ │ │ ├── BotInitProcessorTest.kt
│ │ │ │ │ ├── CombinedStorageTest.kt
│ │ │ │ │ └── EventDispatcherTest.kt
│ │ │ │ ├── framework/
│ │ │ │ │ ├── AbstractCommonNHTest.kt
│ │ │ │ │ ├── AbstractCommonNHTestWithSelector.kt
│ │ │ │ │ ├── AbstractMockNetworkHandlerTest.kt
│ │ │ │ │ ├── AbstractNetworkHandlerTest.kt
│ │ │ │ │ ├── AbstractRealNetworkHandlerTest.kt
│ │ │ │ │ ├── AbstractRealTimeActionTestUnit.kt
│ │ │ │ │ ├── ITestNetworkHandler.kt
│ │ │ │ │ ├── PacketReplier.kt
│ │ │ │ │ ├── SynchronizedStdoutLogger.kt
│ │ │ │ │ ├── TestNetworkHandler.kt
│ │ │ │ │ ├── TestNetworkHandlerContext.kt
│ │ │ │ │ ├── components/
│ │ │ │ │ │ ├── TestEventDispatcherImpl.kt
│ │ │ │ │ │ ├── TestImagePatcher.kt
│ │ │ │ │ │ └── TestSsoProcessor.kt
│ │ │ │ │ ├── networkUtils.kt
│ │ │ │ │ ├── sessionUtils.kt
│ │ │ │ │ └── test/
│ │ │ │ │ └── FrameworkEventTest.kt
│ │ │ │ ├── handler/
│ │ │ │ │ ├── KeepAliveNetworkHandlerSelectorTest.kt
│ │ │ │ │ ├── SelectorHeartbeatRecoveryTest.kt
│ │ │ │ │ ├── SelectorLoginRecoveryTest.kt
│ │ │ │ │ ├── StandaloneSelectorTests.kt
│ │ │ │ │ └── StateObserverTest.kt
│ │ │ │ └── impl/
│ │ │ │ └── common/
│ │ │ │ ├── AccountSecretsTest.kt
│ │ │ │ ├── BotLifecycleTest.kt
│ │ │ │ ├── CommonNHAddressChangedTest.kt
│ │ │ │ ├── CommonNHBotNormalLoginTest.kt
│ │ │ │ ├── CommonNHEventTest.kt
│ │ │ │ ├── ResumeConnectionTest.kt
│ │ │ │ ├── SendPacketTest.kt
│ │ │ │ └── SetStateTest.kt
│ │ │ ├── notice/
│ │ │ │ └── processors/
│ │ │ │ ├── AbstractNoticeProcessorTest.kt
│ │ │ │ ├── BotInvitedJoinTest.kt
│ │ │ │ ├── FriendNickChangeTest.kt
│ │ │ │ ├── GroupRetrieveTest.kt
│ │ │ │ ├── GroupTransferTest.kt
│ │ │ │ ├── MemberAdminChangeTest.kt
│ │ │ │ ├── MemberJoinTest.kt
│ │ │ │ ├── MemberQuitTest.kt
│ │ │ │ ├── MessageSyncTest.kt
│ │ │ │ ├── MessageTest.kt
│ │ │ │ ├── MuteTest.kt
│ │ │ │ └── RecallTest.kt
│ │ │ ├── samples/
│ │ │ │ └── CustomMessageSamples.kt
│ │ │ ├── test/
│ │ │ │ ├── events.kt
│ │ │ │ ├── initPlatform.common.kt
│ │ │ │ ├── printing.kt
│ │ │ │ └── utils.kt
│ │ │ ├── testFramework/
│ │ │ │ ├── DebugProbes.kt
│ │ │ │ ├── DynamicTest.kt
│ │ │ │ ├── Platform.kt
│ │ │ │ ├── message/
│ │ │ │ │ └── TestMessageSourceSequenceIdAwaiter.kt
│ │ │ │ ├── package.kt
│ │ │ │ └── rules/
│ │ │ │ └── DisabledOnJvmLikePlatform.kt
│ │ │ └── utils/
│ │ │ ├── FileSystemTest.kt
│ │ │ ├── crypto/
│ │ │ │ ├── AESTest.kt
│ │ │ │ ├── EcdhTest.kt
│ │ │ │ └── RSATest.kt
│ │ │ └── io/
│ │ │ └── serialization/
│ │ │ ├── ReadJceStructTest.kt
│ │ │ └── tars/
│ │ │ └── internal/
│ │ │ └── DebugLoggerTest.kt
│ │ └── resources/
│ │ ├── META-INF/
│ │ │ └── services/
│ │ │ └── net.mamoe.mirai.internal.message.source.MessageSourceSequenceIdAwaiter
│ │ └── recording/
│ │ └── configs/
│ │ ├── desensitization.yml
│ │ └── test.desensitization.yml
│ ├── jvmBaseMain/
│ │ └── kotlin/
│ │ ├── MiraiImpl.kt
│ │ ├── contact/
│ │ │ ├── GroupImpl.kt
│ │ │ ├── active/
│ │ │ │ └── GroupActiveImpl.kt
│ │ │ └── file/
│ │ │ └── AbsoluteFolderImpl.kt
│ │ ├── message/
│ │ │ └── protocol/
│ │ │ └── impl/
│ │ │ └── TextProtocol.kt
│ │ ├── network/
│ │ │ ├── component/
│ │ │ │ └── ComponentKey.kt
│ │ │ ├── handler/
│ │ │ │ ├── NetworkHandlerFactory.kt
│ │ │ │ ├── SocketAddress.kt
│ │ │ │ └── selector/
│ │ │ │ └── SelectorRequireReconnectException.kt
│ │ │ ├── impl/
│ │ │ │ ├── netty/
│ │ │ │ │ ├── NettyChannelException.kt
│ │ │ │ │ ├── NettyNetworkHandler.kt
│ │ │ │ │ ├── NettyNetworkHandlerFactory.kt
│ │ │ │ │ └── nettyUtils.kt
│ │ │ │ └── package.kt
│ │ │ ├── package.kt
│ │ │ └── protocol/
│ │ │ └── data/
│ │ │ └── richstatus/
│ │ │ └── RichStatus.kt
│ │ ├── package.kt
│ │ └── utils/
│ │ ├── BotConfigurationExt.kt
│ │ ├── ExternalResourceImpl.kt
│ │ ├── PlatformSocket.kt
│ │ ├── RemoteFileImpl.kt
│ │ └── crypto/
│ │ ├── AES.kt
│ │ ├── JceEcdh.kt
│ │ ├── JceEcdhWithProvider.kt
│ │ ├── QQEcdhJvm.kt
│ │ └── RSA.kt
│ ├── jvmBaseTest/
│ │ ├── kotlin/
│ │ │ ├── event/
│ │ │ │ ├── EventChannelJavaTest.java
│ │ │ │ ├── EventLaunchUndispatchedTest.kt
│ │ │ │ ├── JvmMethodEventsTest.kt
│ │ │ │ ├── JvmMethodEventsTestJava.kt
│ │ │ │ └── SimpleListenerHostTestJava.kt
│ │ │ ├── network/
│ │ │ │ ├── component/
│ │ │ │ │ ├── ComponentKeyTest.kt
│ │ │ │ │ └── ConcurrentComponentStorageToStringTest.kt
│ │ │ │ ├── framework/
│ │ │ │ │ ├── AbstractCommonNHTest.kt
│ │ │ │ │ ├── AbstractNettyNHTest.kt
│ │ │ │ │ └── NettyNHTestChannel.kt
│ │ │ │ └── impl/
│ │ │ │ └── netty/
│ │ │ │ └── CommonNHUtilsTest.kt
│ │ │ ├── package.kt
│ │ │ ├── test/
│ │ │ │ ├── AbstractTest.kt
│ │ │ │ └── NativeTestWrapper.kt
│ │ │ ├── testFramework/
│ │ │ │ ├── DebugProbes.kt
│ │ │ │ ├── DynamicTest.kt
│ │ │ │ ├── codegen/
│ │ │ │ │ ├── RemoveDefaultValuesVisitor.kt
│ │ │ │ │ ├── ValueDescAnalyzer.kt
│ │ │ │ │ ├── descriptors/
│ │ │ │ │ │ ├── ClassValueDesc.kt
│ │ │ │ │ │ ├── CollectionLikeValueDesc.kt
│ │ │ │ │ │ ├── CollectionValueDesc.kt
│ │ │ │ │ │ ├── MapValueDesc.kt
│ │ │ │ │ │ ├── ObjectArrayValueDesc.kt
│ │ │ │ │ │ ├── PlainValueDesc.kt
│ │ │ │ │ │ ├── PrimitiveArrayValueDesc.kt
│ │ │ │ │ │ └── ValueDesc.kt
│ │ │ │ │ ├── test/
│ │ │ │ │ │ ├── IndenterTest.kt
│ │ │ │ │ │ ├── OptimizeByteArrayAsHexStringTransformerTest.kt
│ │ │ │ │ │ └── visitors/
│ │ │ │ │ │ ├── ValueDescAnalyzerTest.kt
│ │ │ │ │ │ └── ValueDescToStringRendererTest.kt
│ │ │ │ │ ├── visitor/
│ │ │ │ │ │ ├── ValueDescTransformer.kt
│ │ │ │ │ │ ├── ValueDescVisitor.kt
│ │ │ │ │ │ └── ValueDescVisitorUnit.kt
│ │ │ │ │ └── visitors/
│ │ │ │ │ ├── AnalyzeDefaultValuesMappingVisitor.kt
│ │ │ │ │ ├── ClassFormatter.kt
│ │ │ │ │ ├── Indenter.kt
│ │ │ │ │ ├── OptimizeByteArrayAsHexStringTransformer.kt
│ │ │ │ │ └── ValueDescToStringRenderer.kt
│ │ │ │ ├── desensitizer/
│ │ │ │ │ └── Desensitizer.kt
│ │ │ │ ├── message/
│ │ │ │ │ └── protocol/
│ │ │ │ │ └── MessageDecodingRecorder.kt
│ │ │ │ ├── notice/
│ │ │ │ │ └── RecordingNoticeHandler.kt
│ │ │ │ ├── rules/
│ │ │ │ │ └── DisabledOnPlatform.kt
│ │ │ │ └── test/
│ │ │ │ └── RecordingNoticeProcessorTest.kt
│ │ │ └── utils/
│ │ │ ├── CombinedExternalResourceTest.kt
│ │ │ ├── StructureToStringTransformerNew.kt
│ │ │ └── test/
│ │ │ └── StructureToStringTransformerNewTest.kt
│ │ └── resources/
│ │ └── META-INF/
│ │ └── services/
│ │ └── net.mamoe.mirai.utils.StructureToStringTransformer
│ ├── jvmMain/
│ │ └── kotlin/
│ │ ├── package.kt
│ │ └── utils/
│ │ └── crypto/
│ │ └── EcdhJvmDesktop.kt
│ └── jvmTest/
│ ├── README.md
│ ├── kotlin/
│ │ ├── AtomicResizeCacheListTest.kt
│ │ ├── JavaApiTests.java
│ │ ├── bootstrap/
│ │ │ ├── RunMessageDecodingRecorder.kt
│ │ │ └── RunNoticeRecorder.kt
│ │ ├── directboot/
│ │ │ ├── DebugRunHelper.kt
│ │ │ └── envprepare.kt
│ │ ├── netinternalkit/
│ │ │ ├── Ansi.kt
│ │ │ ├── LogCapture.kt
│ │ │ └── NetReplayHelper.kt
│ │ ├── package.kt
│ │ ├── test/
│ │ │ └── initializeTestJvm.kt
│ │ └── testFramework/
│ │ └── currentPlatform.kt
│ └── resources/
│ └── account.yml
├── mirai-core-all/
│ └── build.gradle.kts
├── mirai-core-api/
│ ├── README.md
│ ├── build.gradle.kts
│ ├── compatibility-validation/
│ │ ├── android/
│ │ │ └── api/
│ │ │ └── android.api
│ │ └── jvm/
│ │ └── api/
│ │ └── jvm.api
│ └── src/
│ ├── androidMain/
│ │ ├── AndroidManifest.xml
│ │ └── kotlin/
│ │ ├── package.kt
│ │ └── utils/
│ │ ├── LoginSolver.android.kt
│ │ ├── PlatformLogger.android.kt
│ │ └── SingleFileLogger.android.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ ├── Bot.kt
│ │ ├── BotFactory.kt
│ │ ├── IMirai.kt
│ │ ├── LowLevelApiAccessor.kt
│ │ ├── auth/
│ │ │ ├── BotAuthorization.kt
│ │ │ └── QRCodeLoginListener.kt
│ │ ├── contact/
│ │ │ ├── AnonymousMember.kt
│ │ │ ├── AudioSupported.kt
│ │ │ ├── AvatarSpec.kt
│ │ │ ├── Contact.kt
│ │ │ ├── ContactList.kt
│ │ │ ├── ContactOrBot.kt
│ │ │ ├── Exceptions.kt
│ │ │ ├── FileSupported.kt
│ │ │ ├── Friend.kt
│ │ │ ├── Group.kt
│ │ │ ├── Member.kt
│ │ │ ├── MemberPermission.kt
│ │ │ ├── NormalMember.kt
│ │ │ ├── OtherClient.kt
│ │ │ ├── Stranger.kt
│ │ │ ├── TempUser.kt
│ │ │ ├── User.kt
│ │ │ ├── UserOrBot.kt
│ │ │ ├── active/
│ │ │ │ ├── ActiveChart.kt
│ │ │ │ ├── ActiveHonorInfo.kt
│ │ │ │ ├── ActiveHonorList.kt
│ │ │ │ ├── ActiveRankRecord.kt
│ │ │ │ ├── ActiveRecord.kt
│ │ │ │ ├── GroupActive.kt
│ │ │ │ ├── MemberActive.kt
│ │ │ │ ├── MemberMedalInfo.kt
│ │ │ │ └── MemberMedalType.kt
│ │ │ ├── announcement/
│ │ │ │ ├── Announcement.kt
│ │ │ │ ├── AnnouncementImage.kt
│ │ │ │ ├── AnnouncementParameters.kt
│ │ │ │ ├── AnnouncementParametersBuilder.kt
│ │ │ │ ├── Announcements.kt
│ │ │ │ ├── OfflineAnnouncement.kt
│ │ │ │ └── OnlineAnnouncement.kt
│ │ │ ├── essence/
│ │ │ │ ├── EssenceMessageRecord.kt
│ │ │ │ └── Essences.kt
│ │ │ ├── file/
│ │ │ │ ├── AbsoluteFile.kt
│ │ │ │ ├── AbsoluteFileFolder.kt
│ │ │ │ ├── AbsoluteFolder.kt
│ │ │ │ └── RemoteFiles.kt
│ │ │ ├── friendgroup/
│ │ │ │ ├── FriendGroup.kt
│ │ │ │ └── FriendGroups.kt
│ │ │ └── roaming/
│ │ │ ├── RoamingMessageFilter.kt
│ │ │ ├── RoamingMessages.kt
│ │ │ └── RoamingSupported.kt
│ │ ├── data/
│ │ │ ├── FriendInfo.kt
│ │ │ ├── GroupHonorType.kt
│ │ │ ├── GroupInfo.kt
│ │ │ ├── MemberInfo.kt
│ │ │ ├── OnlineStatus.kt
│ │ │ ├── Profile.kt
│ │ │ ├── RequestEventData.kt
│ │ │ ├── StrangerInfo.kt
│ │ │ ├── UserInfo.kt
│ │ │ └── UserProfile.kt
│ │ ├── event/
│ │ │ ├── Event.kt
│ │ │ ├── EventChannel.kt
│ │ │ ├── EventChannelKotlinExtensions.kt
│ │ │ ├── ExceptionInEventChannelFilterException.kt
│ │ │ ├── Extensions.kt
│ │ │ ├── GlobalEventChannel.kt
│ │ │ ├── JvmMethodListeners.kt
│ │ │ ├── Listener.kt
│ │ │ ├── MessageSelectBuilderUnit.kt
│ │ │ ├── MessageSubscribersBuilder.kt
│ │ │ ├── deprecated.nextEvent.kt
│ │ │ ├── deprecated.nextEventAsync.kt
│ │ │ ├── deprecated.syncFromEvent.kt
│ │ │ ├── events/
│ │ │ │ ├── EventCancelledException.kt
│ │ │ │ ├── ImageUploadEvent.kt
│ │ │ │ ├── MessageEvent.kt
│ │ │ │ ├── MessagePostSendEvent.kt
│ │ │ │ ├── MessagePreSendEvent.kt
│ │ │ │ ├── MessageRecallEvent.kt
│ │ │ │ ├── MessageSyncEvent.kt
│ │ │ │ ├── NudgeEvent.kt
│ │ │ │ ├── ShortVideoUploadEvent.kt
│ │ │ │ ├── SignEvent.kt
│ │ │ │ ├── bot.kt
│ │ │ │ ├── friend.kt
│ │ │ │ ├── group.kt
│ │ │ │ ├── otherClient.kt
│ │ │ │ ├── stranger.kt
│ │ │ │ └── types.kt
│ │ │ ├── select.kt
│ │ │ └── subscribeMessages.kt
│ │ ├── internal/
│ │ │ ├── event/
│ │ │ │ ├── JvmMethodListenersInternal.kt
│ │ │ │ ├── VerboseEvent.kt
│ │ │ │ └── messageSubscribersInternal.kt
│ │ │ ├── message/
│ │ │ │ ├── AbstractPolymorphicSerializer.kt
│ │ │ │ └── MessageSerializersImpl.kt
│ │ │ ├── network/
│ │ │ │ └── Packet.kt
│ │ │ └── utils/
│ │ │ ├── ExternalResourceImpls.kt
│ │ │ ├── ExternalResourceLeakObserver.kt
│ │ │ ├── LoggerAdapterImpls.kt
│ │ │ ├── MarkedMiraiLogger.kt
│ │ │ ├── Marker.kt
│ │ │ └── StdoutLogger.kt
│ │ ├── message/
│ │ │ ├── MessageReceipt.kt
│ │ │ ├── MessageSerializers.kt
│ │ │ ├── action/
│ │ │ │ ├── AsyncRecallResult.kt
│ │ │ │ └── Nudge.kt
│ │ │ ├── code/
│ │ │ │ ├── CodableMessage.kt
│ │ │ │ ├── MiraiCode.kt
│ │ │ │ └── internal/
│ │ │ │ └── impl.kt
│ │ │ ├── data/
│ │ │ │ ├── At.kt
│ │ │ │ ├── AtAll.kt
│ │ │ │ ├── Audio.kt
│ │ │ │ ├── CombinedMessage.kt
│ │ │ │ ├── ConstrainSingle.kt
│ │ │ │ ├── CustomMessage.kt
│ │ │ │ ├── Deprecated.kt
│ │ │ │ ├── Dice.kt
│ │ │ │ ├── Face.kt
│ │ │ │ ├── FileMessage.kt
│ │ │ │ ├── FlashImage.kt
│ │ │ │ ├── ForwardMessage.kt
│ │ │ │ ├── HummerMessage.kt
│ │ │ │ ├── Image.kt
│ │ │ │ ├── MarketFace.kt
│ │ │ │ ├── Message.kt
│ │ │ │ ├── MessageChain.kt
│ │ │ │ ├── MessageChainBuilder.kt
│ │ │ │ ├── MessageKey.kt
│ │ │ │ ├── MessageOrigin.kt
│ │ │ │ ├── MessageSource.kt
│ │ │ │ ├── MessageSourceBuilder.kt
│ │ │ │ ├── MusicShare.kt
│ │ │ │ ├── OfflineMessageSource.kt
│ │ │ │ ├── OnlineMessageSource.kt
│ │ │ │ ├── PlainText.kt
│ │ │ │ ├── PokeMessage.kt
│ │ │ │ ├── QuoteReply.kt
│ │ │ │ ├── README.md
│ │ │ │ ├── RichMessage.kt
│ │ │ │ ├── RockPaperScissors.kt
│ │ │ │ ├── ShortVideo.kt
│ │ │ │ ├── ShowImageFlag.kt
│ │ │ │ ├── SingleMessage.kt
│ │ │ │ ├── SuperFace.kt
│ │ │ │ ├── UnsupportedMessage.kt
│ │ │ │ ├── VipFace.kt
│ │ │ │ ├── Voice.kt
│ │ │ │ ├── impl.kt
│ │ │ │ └── visitor/
│ │ │ │ └── MessageVisitor.kt
│ │ │ └── utils.kt
│ │ ├── network/
│ │ │ ├── ForceOfflineException.kt
│ │ │ └── LoginFailedException.kt
│ │ ├── spi/
│ │ │ ├── AudioToSilkService.kt
│ │ │ └── SPIServiceLoader.kt
│ │ └── utils/
│ │ ├── AbstractBotConfiguration.kt
│ │ ├── AbstractExternalResource.kt
│ │ ├── Annotations.kt
│ │ ├── BotConfiguration.kt
│ │ ├── DeviceInfo.kt
│ │ ├── DeviceInfoBuilder.kt
│ │ ├── DeviceInfoManager.kt
│ │ ├── DeviceInfoV1LegacySerializer.kt
│ │ ├── ExternalResource.kt
│ │ ├── FileCacheStrategy.kt
│ │ ├── FileLogger.kt
│ │ ├── LoggerAdapters.kt
│ │ ├── LoginSolver.kt
│ │ ├── MiraiLogger.kt
│ │ ├── MiraiLoggerFactoryImplementationBridge.kt
│ │ ├── MiraiUtilsLogger.kt
│ │ ├── OverFileSizeMaxException.kt
│ │ ├── ProgressionCallback.kt
│ │ ├── RemoteFile.kt
│ │ ├── SingleFileLogger.kt
│ │ └── Streamable.kt
│ ├── commonTest/
│ │ ├── kotlin/
│ │ │ ├── logging/
│ │ │ │ ├── AbstractLoggingTest.kt
│ │ │ │ ├── Log4j2LoggingTest.kt
│ │ │ │ └── LoggingCompatibilityTest.kt
│ │ │ ├── message.data/
│ │ │ │ ├── CombinedMessageTest.kt
│ │ │ │ ├── ConstrainSingleHelperTest.kt
│ │ │ │ ├── ConstrainSingleTest.kt
│ │ │ │ ├── ImageTest.kt
│ │ │ │ ├── LinearMessageChainImplTest.kt
│ │ │ │ ├── MessageChainBuilderTest.kt
│ │ │ │ ├── MessageChainImmutableTest.kt
│ │ │ │ ├── MessageChainImplTest.kt
│ │ │ │ ├── MessageKeyTest.kt
│ │ │ │ ├── MessageUtilsTest.kt
│ │ │ │ ├── MessageVisitorTest.kt
│ │ │ │ └── TestMessageChainDelegate.kt
│ │ │ ├── package.kt
│ │ │ ├── test/
│ │ │ │ └── TestDSL.kt
│ │ │ └── utils/
│ │ │ ├── DeviceInfoTest.kt
│ │ │ ├── JvmDeviceInfoTest.kt
│ │ │ └── TimeTest.kt
│ │ └── resources/
│ │ └── log4j.properties
│ ├── jvmMain/
│ │ └── kotlin/
│ │ ├── package.kt
│ │ └── utils/
│ │ ├── LoginSolver.TxCaptchaHelper.kt
│ │ ├── LoginSolver.jvm.kt
│ │ ├── PlatformLogger.jvm.kt
│ │ └── SingleFileLogger.jvm.kt
│ └── jvmTest/
│ └── kotlin/
│ ├── message/
│ │ └── data/
│ │ └── MessageChainImmutableTestJdk8.kt
│ └── package.kt
├── mirai-core-mock/
│ ├── README.md
│ ├── build.gradle.kts
│ ├── src/
│ │ ├── MockActions.kt
│ │ ├── MockBot.kt
│ │ ├── MockBotDSL.kt
│ │ ├── MockBotFactory.kt
│ │ ├── contact/
│ │ │ ├── MockAnonymousMember.kt
│ │ │ ├── MockContact.kt
│ │ │ ├── MockContactOrBot.kt
│ │ │ ├── MockFriend.kt
│ │ │ ├── MockGroup.kt
│ │ │ ├── MockGroupControlPane.kt
│ │ │ ├── MockMember.kt
│ │ │ ├── MockMsgSyncSupport.kt
│ │ │ ├── MockNormalMember.kt
│ │ │ ├── MockOtherClient.kt
│ │ │ ├── MockStranger.kt
│ │ │ ├── MockUser.kt
│ │ │ ├── MockUserOrBot.kt
│ │ │ ├── active/
│ │ │ │ ├── MockGroupActive.kt
│ │ │ │ └── MockMemberActive.kt
│ │ │ ├── announcement/
│ │ │ │ └── MockAnnouncements.kt
│ │ │ └── essence/
│ │ │ └── MockEssences.kt
│ │ ├── database/
│ │ │ └── MessageDatabase.kt
│ │ ├── internal/
│ │ │ ├── MockBotFactoryImpl.kt
│ │ │ ├── MockBotImpl.kt
│ │ │ ├── MockMiraiImpl.kt
│ │ │ ├── components/
│ │ │ │ └── MockEventDispatcherImpl.kt
│ │ │ ├── contact/
│ │ │ │ ├── AbstractMockContact.kt
│ │ │ │ ├── MockAnnouncementsImpl.kt
│ │ │ │ ├── MockAnonymousMemberImpl.kt
│ │ │ │ ├── MockFriendImpl.kt
│ │ │ │ ├── MockGroupImpl.kt
│ │ │ │ ├── MockNormalMemberImpl.kt
│ │ │ │ ├── MockStrangerImpl.kt
│ │ │ │ ├── active/
│ │ │ │ │ ├── MockGroupActive.kt
│ │ │ │ │ └── MockMemberActiveImpl.kt
│ │ │ │ ├── essence/
│ │ │ │ │ └── MockEssences.kt
│ │ │ │ ├── friendfroup/
│ │ │ │ │ ├── MockFriendGroup.kt
│ │ │ │ │ └── MockFriendGroups.kt
│ │ │ │ ├── roaming/
│ │ │ │ │ └── MockRoamingMessages.kt
│ │ │ │ └── util.kt
│ │ │ ├── contactbase/
│ │ │ │ ├── ContactDatabase.kt
│ │ │ │ └── ContactInfo.kt
│ │ │ ├── db/
│ │ │ │ └── MsgDatabaseImpl.kt
│ │ │ ├── msgsrc/
│ │ │ │ └── OnlineMsgSrc.kt
│ │ │ ├── remotefile/
│ │ │ │ ├── absolutefile/
│ │ │ │ │ ├── MockAbsoluteFile.kt
│ │ │ │ │ ├── MockAbsoluteFolder.kt
│ │ │ │ │ └── MockRemoteFiles.kt
│ │ │ │ └── remotefile/
│ │ │ │ └── MockRemoteFile.kt
│ │ │ └── serverfs/
│ │ │ ├── MockServerFileDiskImpl.kt
│ │ │ └── TmpResourceServerImpl.kt
│ │ ├── package.kt
│ │ ├── resserver/
│ │ │ ├── MockServerFileDisk.kt
│ │ │ ├── MockServerFileSystem.kt
│ │ │ ├── MockServerRemoteFile.kt
│ │ │ └── TmpResourceServer.kt
│ │ ├── userprofile/
│ │ │ ├── UserProfileService.kt
│ │ │ └── contactinfos.kt
│ │ └── utils/
│ │ ├── AvatarGenerator.kt
│ │ ├── MemberInfo.kt
│ │ ├── MockActionsScope.kt
│ │ ├── MockConversions.kt
│ │ ├── NameGenerator.kt
│ │ ├── NudgeDsl.kt
│ │ ├── event.kt
│ │ ├── http.kt
│ │ ├── image.kt
│ │ └── mockdsl.kt
│ └── test/
│ ├── AbsoluteFileTest.kt
│ ├── DslTest.kt
│ ├── FsServerTest.kt
│ ├── ImageUploadTest.kt
│ ├── MockBotTestBase.kt
│ ├── MsgDbTest.kt
│ ├── TestBase.kt
│ ├── TxFsDiskTest.kt
│ ├── mock/
│ │ ├── MessageSerializationTest.kt
│ │ ├── MessagingTest.kt
│ │ ├── MockBotBaseTest.kt
│ │ ├── MockBotEventTest.kt
│ │ ├── MockFriendGroupsTest.kt
│ │ ├── MockFriendTest.kt
│ │ ├── MockGroupTest.kt
│ │ ├── MockMemberTest.kt
│ │ └── MockStrangerTest.kt
│ └── package.kt
├── mirai-core-utils/
│ ├── README.md
│ ├── build.gradle.kts
│ └── src/
│ ├── androidInstrumentedTest/
│ │ └── kotlin/
│ │ └── AndroidUnwrapTest.kt
│ ├── androidMain/
│ │ ├── AndroidManifest.xml
│ │ └── kotlin/
│ │ └── Actuals.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ ├── Annotations.kt
│ │ ├── Arrays.kt
│ │ ├── AtomicInteger.kt
│ │ ├── Base64.kt
│ │ ├── ByteArrayOp.kt
│ │ ├── ByteArrayPool.kt
│ │ ├── Bytes.kt
│ │ ├── CheckableResult.kt
│ │ ├── Clock.kt
│ │ ├── Closeable.kt
│ │ ├── CollectionDiff.kt
│ │ ├── Collections.kt
│ │ ├── Conversions.kt
│ │ ├── CoroutineUtils.kt
│ │ ├── Either.kt
│ │ ├── ExceptionCollector.kt
│ │ ├── File.kt
│ │ ├── Files.kt
│ │ ├── HtmlEntity.kt
│ │ ├── IO.kt
│ │ ├── JsonStruct.kt
│ │ ├── LateinitMutableProperty.kt
│ │ ├── Numbers.kt
│ │ ├── RandomUtils.kt
│ │ ├── Resources.kt
│ │ ├── ResultExtensions.kt
│ │ ├── SecretsProtection.kt
│ │ ├── Serialization.kt
│ │ ├── Services.kt
│ │ ├── SizedCache.kt
│ │ ├── StandardUtils.kt
│ │ ├── Strings.kt
│ │ ├── StructureToStringTransformer.kt
│ │ ├── Symbol.kt
│ │ ├── TimeUtils.kt
│ │ ├── TlvMap.kt
│ │ ├── TypeSafeMap.kt
│ │ ├── UnsafeMutableNonNullProperty.kt
│ │ ├── UtilsLogger.kt
│ │ ├── annotations/
│ │ │ └── Range.kt
│ │ ├── channels/
│ │ │ ├── ChannelState.kt
│ │ │ ├── IllegalChannelStateException.kt
│ │ │ ├── OnDemandChannelImpl.kt
│ │ │ ├── OnDemandSendChannel.kt
│ │ │ └── ProducerFailureException.kt
│ │ ├── package.kt
│ │ └── systemProp.kt
│ ├── commonTest/
│ │ └── kotlin/
│ │ └── net/
│ │ └── mamoe/
│ │ └── mirai/
│ │ └── utils/
│ │ ├── CommonByteArrayOpTest.kt
│ │ ├── EitherTest.kt
│ │ ├── ExceptionCollectorTest.kt
│ │ ├── ExternalImageTest.kt
│ │ ├── HexToBytesTest.kt
│ │ ├── HtmlEscapeTest.kt
│ │ ├── ImageIdConversionTest.kt
│ │ ├── LateinitMutablePropertyTest.kt
│ │ ├── ResourceAccessLockTest.kt
│ │ ├── SizedCacheTest.kt
│ │ ├── TlvMapTest.kt
│ │ ├── TrySafelyTest.kt
│ │ ├── TypeSafeMapTest.kt
│ │ ├── channels/
│ │ │ └── OnDemandChannelTest.kt
│ │ └── testFramework/
│ │ └── AssertNoCoroutineSuspension.kt
│ ├── jvmBaseMain/
│ │ └── kotlin/
│ │ ├── ByteArrayOp.kt
│ │ ├── Clock.kt
│ │ ├── Closeable.kt
│ │ ├── Collections.kt
│ │ ├── ConcurrentLinkedQueue.kt
│ │ ├── CoroutineUtils.kt
│ │ ├── ExceptionCollector.kt
│ │ ├── Files.kt
│ │ ├── IO.jvm.shared.kt
│ │ ├── JvmNioBuffer.kt
│ │ ├── MiraiFile.kt
│ │ ├── Reflections.kt
│ │ ├── Resources.kt
│ │ ├── SecretsProtection.kt
│ │ ├── Serialization.kt
│ │ ├── Services.kt
│ │ ├── StandardUtils.kt
│ │ ├── Streams.kt
│ │ ├── StructureToStringTransformer.kt
│ │ ├── StructureToStringTransformerLegacy.kt
│ │ ├── ThreadLocal.kt
│ │ ├── TimeUtils.kt
│ │ ├── WeakRef.kt
│ │ ├── annotations/
│ │ │ └── Range.kt
│ │ ├── package.kt
│ │ └── systemProp.kt
│ ├── jvmBaseTest/
│ │ └── kotlin/
│ │ ├── ByteArrayOpTest.kt
│ │ ├── KotlinFlowToJdkStreamTest.kt
│ │ ├── LateinitMutablePropertyTestJvm.kt
│ │ └── package.kt
│ ├── jvmMain/
│ │ └── kotlin/
│ │ ├── Actuals.kt
│ │ └── IO.jvm.kt
│ └── jvmTest/
│ └── kotlin/
│ ├── AndroidUnwrapTest.kt
│ └── SecretsProtectionTest.kt
├── mirai-deps-test/
│ ├── .gitignore
│ ├── README.md
│ ├── build.gradle.kts
│ ├── gradle.properties
│ └── test/
│ ├── AbstractTest.kt
│ ├── CoreDependencyResolutionTest.kt
│ ├── CoreShadowRelocationTest.kt
│ └── package.kt
├── mirai-dokka/
│ ├── .gitignore
│ ├── README.md
│ ├── build.gradle.kts
│ ├── frontend/
│ │ └── ext.js
│ └── src/
│ ├── BuildVersionList.kt
│ ├── DeployToGitHub.kt
│ ├── Prepare.kt
│ └── system.kt
└── settings.gradle.kts
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = false
max_line_length = 120
tab_width = 4
ij_continuation_indent_size = 8
ij_formatter_off_tag = @formatter:off
ij_formatter_on_tag = @formatter:on
ij_formatter_tags_enabled = true
ij_smart_tabs = false
ij_visual_guides = none
ij_wrap_on_typing = false
[*.java]
ij_java_align_consecutive_assignments = false
ij_java_align_consecutive_variable_declarations = false
ij_java_align_group_field_declarations = false
ij_java_align_multiline_annotation_parameters = false
ij_java_align_multiline_array_initializer_expression = false
ij_java_align_multiline_assignment = false
ij_java_align_multiline_binary_operation = false
ij_java_align_multiline_chained_methods = false
ij_java_align_multiline_extends_list = false
ij_java_align_multiline_for = true
ij_java_align_multiline_method_parentheses = false
ij_java_align_multiline_parameters = true
ij_java_align_multiline_parameters_in_calls = false
ij_java_align_multiline_parenthesized_expression = false
ij_java_align_multiline_records = true
ij_java_align_multiline_resources = true
ij_java_align_multiline_ternary_operation = false
ij_java_align_multiline_text_blocks = false
ij_java_align_multiline_throws_list = false
ij_java_align_subsequent_simple_methods = false
ij_java_align_throws_keyword = false
ij_java_annotation_parameter_wrap = off
ij_java_array_initializer_new_line_after_left_brace = false
ij_java_array_initializer_right_brace_on_new_line = false
ij_java_array_initializer_wrap = off
ij_java_assert_statement_colon_on_next_line = false
ij_java_assert_statement_wrap = off
ij_java_assignment_wrap = off
ij_java_binary_operation_sign_on_next_line = false
ij_java_binary_operation_wrap = off
ij_java_blank_lines_after_anonymous_class_header = 0
ij_java_blank_lines_after_class_header = 0
ij_java_blank_lines_after_imports = 1
ij_java_blank_lines_after_package = 1
ij_java_blank_lines_around_class = 1
ij_java_blank_lines_around_field = 0
ij_java_blank_lines_around_field_in_interface = 0
ij_java_blank_lines_around_initializer = 1
ij_java_blank_lines_around_method = 1
ij_java_blank_lines_around_method_in_interface = 1
ij_java_blank_lines_before_class_end = 0
ij_java_blank_lines_before_imports = 1
ij_java_blank_lines_before_method_body = 0
ij_java_blank_lines_before_package = 0
ij_java_block_brace_style = end_of_line
ij_java_block_comment_at_first_column = true
ij_java_builder_methods = none
ij_java_call_parameters_new_line_after_left_paren = false
ij_java_call_parameters_right_paren_on_new_line = false
ij_java_call_parameters_wrap = off
ij_java_case_statement_on_separate_line = true
ij_java_catch_on_new_line = false
ij_java_class_annotation_wrap = split_into_lines
ij_java_class_brace_style = end_of_line
ij_java_class_count_to_use_import_on_demand = 5
ij_java_class_names_in_javadoc = 1
ij_java_do_not_indent_top_level_class_members = false
ij_java_do_not_wrap_after_single_annotation = false
ij_java_do_while_brace_force = never
ij_java_doc_add_blank_line_after_description = true
ij_java_doc_add_blank_line_after_param_comments = false
ij_java_doc_add_blank_line_after_return = false
ij_java_doc_add_p_tag_on_empty_lines = true
ij_java_doc_align_exception_comments = true
ij_java_doc_align_param_comments = true
ij_java_doc_do_not_wrap_if_one_line = false
ij_java_doc_enable_formatting = true
ij_java_doc_enable_leading_asterisks = true
ij_java_doc_indent_on_continuation = false
ij_java_doc_keep_empty_lines = true
ij_java_doc_keep_empty_parameter_tag = true
ij_java_doc_keep_empty_return_tag = true
ij_java_doc_keep_empty_throws_tag = true
ij_java_doc_keep_invalid_tags = true
ij_java_doc_param_description_on_new_line = false
ij_java_doc_preserve_line_breaks = false
ij_java_doc_use_throws_not_exception_tag = true
ij_java_else_on_new_line = false
ij_java_entity_dd_suffix = EJB
ij_java_entity_eb_suffix = Bean
ij_java_entity_hi_suffix = Home
ij_java_entity_lhi_prefix = Local
ij_java_entity_lhi_suffix = Home
ij_java_entity_li_prefix = Local
ij_java_entity_pk_class = java.lang.String
ij_java_entity_vo_suffix = VO
ij_java_enum_constants_wrap = off
ij_java_extends_keyword_wrap = off
ij_java_extends_list_wrap = off
ij_java_field_annotation_wrap = split_into_lines
ij_java_finally_on_new_line = false
ij_java_for_brace_force = never
ij_java_for_statement_new_line_after_left_paren = false
ij_java_for_statement_right_paren_on_new_line = false
ij_java_for_statement_wrap = off
ij_java_generate_final_locals = false
ij_java_generate_final_parameters = false
ij_java_if_brace_force = never
ij_java_imports_layout = *, |, javax.**, java.**, |, $*
ij_java_indent_case_from_switch = true
ij_java_insert_inner_class_imports = false
ij_java_insert_override_annotation = true
ij_java_keep_blank_lines_before_right_brace = 2
ij_java_keep_blank_lines_between_package_declaration_and_header = 2
ij_java_keep_blank_lines_in_code = 2
ij_java_keep_blank_lines_in_declarations = 2
ij_java_keep_builder_methods_indents = false
ij_java_keep_control_statement_in_one_line = true
ij_java_keep_first_column_comment = true
ij_java_keep_indents_on_empty_lines = false
ij_java_keep_line_breaks = true
ij_java_keep_multiple_expressions_in_one_line = false
ij_java_keep_simple_blocks_in_one_line = false
ij_java_keep_simple_classes_in_one_line = false
ij_java_keep_simple_lambdas_in_one_line = false
ij_java_keep_simple_methods_in_one_line = false
ij_java_label_indent_absolute = false
ij_java_label_indent_size = 0
ij_java_lambda_brace_style = end_of_line
ij_java_layout_static_imports_separately = true
ij_java_line_comment_add_space = false
ij_java_line_comment_at_first_column = true
ij_java_message_dd_suffix = EJB
ij_java_message_eb_suffix = Bean
ij_java_method_annotation_wrap = split_into_lines
ij_java_method_brace_style = end_of_line
ij_java_method_call_chain_wrap = off
ij_java_method_parameters_new_line_after_left_paren = false
ij_java_method_parameters_right_paren_on_new_line = false
ij_java_method_parameters_wrap = off
ij_java_modifier_list_wrap = false
ij_java_names_count_to_use_import_on_demand = 3
ij_java_new_line_after_lparen_in_record_header = false
ij_java_packages_to_use_import_on_demand = java.awt.*, javax.swing.*
ij_java_parameter_annotation_wrap = off
ij_java_parentheses_expression_new_line_after_left_paren = false
ij_java_parentheses_expression_right_paren_on_new_line = false
ij_java_place_assignment_sign_on_next_line = false
ij_java_prefer_longer_names = true
ij_java_prefer_parameters_wrap = false
ij_java_record_components_wrap = normal
ij_java_repeat_synchronized = true
ij_java_replace_instanceof_and_cast = false
ij_java_replace_null_check = true
ij_java_replace_sum_lambda_with_method_ref = true
ij_java_resource_list_new_line_after_left_paren = false
ij_java_resource_list_right_paren_on_new_line = false
ij_java_resource_list_wrap = off
ij_java_rparen_on_new_line_in_record_header = false
ij_java_session_dd_suffix = EJB
ij_java_session_eb_suffix = Bean
ij_java_session_hi_suffix = Home
ij_java_session_lhi_prefix = Local
ij_java_session_lhi_suffix = Home
ij_java_session_li_prefix = Local
ij_java_session_si_suffix = Service
ij_java_space_after_closing_angle_bracket_in_type_argument = false
ij_java_space_after_colon = true
ij_java_space_after_comma = true
ij_java_space_after_comma_in_type_arguments = true
ij_java_space_after_for_semicolon = true
ij_java_space_after_quest = true
ij_java_space_after_type_cast = true
ij_java_space_before_annotation_array_initializer_left_brace = false
ij_java_space_before_annotation_parameter_list = false
ij_java_space_before_array_initializer_left_brace = false
ij_java_space_before_catch_keyword = true
ij_java_space_before_catch_left_brace = true
ij_java_space_before_catch_parentheses = true
ij_java_space_before_class_left_brace = true
ij_java_space_before_colon = true
ij_java_space_before_colon_in_foreach = true
ij_java_space_before_comma = false
ij_java_space_before_do_left_brace = true
ij_java_space_before_else_keyword = true
ij_java_space_before_else_left_brace = true
ij_java_space_before_finally_keyword = true
ij_java_space_before_finally_left_brace = true
ij_java_space_before_for_left_brace = true
ij_java_space_before_for_parentheses = true
ij_java_space_before_for_semicolon = false
ij_java_space_before_if_left_brace = true
ij_java_space_before_if_parentheses = true
ij_java_space_before_method_call_parentheses = false
ij_java_space_before_method_left_brace = true
ij_java_space_before_method_parentheses = false
ij_java_space_before_opening_angle_bracket_in_type_parameter = false
ij_java_space_before_quest = true
ij_java_space_before_switch_left_brace = true
ij_java_space_before_switch_parentheses = true
ij_java_space_before_synchronized_left_brace = true
ij_java_space_before_synchronized_parentheses = true
ij_java_space_before_try_left_brace = true
ij_java_space_before_try_parentheses = true
ij_java_space_before_type_parameter_list = false
ij_java_space_before_while_keyword = true
ij_java_space_before_while_left_brace = true
ij_java_space_before_while_parentheses = true
ij_java_space_inside_one_line_enum_braces = false
ij_java_space_within_empty_array_initializer_braces = false
ij_java_space_within_empty_method_call_parentheses = false
ij_java_space_within_empty_method_parentheses = false
ij_java_spaces_around_additive_operators = true
ij_java_spaces_around_assignment_operators = true
ij_java_spaces_around_bitwise_operators = true
ij_java_spaces_around_equality_operators = true
ij_java_spaces_around_lambda_arrow = true
ij_java_spaces_around_logical_operators = true
ij_java_spaces_around_method_ref_dbl_colon = false
ij_java_spaces_around_multiplicative_operators = true
ij_java_spaces_around_relational_operators = true
ij_java_spaces_around_shift_operators = true
ij_java_spaces_around_type_bounds_in_type_parameters = true
ij_java_spaces_around_unary_operator = false
ij_java_spaces_within_angle_brackets = false
ij_java_spaces_within_annotation_parentheses = false
ij_java_spaces_within_array_initializer_braces = false
ij_java_spaces_within_braces = false
ij_java_spaces_within_brackets = false
ij_java_spaces_within_cast_parentheses = false
ij_java_spaces_within_catch_parentheses = false
ij_java_spaces_within_for_parentheses = false
ij_java_spaces_within_if_parentheses = false
ij_java_spaces_within_method_call_parentheses = false
ij_java_spaces_within_method_parentheses = false
ij_java_spaces_within_parentheses = false
ij_java_spaces_within_record_header = false
ij_java_spaces_within_switch_parentheses = false
ij_java_spaces_within_synchronized_parentheses = false
ij_java_spaces_within_try_parentheses = false
ij_java_spaces_within_while_parentheses = false
ij_java_special_else_if_treatment = true
ij_java_subclass_name_suffix = Impl
ij_java_ternary_operation_signs_on_next_line = false
ij_java_ternary_operation_wrap = off
ij_java_test_name_suffix = Test
ij_java_throws_keyword_wrap = off
ij_java_throws_list_wrap = off
ij_java_use_external_annotations = false
ij_java_use_fq_class_names = false
ij_java_use_relative_indents = false
ij_java_use_single_class_imports = true
ij_java_variable_annotation_wrap = off
ij_java_visibility = public
ij_java_while_brace_force = never
ij_java_while_on_new_line = false
ij_java_wrap_comments = false
ij_java_wrap_first_method_in_call_chain = false
ij_java_wrap_long_lines = false
[.editorconfig]
ij_editorconfig_align_group_field_declarations = false
ij_editorconfig_space_after_colon = false
ij_editorconfig_space_after_comma = true
ij_editorconfig_space_before_colon = false
ij_editorconfig_space_before_comma = false
ij_editorconfig_spaces_around_assignment_operators = true
[{*.ant,*.fxml,*.jhm,*.jnlp,*.jrxml,*.pom,*.qrc,*.rng,*.tld,*.wadl,*.wsdd,*.wsdl,*.xjb,*.xml,*.xsd,*.xsl,*.xslt,*.xul}]
ij_xml_align_attributes = true
ij_xml_align_text = false
ij_xml_attribute_wrap = normal
ij_xml_block_comment_at_first_column = true
ij_xml_keep_blank_lines = 2
ij_xml_keep_indents_on_empty_lines = false
ij_xml_keep_line_breaks = true
ij_xml_keep_line_breaks_in_text = true
ij_xml_keep_whitespaces = false
ij_xml_keep_whitespaces_around_cdata = preserve
ij_xml_keep_whitespaces_inside_cdata = false
ij_xml_line_comment_at_first_column = true
ij_xml_space_after_tag_name = false
ij_xml_space_around_equals_in_attribute = false
ij_xml_space_inside_empty_tag = false
ij_xml_text_wrap = normal
ij_xml_use_custom_settings = false
[{*.bash,*.sh,*.zsh}]
indent_size = 2
tab_width = 2
ij_shell_binary_ops_start_line = false
ij_shell_keep_column_alignment_padding = false
ij_shell_minify_program = false
ij_shell_redirect_followed_by_space = false
ij_shell_switch_cases_indented = false
ij_shell_use_unix_line_separator = true
[{*.kt,*.kts}]
ij_kotlin_align_in_columns_case_branch = false
ij_kotlin_align_multiline_binary_operation = false
ij_kotlin_align_multiline_extends_list = false
ij_kotlin_align_multiline_method_parentheses = false
ij_kotlin_align_multiline_parameters = true
ij_kotlin_align_multiline_parameters_in_calls = false
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = false
ij_kotlin_assignment_wrap = normal
ij_kotlin_blank_lines_after_class_header = 0
ij_kotlin_blank_lines_around_block_when_branches = 0
ij_kotlin_blank_lines_before_declaration_with_comment_or_annotation_on_separate_line = 1
ij_kotlin_block_comment_at_first_column = true
ij_kotlin_call_parameters_new_line_after_left_paren = true
ij_kotlin_call_parameters_right_paren_on_new_line = true
ij_kotlin_call_parameters_wrap = on_every_item
ij_kotlin_catch_on_new_line = false
ij_kotlin_class_annotation_wrap = split_into_lines
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
ij_kotlin_continuation_indent_for_chained_calls = false
ij_kotlin_continuation_indent_for_expression_bodies = false
ij_kotlin_continuation_indent_in_argument_lists = false
ij_kotlin_continuation_indent_in_elvis = false
ij_kotlin_continuation_indent_in_if_conditions = false
ij_kotlin_continuation_indent_in_parameter_lists = false
ij_kotlin_continuation_indent_in_supertype_lists = false
ij_kotlin_else_on_new_line = false
ij_kotlin_enum_constants_wrap = off
ij_kotlin_extends_list_wrap = normal
ij_kotlin_field_annotation_wrap = split_into_lines
ij_kotlin_finally_on_new_line = false
ij_kotlin_if_rparen_on_new_line = true
ij_kotlin_import_nested_classes = false
ij_kotlin_imports_layout = *, java.**, javax.**, kotlin.**, ^
ij_kotlin_insert_whitespaces_in_simple_one_line_method = true
ij_kotlin_keep_blank_lines_before_right_brace = 2
ij_kotlin_keep_blank_lines_in_code = 2
ij_kotlin_keep_blank_lines_in_declarations = 2
ij_kotlin_keep_first_column_comment = true
ij_kotlin_keep_indents_on_empty_lines = false
ij_kotlin_keep_line_breaks = true
ij_kotlin_lbrace_on_next_line = false
ij_kotlin_line_comment_add_space = false
ij_kotlin_line_comment_at_first_column = true
ij_kotlin_method_annotation_wrap = split_into_lines
ij_kotlin_method_call_chain_wrap = normal
ij_kotlin_method_parameters_new_line_after_left_paren = true
ij_kotlin_method_parameters_right_paren_on_new_line = true
ij_kotlin_method_parameters_wrap = on_every_item
ij_kotlin_name_count_to_use_star_import = 5
ij_kotlin_name_count_to_use_star_import_for_members = 3
ij_kotlin_packages_to_use_import_on_demand = java.util.*, kotlinx.android.synthetic.**, io.ktor.**
ij_kotlin_parameter_annotation_wrap = off
ij_kotlin_space_after_comma = true
ij_kotlin_space_after_extend_colon = true
ij_kotlin_space_after_type_colon = true
ij_kotlin_space_before_catch_parentheses = true
ij_kotlin_space_before_comma = false
ij_kotlin_space_before_extend_colon = true
ij_kotlin_space_before_for_parentheses = true
ij_kotlin_space_before_if_parentheses = true
ij_kotlin_space_before_lambda_arrow = true
ij_kotlin_space_before_type_colon = false
ij_kotlin_space_before_when_parentheses = true
ij_kotlin_space_before_while_parentheses = true
ij_kotlin_spaces_around_additive_operators = true
ij_kotlin_spaces_around_assignment_operators = true
ij_kotlin_spaces_around_equality_operators = true
ij_kotlin_spaces_around_function_type_arrow = true
ij_kotlin_spaces_around_logical_operators = true
ij_kotlin_spaces_around_multiplicative_operators = true
ij_kotlin_spaces_around_range = false
ij_kotlin_spaces_around_relational_operators = true
ij_kotlin_spaces_around_unary_operator = false
ij_kotlin_spaces_around_when_arrow = true
ij_kotlin_variable_annotation_wrap = off
ij_kotlin_while_on_new_line = false
ij_kotlin_wrap_elvis_expressions = 1
ij_kotlin_wrap_expression_body_functions = 1
ij_kotlin_wrap_first_method_in_call_chain = false
[{*.cjs,*.js}]
ij_continuation_indent_size = 4
ij_javascript_align_imports = false
ij_javascript_align_multiline_array_initializer_expression = false
ij_javascript_align_multiline_binary_operation = false
ij_javascript_align_multiline_chained_methods = false
ij_javascript_align_multiline_extends_list = false
ij_javascript_align_multiline_for = true
ij_javascript_align_multiline_parameters = true
ij_javascript_align_multiline_parameters_in_calls = false
ij_javascript_align_multiline_ternary_operation = false
ij_javascript_align_object_properties = 0
ij_javascript_align_union_types = false
ij_javascript_align_var_statements = 0
ij_javascript_array_initializer_new_line_after_left_brace = false
ij_javascript_array_initializer_right_brace_on_new_line = false
ij_javascript_array_initializer_wrap = off
ij_javascript_assignment_wrap = off
ij_javascript_binary_operation_sign_on_next_line = false
ij_javascript_binary_operation_wrap = off
ij_javascript_blacklist_imports = rxjs/Rx, node_modules/**, **/node_modules/**, @angular/material, @angular/material/typings/**
ij_javascript_blank_lines_after_imports = 1
ij_javascript_blank_lines_around_class = 1
ij_javascript_blank_lines_around_field = 0
ij_javascript_blank_lines_around_function = 1
ij_javascript_blank_lines_around_method = 1
ij_javascript_block_brace_style = end_of_line
ij_javascript_call_parameters_new_line_after_left_paren = false
ij_javascript_call_parameters_right_paren_on_new_line = false
ij_javascript_call_parameters_wrap = off
ij_javascript_catch_on_new_line = false
ij_javascript_chained_call_dot_on_new_line = true
ij_javascript_class_brace_style = end_of_line
ij_javascript_comma_on_new_line = false
ij_javascript_do_while_brace_force = never
ij_javascript_else_on_new_line = false
ij_javascript_enforce_trailing_comma = keep
ij_javascript_extends_keyword_wrap = off
ij_javascript_extends_list_wrap = off
ij_javascript_field_prefix = _
ij_javascript_file_name_style = relaxed
ij_javascript_finally_on_new_line = false
ij_javascript_for_brace_force = never
ij_javascript_for_statement_new_line_after_left_paren = false
ij_javascript_for_statement_right_paren_on_new_line = false
ij_javascript_for_statement_wrap = off
ij_javascript_force_quote_style = false
ij_javascript_force_semicolon_style = false
ij_javascript_function_expression_brace_style = end_of_line
ij_javascript_if_brace_force = never
ij_javascript_import_merge_members = global
ij_javascript_import_prefer_absolute_path = global
ij_javascript_import_sort_members = true
ij_javascript_import_sort_module_name = false
ij_javascript_import_use_node_resolution = true
ij_javascript_imports_wrap = on_every_item
ij_javascript_indent_case_from_switch = true
ij_javascript_indent_chained_calls = true
ij_javascript_indent_package_children = 0
ij_javascript_jsx_attribute_value = braces
ij_javascript_keep_blank_lines_in_code = 2
ij_javascript_keep_first_column_comment = true
ij_javascript_keep_indents_on_empty_lines = false
ij_javascript_keep_line_breaks = true
ij_javascript_keep_simple_blocks_in_one_line = false
ij_javascript_keep_simple_methods_in_one_line = false
ij_javascript_line_comment_add_space = true
ij_javascript_line_comment_at_first_column = false
ij_javascript_method_brace_style = end_of_line
ij_javascript_method_call_chain_wrap = off
ij_javascript_method_parameters_new_line_after_left_paren = false
ij_javascript_method_parameters_right_paren_on_new_line = false
ij_javascript_method_parameters_wrap = off
ij_javascript_object_literal_wrap = on_every_item
ij_javascript_parentheses_expression_new_line_after_left_paren = false
ij_javascript_parentheses_expression_right_paren_on_new_line = false
ij_javascript_place_assignment_sign_on_next_line = false
ij_javascript_prefer_as_type_cast = false
ij_javascript_prefer_explicit_types_function_expression_returns = false
ij_javascript_prefer_explicit_types_function_returns = false
ij_javascript_prefer_explicit_types_vars_fields = false
ij_javascript_prefer_parameters_wrap = false
ij_javascript_reformat_c_style_comments = false
ij_javascript_space_after_colon = true
ij_javascript_space_after_comma = true
ij_javascript_space_after_dots_in_rest_parameter = false
ij_javascript_space_after_generator_mult = true
ij_javascript_space_after_property_colon = true
ij_javascript_space_after_quest = true
ij_javascript_space_after_type_colon = true
ij_javascript_space_after_unary_not = false
ij_javascript_space_before_async_arrow_lparen = true
ij_javascript_space_before_catch_keyword = true
ij_javascript_space_before_catch_left_brace = true
ij_javascript_space_before_catch_parentheses = true
ij_javascript_space_before_class_lbrace = true
ij_javascript_space_before_class_left_brace = true
ij_javascript_space_before_colon = true
ij_javascript_space_before_comma = false
ij_javascript_space_before_do_left_brace = true
ij_javascript_space_before_else_keyword = true
ij_javascript_space_before_else_left_brace = true
ij_javascript_space_before_finally_keyword = true
ij_javascript_space_before_finally_left_brace = true
ij_javascript_space_before_for_left_brace = true
ij_javascript_space_before_for_parentheses = true
ij_javascript_space_before_for_semicolon = false
ij_javascript_space_before_function_left_parenth = true
ij_javascript_space_before_generator_mult = false
ij_javascript_space_before_if_left_brace = true
ij_javascript_space_before_if_parentheses = true
ij_javascript_space_before_method_call_parentheses = false
ij_javascript_space_before_method_left_brace = true
ij_javascript_space_before_method_parentheses = false
ij_javascript_space_before_property_colon = false
ij_javascript_space_before_quest = true
ij_javascript_space_before_switch_left_brace = true
ij_javascript_space_before_switch_parentheses = true
ij_javascript_space_before_try_left_brace = true
ij_javascript_space_before_type_colon = false
ij_javascript_space_before_unary_not = false
ij_javascript_space_before_while_keyword = true
ij_javascript_space_before_while_left_brace = true
ij_javascript_space_before_while_parentheses = true
ij_javascript_spaces_around_additive_operators = true
ij_javascript_spaces_around_arrow_function_operator = true
ij_javascript_spaces_around_assignment_operators = true
ij_javascript_spaces_around_bitwise_operators = true
ij_javascript_spaces_around_equality_operators = true
ij_javascript_spaces_around_logical_operators = true
ij_javascript_spaces_around_multiplicative_operators = true
ij_javascript_spaces_around_relational_operators = true
ij_javascript_spaces_around_shift_operators = true
ij_javascript_spaces_around_unary_operator = false
ij_javascript_spaces_within_array_initializer_brackets = false
ij_javascript_spaces_within_brackets = false
ij_javascript_spaces_within_catch_parentheses = false
ij_javascript_spaces_within_for_parentheses = false
ij_javascript_spaces_within_if_parentheses = false
ij_javascript_spaces_within_imports = false
ij_javascript_spaces_within_interpolation_expressions = false
ij_javascript_spaces_within_method_call_parentheses = false
ij_javascript_spaces_within_method_parentheses = false
ij_javascript_spaces_within_object_literal_braces = false
ij_javascript_spaces_within_object_type_braces = true
ij_javascript_spaces_within_parentheses = false
ij_javascript_spaces_within_switch_parentheses = false
ij_javascript_spaces_within_type_assertion = false
ij_javascript_spaces_within_union_types = true
ij_javascript_spaces_within_while_parentheses = false
ij_javascript_special_else_if_treatment = true
ij_javascript_ternary_operation_signs_on_next_line = false
ij_javascript_ternary_operation_wrap = off
ij_javascript_union_types_wrap = on_every_item
ij_javascript_use_chained_calls_group_indents = false
ij_javascript_use_double_quotes = true
ij_javascript_use_path_mapping = always
ij_javascript_use_public_modifier = false
ij_javascript_use_semicolon_after_statement = true
ij_javascript_var_declaration_wrap = normal
ij_javascript_while_brace_force = never
ij_javascript_while_on_new_line = false
ij_javascript_wrap_comments = false
[{*.ft,*.vm,*.vsl}]
ij_vtl_keep_indents_on_empty_lines = false
[{*.gant,*.gradle,*.groovy,*.gson,*.gy}]
ij_groovy_align_group_field_declarations = false
ij_groovy_align_multiline_array_initializer_expression = false
ij_groovy_align_multiline_assignment = false
ij_groovy_align_multiline_binary_operation = false
ij_groovy_align_multiline_chained_methods = false
ij_groovy_align_multiline_extends_list = false
ij_groovy_align_multiline_for = true
ij_groovy_align_multiline_list_or_map = true
ij_groovy_align_multiline_method_parentheses = false
ij_groovy_align_multiline_parameters = true
ij_groovy_align_multiline_parameters_in_calls = false
ij_groovy_align_multiline_resources = true
ij_groovy_align_multiline_ternary_operation = false
ij_groovy_align_multiline_throws_list = false
ij_groovy_align_named_args_in_map = true
ij_groovy_align_throws_keyword = false
ij_groovy_array_initializer_new_line_after_left_brace = false
ij_groovy_array_initializer_right_brace_on_new_line = false
ij_groovy_array_initializer_wrap = off
ij_groovy_assert_statement_wrap = off
ij_groovy_assignment_wrap = off
ij_groovy_binary_operation_wrap = off
ij_groovy_blank_lines_after_class_header = 0
ij_groovy_blank_lines_after_imports = 1
ij_groovy_blank_lines_after_package = 1
ij_groovy_blank_lines_around_class = 1
ij_groovy_blank_lines_around_field = 0
ij_groovy_blank_lines_around_field_in_interface = 0
ij_groovy_blank_lines_around_method = 1
ij_groovy_blank_lines_around_method_in_interface = 1
ij_groovy_blank_lines_before_imports = 1
ij_groovy_blank_lines_before_method_body = 0
ij_groovy_blank_lines_before_package = 0
ij_groovy_block_brace_style = end_of_line
ij_groovy_block_comment_at_first_column = true
ij_groovy_call_parameters_new_line_after_left_paren = false
ij_groovy_call_parameters_right_paren_on_new_line = false
ij_groovy_call_parameters_wrap = off
ij_groovy_catch_on_new_line = false
ij_groovy_class_annotation_wrap = split_into_lines
ij_groovy_class_brace_style = end_of_line
ij_groovy_class_count_to_use_import_on_demand = 5
ij_groovy_do_while_brace_force = never
ij_groovy_else_on_new_line = false
ij_groovy_enum_constants_wrap = off
ij_groovy_extends_keyword_wrap = off
ij_groovy_extends_list_wrap = off
ij_groovy_field_annotation_wrap = split_into_lines
ij_groovy_finally_on_new_line = false
ij_groovy_for_brace_force = never
ij_groovy_for_statement_new_line_after_left_paren = false
ij_groovy_for_statement_right_paren_on_new_line = false
ij_groovy_for_statement_wrap = off
ij_groovy_if_brace_force = never
ij_groovy_import_annotation_wrap = 2
ij_groovy_imports_layout = *, |, javax.**, java.**, |, $*
ij_groovy_indent_case_from_switch = true
ij_groovy_indent_label_blocks = true
ij_groovy_insert_inner_class_imports = false
ij_groovy_keep_blank_lines_before_right_brace = 2
ij_groovy_keep_blank_lines_in_code = 2
ij_groovy_keep_blank_lines_in_declarations = 2
ij_groovy_keep_control_statement_in_one_line = true
ij_groovy_keep_first_column_comment = true
ij_groovy_keep_indents_on_empty_lines = false
ij_groovy_keep_line_breaks = true
ij_groovy_keep_multiple_expressions_in_one_line = false
ij_groovy_keep_simple_blocks_in_one_line = false
ij_groovy_keep_simple_classes_in_one_line = true
ij_groovy_keep_simple_lambdas_in_one_line = true
ij_groovy_keep_simple_methods_in_one_line = true
ij_groovy_label_indent_absolute = false
ij_groovy_label_indent_size = 0
ij_groovy_lambda_brace_style = end_of_line
ij_groovy_layout_static_imports_separately = true
ij_groovy_line_comment_add_space = false
ij_groovy_line_comment_at_first_column = true
ij_groovy_method_annotation_wrap = split_into_lines
ij_groovy_method_brace_style = end_of_line
ij_groovy_method_call_chain_wrap = off
ij_groovy_method_parameters_new_line_after_left_paren = false
ij_groovy_method_parameters_right_paren_on_new_line = false
ij_groovy_method_parameters_wrap = off
ij_groovy_modifier_list_wrap = false
ij_groovy_names_count_to_use_import_on_demand = 3
ij_groovy_parameter_annotation_wrap = off
ij_groovy_parentheses_expression_new_line_after_left_paren = false
ij_groovy_parentheses_expression_right_paren_on_new_line = false
ij_groovy_prefer_parameters_wrap = false
ij_groovy_resource_list_new_line_after_left_paren = false
ij_groovy_resource_list_right_paren_on_new_line = false
ij_groovy_resource_list_wrap = off
ij_groovy_space_after_assert_separator = true
ij_groovy_space_after_colon = true
ij_groovy_space_after_comma = true
ij_groovy_space_after_comma_in_type_arguments = true
ij_groovy_space_after_for_semicolon = true
ij_groovy_space_after_quest = true
ij_groovy_space_after_type_cast = true
ij_groovy_space_before_annotation_parameter_list = false
ij_groovy_space_before_array_initializer_left_brace = false
ij_groovy_space_before_assert_separator = false
ij_groovy_space_before_catch_keyword = true
ij_groovy_space_before_catch_left_brace = true
ij_groovy_space_before_catch_parentheses = true
ij_groovy_space_before_class_left_brace = true
ij_groovy_space_before_closure_left_brace = true
ij_groovy_space_before_colon = true
ij_groovy_space_before_comma = false
ij_groovy_space_before_do_left_brace = true
ij_groovy_space_before_else_keyword = true
ij_groovy_space_before_else_left_brace = true
ij_groovy_space_before_finally_keyword = true
ij_groovy_space_before_finally_left_brace = true
ij_groovy_space_before_for_left_brace = true
ij_groovy_space_before_for_parentheses = true
ij_groovy_space_before_for_semicolon = false
ij_groovy_space_before_if_left_brace = true
ij_groovy_space_before_if_parentheses = true
ij_groovy_space_before_method_call_parentheses = false
ij_groovy_space_before_method_left_brace = true
ij_groovy_space_before_method_parentheses = false
ij_groovy_space_before_quest = true
ij_groovy_space_before_switch_left_brace = true
ij_groovy_space_before_switch_parentheses = true
ij_groovy_space_before_synchronized_left_brace = true
ij_groovy_space_before_synchronized_parentheses = true
ij_groovy_space_before_try_left_brace = true
ij_groovy_space_before_try_parentheses = true
ij_groovy_space_before_while_keyword = true
ij_groovy_space_before_while_left_brace = true
ij_groovy_space_before_while_parentheses = true
ij_groovy_space_in_named_argument = true
ij_groovy_space_in_named_argument_before_colon = false
ij_groovy_space_within_empty_array_initializer_braces = false
ij_groovy_space_within_empty_method_call_parentheses = false
ij_groovy_spaces_around_additive_operators = true
ij_groovy_spaces_around_assignment_operators = true
ij_groovy_spaces_around_bitwise_operators = true
ij_groovy_spaces_around_equality_operators = true
ij_groovy_spaces_around_lambda_arrow = true
ij_groovy_spaces_around_logical_operators = true
ij_groovy_spaces_around_multiplicative_operators = true
ij_groovy_spaces_around_regex_operators = true
ij_groovy_spaces_around_relational_operators = true
ij_groovy_spaces_around_shift_operators = true
ij_groovy_spaces_within_annotation_parentheses = false
ij_groovy_spaces_within_array_initializer_braces = false
ij_groovy_spaces_within_braces = true
ij_groovy_spaces_within_brackets = false
ij_groovy_spaces_within_cast_parentheses = false
ij_groovy_spaces_within_catch_parentheses = false
ij_groovy_spaces_within_for_parentheses = false
ij_groovy_spaces_within_gstring_injection_braces = false
ij_groovy_spaces_within_if_parentheses = false
ij_groovy_spaces_within_list_or_map = false
ij_groovy_spaces_within_method_call_parentheses = false
ij_groovy_spaces_within_method_parentheses = false
ij_groovy_spaces_within_parentheses = false
ij_groovy_spaces_within_switch_parentheses = false
ij_groovy_spaces_within_synchronized_parentheses = false
ij_groovy_spaces_within_try_parentheses = false
ij_groovy_spaces_within_tuple_expression = false
ij_groovy_spaces_within_while_parentheses = false
ij_groovy_special_else_if_treatment = true
ij_groovy_ternary_operation_wrap = off
ij_groovy_throws_keyword_wrap = off
ij_groovy_throws_list_wrap = off
ij_groovy_use_flying_geese_braces = false
ij_groovy_use_fq_class_names = false
ij_groovy_use_fq_class_names_in_javadoc = true
ij_groovy_use_relative_indents = false
ij_groovy_use_single_class_imports = true
ij_groovy_variable_annotation_wrap = off
ij_groovy_while_brace_force = never
ij_groovy_while_on_new_line = false
ij_groovy_wrap_long_lines = false
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.stylelintrc,bowerrc,jest.config}]
indent_size = 2
ij_json_keep_blank_lines_in_code = 0
ij_json_keep_indents_on_empty_lines = false
ij_json_keep_line_breaks = true
ij_json_space_after_colon = true
ij_json_space_after_comma = true
ij_json_space_before_colon = true
ij_json_space_before_comma = false
ij_json_spaces_within_braces = false
ij_json_spaces_within_brackets = false
ij_json_wrap_long_lines = false
[{*.htm,*.html,*.sht,*.shtm,*.shtml}]
ij_html_add_new_line_before_tags = body, div, p, form, h1, h2, h3
ij_html_align_attributes = true
ij_html_align_text = false
ij_html_attribute_wrap = normal
ij_html_block_comment_at_first_column = true
ij_html_do_not_align_children_of_min_lines = 0
ij_html_do_not_break_if_inline_tags = title, h1, h2, h3, h4, h5, h6, p
ij_html_do_not_indent_children_of_tags = html, body, thead, tbody, tfoot
ij_html_enforce_quotes = false
ij_html_inline_tags = a, abbr, acronym, b, basefont, bdo, big, br, cite, cite, code, dfn, em, font, i, img, input, kbd, label, q, s, samp, select, small, span, strike, strong, sub, sup, textarea, tt, u, var
ij_html_keep_blank_lines = 2
ij_html_keep_indents_on_empty_lines = false
ij_html_keep_line_breaks = true
ij_html_keep_line_breaks_in_text = true
ij_html_keep_whitespaces = false
ij_html_keep_whitespaces_inside = span, pre, textarea
ij_html_line_comment_at_first_column = true
ij_html_new_line_after_last_attribute = never
ij_html_new_line_before_first_attribute = never
ij_html_quote_style = double
ij_html_remove_new_line_before_tags = br
ij_html_space_after_tag_name = false
ij_html_space_around_equality_in_attribute = false
ij_html_space_inside_empty_tag = false
ij_html_text_wrap = normal
[{*.markdown,*.md,*.mkd}]
ij_markdown_wrap_text_if_long = false
ij_markdown_wrap_text_inside_blockquotes = false
[{*.properties,spring.handlers,spring.schemas}]
ij_properties_align_group_field_declarations = false
ij_properties_keep_blank_lines = false
ij_properties_key_value_delimiter = equals
ij_properties_spaces_around_key_value_delimiter = false
[{*.yaml,*.yml}]
indent_size = 2
ij_yaml_align_values_properties = do_not_align
ij_yaml_autoinsert_sequence_marker = true
ij_yaml_block_mapping_on_new_line = false
ij_yaml_indent_sequence_value = true
ij_yaml_keep_indents_on_empty_lines = false
ij_yaml_keep_line_breaks = true
ij_yaml_sequence_on_new_line = false
ij_yaml_space_before_colon = false
ij_yaml_spaces_within_braces = true
ij_yaml_spaces_within_brackets = true
================================================
FILE: .gitattributes
================================================
* text=auto
* eol=lf
*.png binary
*.jar binary
*.jpg binary
*.jpeg binary
*.webp binary
*.bin binary
================================================
FILE: .github/ISSUE_TEMPLATE/bug.yml
================================================
name: Bug 报告
description: 提交一个 bug
labels:
- "z:question"
body:
- type: markdown
attributes:
value: |
感谢你来到这里
在反馈前, 请确认你已经做了下面这些事情
- 阅读过 [「提问的智慧」](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md)
- 阅读过 [「如何有效地报告 Bug」](https://www.chiark.greenend.org.uk/~sgtatham/bugs-cn.html)
- 对照过 [Releases](https://github.com/mamoe/mirai/releases),相关问题未在近期更新中解决
- 搜索了已有的 [issues](https://github.com/mamoe/mirai/issues?q=is%3Aissue) 列表中有没相关的信息
- 阅读了 [Mirai 的相关文档](https://github.com/mamoe/mirai/tree/dev/docs)
- type: textarea
id: issue-description
attributes:
label: 问题描述
description: 在此详细描述你遇到的问题
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: 复现
description: 在这里简略说明如何让这个问题再次发生
placeholder: |
在这里简略说明如何让这个问题再次发生
可使用 1. 2. 3. 的列表格式,或其他任意恰当的格式
如果你不确定如何复现, 请尽量描述发生当时的情景
建议提供相关代码
validations:
required: true
- type: input
id: version-mirai-core
attributes:
label: mirai-core 版本
description: "填写你正在使用的版本号,如 `2.8.2`"
placeholder: 2.8.2
validations:
required: true
- type: dropdown
id: bot-protocol
attributes:
label: bot-protocol
options:
- ANDROID_PHONE
- ANDROID_PAD
- ANDROID_WATCH
- IPAD
- MACOS
validations:
required: true
- type: textarea
id: version-others
attributes:
label: 其他组件版本
description: |
如果你正在通过 mirai-console 或其他间接使用 mirai-core 的中间件(如 mirai-native、mirai-api-http 或者其他第三方 SDK), 请同样提供版本号
如果你正在使用 mirai-console, 请在此处粘贴 `/status` 命令的结果
placeholder: |
mirai-api-http: `2.3.3`
- type: textarea
id: journal-system
attributes:
label: 系统日志
description: |
请提供全面的相关日志. 请不要截图.
如果日志过大, 可以在 `补充信息` 上传文件.
如果你遇到的问题是 "消息收不到", "收消息报错" 等与协议有关的问题, 请一定提交日志. 若不提交日志, 你的问题可能会被直接关闭.
render: 'text'
validations:
required: false
- type: textarea
id: journal-network
attributes:
label: 网络日志
description: |
如果网络日志 (Net xxx) 不包含在系统日志中, 请额外提供网络日志. 若已经包含, 请忽略.
请提供全面的网络日志. 请不要截图.
若使用 Mirai Console 一般网络日志位于 bots/<****>/logs 里
如果日志过大, 可以在 `补充信息` 上传文件.
render: text
validations:
required: false
- type: textarea
id: additional
attributes:
label: 补充信息
description: 如有必要,你可以在下文继续添加其他信息
- type: markdown
attributes:
value: |
----
在发出 issue 前, 请确认
- 全部信息已经填写完毕, 特别是 「其他组件版本」
- 报告中没有令人反感的语言
- 「复现」的描述是否足够详细准确
================================================
FILE: .github/ISSUE_TEMPLATE/config.yml
================================================
blank_issues_enabled: true
contact_links:
- name: Mirai Forum
url: https://mirai.mamoe.net
about: 论坛
================================================
FILE: .github/ISSUE_TEMPLATE/feature.md
================================================
---
name: 特性申请
about: 申请 mirai 添加新的特性
title: ''
labels: 't:feature'
assignees: ''
---
<!--
感谢你来到这里,
在反馈前, 请确认你已经做了下面这些事情
- 对照 releases,相关特性未实现
- 搜索了已有的 issues 列表中有没相关的信息
- 阅读了 Mirai 的相关文档
-->
<!--
请在下一行开始描述你需要的功能和它的实际用途举例. 请注意, 如果没有实际用途, 你的建议可能不会被采纳.
-->
================================================
FILE: .github/workflows/build.yml
================================================
name: Build
on:
push:
paths-ignore:
- 'docs/**'
- 'mirai-console/docs/**'
- '**/*.md'
pull_request:
paths-ignore:
- 'docs/**'
- 'mirai-console/docs/**'
- '**/*.md'
jobs:
build:
name: "Build (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: # You must use macos-12. Only macos-12 get 14GB memory while others have only 7GB.
# - windows-2022
- macos-12
env:
gradleArgs: --scan
isMac: ${{ startsWith(matrix.os, 'macos') }}
isWindows: ${{ startsWith(matrix.os, 'windows') }}
isUbuntu: ${{ startsWith(matrix.os, 'ubuntu') }}
isUnix: ${{ startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- if: ${{ env.isUnix == 'true' }}
run: chmod -R 777 *
- if: ${{ env.isWindows == 'true' }}
name: Setup Memory Environment on Windows
run: >
wmic pagefileset where name="D:\\pagefile.sys" set InitialSize=1024,MaximumSize=18432 &
net stop mongodb
shell: cmd
continue-on-error: true
- name: Clean and download dependencies
run: ./gradlew clean ${{ env.gradleArgs }}
- run: >
./gradlew updateSnapshotVersion ${{ env.gradleArgs }}
if: github.event.pusher && vars.RUN_MIRAI_SNAPSHOTS == 'true'
env:
MIRAI_IS_SNAPSHOTS_PUBLISHING: true
SNAPSHOTS_PUBLISHING_USER: ${{ secrets.SNAPSHOTS_PUBLISHING_USER }}
SNAPSHOTS_PUBLISHING_KEY: ${{ secrets.SNAPSHOTS_PUBLISHING_KEY }}
SNAPSHOTS_PUBLISHING_URL: ${{ secrets.SNAPSHOTS_PUBLISHING_URL }}
MIRAI_BUILD_INDEX_AUTH_USERNAME: ${{ secrets.MIRAI_BUILD_INDEX_AUTH_USERNAME }}
MIRAI_BUILD_INDEX_AUTH_PASSWORD: ${{ secrets.MIRAI_BUILD_INDEX_AUTH_PASSWORD }}
- name: "Assemble"
run: ./gradlew assemble ${{ env.gradleArgs }}
- name: Publish Local Artifacts
if: ${{ env.enableLocalPublishingTest == 'true' }}
run: ./gradlew :mirai-deps-test:publishMiraiArtifactsToMavenLocal ${{ env.gradleArgs }} "-Dmirai.build.project.version=2.99.0-deps-test"
- name: "Check"
run: ./gradlew check ${{ env.gradleArgs }}
# Snapshots
- if: ${{ env.isMac == 'true' }}
name: Ensure KDoc valid
run: ./gradlew dokkaHtmlMultiModule ${{ env.gradleArgs }}
- name: Release RAM
run: node ci-release-helper/scripts/kill-java.js
- name: Publish Snapshots
if: ${{ github.event.pusher && env.isMac == 'true' && vars.RUN_MIRAI_SNAPSHOTS == 'true' }}
run: ./gradlew publishAllPublicationsToMiraiRepoRepository ${{ env.gradleArgs }}
env:
MIRAI_IS_SNAPSHOTS_PUBLISHING: true
SNAPSHOTS_PUBLISHING_USER: ${{ secrets.SNAPSHOTS_PUBLISHING_USER }}
SNAPSHOTS_PUBLISHING_KEY: ${{ secrets.SNAPSHOTS_PUBLISHING_KEY }}
SNAPSHOTS_PUBLISHING_URL: ${{ secrets.SNAPSHOTS_PUBLISHING_URL }}
# Upload
- name: Publish MavenLocal
run: ./gradlew publishToMavenLocal ${{ env.gradleArgs }}
- name: Upload MavenLocal
uses: actions/upload-artifact@v3
with:
name: maven-cache
path: ~/.m2
================================================
FILE: .github/workflows/check-publishing.yml
================================================
# 当修改构建脚本 (包括修改依赖版本) 时检查配置是否能正常发版
# 发版检查非常慢, 因此不在 build.yml 做
name: Check Publishing
on:
push:
paths:
- '**/**.gradle.kts'
- '**/gradle.properties'
- 'buildSrc/**'
pull_request:
paths:
- '**/**.gradle.kts'
- '**/gradle.properties'
- 'buildSrc/**'
jobs:
check-publishing:
name: "Check Publishing (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
# - windows-2022 # OOM
- ubuntu-20.04
- macos-12
include:
# - os: windows-2022
# targetName: mingwX64
# parallelCompilation: false
- os: ubuntu-20.04
targetName: linuxX64
parallelCompilation: false
- os: macos-12
targetName: macosX64
parallelCompilation: true # macOS machine has 14G
env:
# FIXME there must be two or more targets, or we'll get error on `@OptionalExpectation`
# > Declaration annotated with '@OptionalExpectation' can only be used in common module sources
gradleArgs: --scan
isMac: ${{ startsWith(matrix.os, 'macos') }}
isWindows: ${{ startsWith(matrix.os, 'windows') }}
isUbuntu: ${{ startsWith(matrix.os, 'ubuntu') }}
isUnix: ${{ startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') }}
VCPKG_DEFAULT_BINARY_CACHE: ${{ startsWith(matrix.os, 'windows') && 'C:\vcpkg\binary_cache' || '/usr/local/share/vcpkg/binary_cache' }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-java@v3
with:
distribution: 'adopt-openj9'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Cache konan
uses: pat-s/always-upload-cache@v3.0.11
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Prepare to cache vcpkg
if: ${{ env.isWindows == 'true' }}
run: mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
- name: Cache vcpkg
if: ${{ env.isWindows == 'true' }}
uses: pat-s/always-upload-cache@v3.0.11
with:
path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}
key: ${{ runner.os }}-vcpkg-binary-cache-${{ github.job }}
restore-keys: |
${{ runner.os }}-vcpkg-binary-cache-
- if: ${{ env.isUnix == 'true' }}
run: chmod -R 777 *
# Prepare environment for linking on Ubuntu
- if: ${{ env.isUbuntu == 'true' }}
name: Install OpenSSL on Ubuntu
run: sudo apt install libssl-dev -y
# Prepare environment for linking on Windows
- if: ${{ env.isWindows == 'true' }}
name: Setup Memory Environment on Windows
run: >
wmic pagefileset where name="D:\\pagefile.sys" set InitialSize=1024,MaximumSize=9216 &
net stop mongodb
shell: cmd
continue-on-error: true
- if: ${{ env.isWindows == 'true' }}
name: Install OpenSSL & cURL on Windows
run: |
echo "set(VCPKG_BUILD_TYPE release)" | Out-File -FilePath "$env:VCPKG_INSTALLATION_ROOT\triplets\x64-windows.cmake" -Encoding utf8 -Append
vcpkg install openssl:x64-windows curl[core,ssl]:x64-windows
New-Item -Path $env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib\crypto.lib -ItemType SymbolicLink -Value $env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib\libcrypto.lib
New-Item -Path $env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib\ssl.lib -ItemType SymbolicLink -Value $env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib\libssl.lib
New-Item -Path $env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib\curl.lib -ItemType SymbolicLink -Value $env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\lib\libcurl.lib
echo "$env:VCPKG_INSTALLATION_ROOT\installed\x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Clean and download dependencies
run: ./gradlew clean ${{ env.gradleArgs }}
- name: Prepare deps test build
run: ./gradlew :mirai-deps-test:updateProjectVersionForLocalDepsTest ${{ env.gradleArgs }} "-Porg.gradle.parallel=${{ matrix.parallelCompilation }}"
- name: Build and Publish Local Artifacts
run: ./gradlew :mirai-deps-test:publishMiraiArtifactsToMavenLocal ${{ env.gradleArgs }} "-Porg.gradle.parallel=${{ matrix.parallelCompilation }}"
- name: Check Publication
run: ./gradlew :mirai-deps-test:check ${{ env.gradleArgs }} "-Dmirai.deps.test.must.run=true" "-Porg.gradle.parallel=${{ matrix.parallelCompilation }}"
================================================
FILE: .github/workflows/doc.yml
================================================
name: mirai-doc Publish
on:
push:
tags:
- 'v*' # 正式版本
jobs:
mirai-docs:
runs-on: macos-12 # 14G memory
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: chmod -R 777 *
run: chmod -R 777 *
- name: Prepare environment
run: ./gradlew :mirai-dokka:prepare
- name: Dokka
run: ./gradlew dokkaHtmlMultiModule
- name: Update version number
run: ./gradlew :mirai-dokka:update-vers
- name: Deploy
run: ./gradlew :mirai-dokka:deployPages
env:
gh_token: ${{ secrets.MAMOE_TOKEN }}
================================================
FILE: .github/workflows/release.yml
================================================
name: Release Publish
on:
push:
tags:
- 'v*' # 正式版本
paths-ignore:
- 'docs/**'
- 'mirai-console/docs/**'
- '**/*.md'
jobs:
initialize-sonatype-stage:
name: "Initialize sonatype staging repository"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- run: chmod -R 777 *
- name: Create publishing staging repository
run: ./gradlew runcihelper --args create-stage-repo --scan "-Pcihelper.cert.username=${{ secrets.SONATYPE_USER }}" "-Pcihelper.cert.password=${{ secrets.SONATYPE_KEY }}" "-Pcihelper.cert.profileid=${{ secrets.SONATYPE_PROFILEID }}"
- name: Cache staging repository id
uses: actions/upload-artifact@v3
with:
name: publish-stage-id
path: ci-release-helper/repoid
publish-others:
name: "Others (${{ matrix.os }})"
runs-on: ${{ matrix.os }}
needs: [ initialize-sonatype-stage ]
strategy:
fail-fast: false
matrix:
os:
- macos-12
env:
# All targets MUST be enabled. See #2270.
gradleArgs: --scan "-Dmirai.target=other" "-Pkotlin.compiler.execution.strategy=in-process"
isMac: ${{ startsWith(matrix.os, 'macos') }}
isWindows: ${{ startsWith(matrix.os, 'windows') }}
isUbuntu: ${{ startsWith(matrix.os, 'ubuntu') }}
isUnix: ${{ startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu') }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Keys setup
shell: bash
run: |
mkdir build-gpg-sign
echo "$GPG_PRIVATE" > build-gpg-sign/keys.gpg
echo "$GPG_PUBLIC_" > build-gpg-sign/keys.gpg.pub
env:
GPG_PRIVATE: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PUBLIC_: ${{ secrets.GPG_PUBLIC_KEY }}
- name: Setup Android SDK Ubuntu
if: ${{ env.isUbuntu == 'true' }}
run: 'touch local.properties && echo sdk.dir=/usr/local/lib/android/sdk >> local.properties'
- name: Setup Android SDK macOS
if: ${{ env.isMac == 'true' }}
run: 'touch local.properties && echo sdk.dir=/Users/runner/Library/Android/sdk >> local.properties'
- name: Setup Android SDK Windows
if: ${{ env.isWindows == 'true' }}
run: 'echo sdk.dir=C:\Android\android-sdk >> local.properties'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Cache konan
uses: pat-s/always-upload-cache@v3.0.11
with:
path: ~/.konan
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }}
restore-keys: |
${{ runner.os }}-gradle-
- if: ${{ env.isUnix == 'true' }}
run: chmod -R 777 *
# Prepare environment for linking for macOS
- name: Clean and download dependencies
run: ./gradlew clean ${{ env.gradleArgs }}
- name: "Assemble"
run: ./gradlew assemble ${{ env.gradleArgs }}
- name: Publish Local Artifacts
if: ${{ env.enableLocalPublishingTest == 'true' }}
run: ./gradlew :mirai-deps-test:publishMiraiArtifactsToMavenLocal ${{ env.gradleArgs }} "-Dmirai.build.project.version=2.99.0-deps-test"
- name: "Check"
run: ./gradlew check ${{ env.gradleArgs }}
- if: ${{ env.isMac == 'true' }}
name: Ensure KDoc valid
run: ./gradlew dokkaHtmlMultiModule ${{ env.gradleArgs }}
- name: Initialize Publishing Caching Repository
run: ./gradlew runcihelper --args sync-maven-metadata ${{ env.gradleArgs }}
- name: Publish
if: ${{ env.isMac == 'true' }}
run: ./gradlew publishAllPublicationsToMiraiStageRepoRepository ${{ env.gradleArgs }}
- name: Restore staging repository id
uses: actions/download-artifact@v3
with:
name: publish-stage-id
path: ci-release-helper/repoid
- name: Release RAM
run: node ci-release-helper/scripts/kill-java.js
- name: Publish to maven central
run: ./gradlew runcihelper --args publish-to-maven-central --scan "-Pcihelper.cert.username=${{ secrets.SONATYPE_USER }}" "-Pcihelper.cert.password=${{ secrets.SONATYPE_KEY }}"
- name: Publish Gradle plugin
run: ./gradlew
:mirai-console-gradle:publishPlugins ${{ env.gradleArgs }}
-Dgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}
-Dgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}
continue-on-error: true
#
# close-repository:
# runs-on: macos-12
# needs:
# - publish-others
# - publish-core-native
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: 'recursive'
#
# - uses: actions/setup-java@v3
# with:
# distribution: 'adopt-openj9'
# java-version: '17'
#
# - name: Setup Gradle
# uses: gradle/gradle-build-action@v2
#
# - name: Close repository
# run: ./gradlew :ci-release-helper:closeRepository --scan
================================================
FILE: .gitignore
================================================
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
target/
build/
.idea/
*.iml
mirai.iml
/.idea/
.idea/*
/.idea/*
/test
.gradle/
local.properties
# Maven publishing credits
keys.properties
/plugins/
token.txt
bintray.user.txt
bintray.key.txt
# For gpg sign
/build-gpg-sign
# Name for IDEA direction sorting
build-secret-keys/
**/local.*
================================================
FILE: .run/Check Binary Compatibility.run.xml
================================================
<!--
~ Copyright 2019-2021 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Check Binary Compatibility" type="GradleRunConfiguration" factoryName="Gradle" folderName="API Compatibility">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="apiCheckAll" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
</component>
================================================
FILE: .run/Compile everything.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Compile everything" type="GradleRunConfiguration" factoryName="Gradle"
folderName="Build">
<ExternalSystemSettings>
<option name="executionName"/>
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
<option name="externalSystemIdString" value="GRADLE"/>
<option name="scriptParameters" value=""/>
<option name="taskDescriptions">
<list/>
</option>
<option name="taskNames">
<list>
<option value="assemble"/>
</list>
</option>
<option name="vmOptions"/>
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2"/>
</configuration>
</component>
================================================
FILE: .run/Compile mirai-console.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Compile mirai-console" type="GradleRunConfiguration" factoryName="Gradle"
folderName="Build">
<ExternalSystemSettings>
<option name="executionName"/>
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
<option name="externalSystemIdString" value="GRADLE"/>
<option name="scriptParameters" value=""/>
<option name="taskDescriptions">
<list/>
</option>
<option name="taskNames">
<list>
<option value=":mirai-console:assemble"/>
</list>
</option>
<option name="vmOptions"/>
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2"/>
</configuration>
</component>
================================================
FILE: .run/Compile mirai-core for JVM.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Compile mirai-core for JVM" type="GradleRunConfiguration" factoryName="Gradle"
folderName="Build mirai-core">
<ExternalSystemSettings>
<option name="executionName"/>
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
<option name="externalSystemIdString" value="GRADLE"/>
<option name="scriptParameters" value=""/>
<option name="taskDescriptions">
<list/>
</option>
<option name="taskNames">
<list>
<option value=":mirai-core-utils:compileKotlinJvm"/>
<option value=":mirai-core-utils:compileKotlinAndroid"/>
<option value=":mirai-core-api:compileKotlinJvm"/>
<option value=":mirai-core-api:compileKotlinAndroid"/>
<option value=":mirai-core:compileKotlinJvm"/>
<option value=":mirai-core:compileKotlinAndroid"/>
</list>
</option>
<option name="vmOptions"/>
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2"/>
</configuration>
</component>
================================================
FILE: .run/Dump API Changes for mirai-console-frontend-base.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Dump API Changes for mirai-console-frontend-base" type="GradleRunConfiguration"
factoryName="Gradle" folderName="API Compatibility">
<ExternalSystemSettings>
<option name="executionName"/>
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
<option name="externalSystemIdString" value="GRADLE"/>
<option name="scriptParameters" value=""/>
<option name="taskDescriptions">
<list/>
</option>
<option name="taskNames">
<list>
<option value=":mirai-console-frontend-base:apiDumpAll"/>
</list>
</option>
<option name="vmOptions"/>
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2"/>
</configuration>
</component>
================================================
FILE: .run/Dump API Changes for mirai-console.run.xml
================================================
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Dump API Changes for mirai-console" type="GradleRunConfiguration" factoryName="Gradle" folderName="API Compatibility">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value=":mirai-console:apiDumpAll" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
</component>
================================================
FILE: .run/Dump API Changes for mirai-core-api.run.xml
================================================
<!--
~ Copyright 2019-2021 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Dump API Changes for mirai-core-api" type="GradleRunConfiguration" factoryName="Gradle" folderName="API Compatibility">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value=":mirai-core-api:apiDumpAll" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
</component>
================================================
FILE: .run/Publish deps test artifacts.run.xml
================================================
<!--
~ Copyright 2019-2023 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Publish deps test artifacts" type="GradleRunConfiguration" factoryName="Gradle"
folderName="Publishing Tests">
<ExternalSystemSettings>
<option name="env">
<map>
<entry key="mirai.build.project.version" value="2.99.0-deps-test"/>
</map>
</option>
<option name="executionName"/>
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
<option name="externalSystemIdString" value="GRADLE"/>
<option name="scriptParameters" value="--stacktrace"/>
<option name="taskDescriptions">
<list/>
</option>
<option name="taskNames">
<list>
<option value=":mirai-deps-test:publishMiraiArtifactsToMavenLocal"/>
</list>
</option>
<option name="vmOptions"/>
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<ForceTestExec>false</ForceTestExec>
<method v="2"/>
</configuration>
</component>
================================================
FILE: .run/Publish local artifacts.run.xml
================================================
<!--
~ Copyright 2019-2023 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Publish local artifacts" type="GradleRunConfiguration" factoryName="Gradle" folderName="Build">
<ExternalSystemSettings>
<option name="env">
<map>
<entry key="mirai.build.project.version" value="2.99.0-local" />
</map>
</option>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="--stacktrace"/>
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="publishToMavenLocal" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<ForceTestExec>false</ForceTestExec>
<method v="2" />
</configuration>
</component>
================================================
FILE: .run/Run IDE.run.xml
================================================
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run IDE" type="GradleRunConfiguration" factoryName="Gradle" folderName="Build">
<ExternalSystemSettings>
<option name="executionName" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="externalSystemIdString" value="GRADLE" />
<option name="scriptParameters" value="" />
<option name="taskDescriptions">
<list />
</option>
<option name="taskNames">
<list>
<option value="runIde" />
</list>
</option>
<option name="vmOptions" />
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2" />
</configuration>
</component>
================================================
FILE: .run/Run core tests.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run core tests" type="GradleRunConfiguration" factoryName="Gradle">
<ExternalSystemSettings>
<option name="env">
<map>
<entry key="kotlinx.coroutines.debug" value="on"/>
</map>
</option>
<option name="executionName"/>
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
<option name="externalSystemIdString" value="GRADLE"/>
<option name="scriptParameters" value=""/>
<option name="taskDescriptions">
<list/>
</option>
<option name="taskNames">
<list>
<option value=":mirai-core:check"/>
</list>
</option>
<option name="vmOptions"/>
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2"/>
</configuration>
</component>
================================================
FILE: .run/RunMessageDecodingRecorderKt.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="RunMessageDecodingRecorderKt" type="JetRunConfigurationType"
nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="net.mamoe.mirai.internal.bootstrap.RunMessageDecodingRecorderKt"/>
<module name="mirai.mirai-core.jvmTest"/>
<shortenClasspath name="NONE"/>
<option name="VM_PARAMETERS"
value="-Dmirai.debug.network.state.observer.logging=true -Dmirai.debug.network.show.all.components=true -Dkotlinx.coroutines.debug=on -Dmirai.debug.network.show.packet.details=true"/>
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/test/run"/>
<method v="2">
<option name="Make" enabled="true"/>
</method>
</configuration>
</component>
================================================
FILE: .run/RunRecorderKt.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="RunNoticeRecorderKt" type="JetRunConfigurationType">
<option name="MAIN_CLASS_NAME" value="net.mamoe.mirai.internal.bootstrap.RunNoticeRecorderKt"/>
<module name="mirai.mirai-core.jvmTest"/>
<shortenClasspath name="NONE"/>
<option name="VM_PARAMETERS"
value="-Dmirai.debug.network.show.all.components=true -Dkotlinx.coroutines.debug=on -Dmirai.debug.network.show.packet.details=true -Dmirai.network.notice.unconsumed.logging=true -Dmirai.network.packet.logger=true"/>
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/test/run"/>
<method v="2">
<option name="Make" enabled="true"/>
</method>
</configuration>
</component>
================================================
FILE: .run/Test everything.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test everything" type="GradleRunConfiguration" factoryName="Gradle"
folderName="Build">
<ExternalSystemSettings>
<option name="executionName"/>
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
<option name="externalSystemIdString" value="GRADLE"/>
<option name="scriptParameters" value=""/>
<option name="taskDescriptions">
<list/>
</option>
<option name="taskNames">
<list>
<option value="check"/>
</list>
</option>
<option name="vmOptions"/>
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2"/>
</configuration>
</component>
================================================
FILE: .run/Test mirai-console.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test mirai-console" type="GradleRunConfiguration" factoryName="Gradle"
folderName="Build">
<ExternalSystemSettings>
<option name="executionName"/>
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
<option name="externalSystemIdString" value="GRADLE"/>
<option name="scriptParameters" value=""/>
<option name="taskDescriptions">
<list/>
</option>
<option name="taskNames">
<list>
<option value=":mirai-console:check"/>
</list>
</option>
<option name="vmOptions"/>
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Compile mirai-console"
run_configuration_type="GradleRunConfiguration"/>
</method>
</configuration>
</component>
================================================
FILE: .run/Test mirai-core for JVM.run.xml
================================================
<!--
~ Copyright 2019-2022 Mamoe Technologies and contributors.
~
~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
~ Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
~
~ https://github.com/mamoe/mirai/blob/dev/LICENSE
-->
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test mirai-core for JVM" type="GradleRunConfiguration" factoryName="Gradle"
folderName="Build mirai-core">
<ExternalSystemSettings>
<option name="executionName"/>
<option name="externalProjectPath" value="$PROJECT_DIR$"/>
<option name="externalSystemIdString" value="GRADLE"/>
<option name="scriptParameters" value=""/>
<option name="taskDescriptions">
<list/>
</option>
<option name="taskNames">
<list>
<option value=":mirai-core-utils:jvmTest"/>
<option value=":mirai-core-utils:androidTest"/>
<option value=":mirai-core-api:jvmTest"/>
<option value=":mirai-core-api:androidTest"/>
<option value=":mirai-core:jvmTest"/>
<option value=":mirai-core:androidTest"/>
</list>
</option>
<option name="vmOptions"/>
</ExternalSystemSettings>
<ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
<ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
<DebugAllEnabled>false</DebugAllEnabled>
<method v="2">
<option name="RunConfigurationTask" enabled="true" run_configuration_name="Compile mirai-core-api for JVM"
run_configuration_type="GradleRunConfiguration"/>
</method>
</configuration>
</component>
================================================
FILE: CONTRIBUTING.md
================================================
# CONTRIBUTING
-----------------------------
欢迎你来到这里, 请移步 [`docs/contributing`](docs/contributing)
================================================
FILE: LICENSE
================================================
GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.
A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate. Many developers of free software are heartened and
encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.
The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community. It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.
An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals. This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time. Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code. There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.
================================================
FILE: README-eng.md
================================================
# Mirai
Mirai is a high-performance multi-platform library, as well as a framework, providing protocol support for Tencent QQ.
Mirai is designed to handle all sorts of messaging works that can be automatically done by bots **in a perfect way**.
> Tencent QQ: A modern messaging software used by all Chinese netizens.
## Start
**Development document**: [docs](docs)
### Use as a framework
Mirai is able to run as a plugin-supported framework.
The community, (with `mirai-console`) that allows developers to share their plugins, and for users to install plugins quickly, is building in progress.
- JVM languages like `Java` or `Kotlin`: Make Jar plugin
for [mirai-console](/mirai-console) directly and share with other
developers through the plugin center.
- `Kotlin Script`: [mirai-kts](https://github.com/iTXTech/mirai-kts)
supports plugins using Kotlin Scripts (`kts`)(**OpenJDK 8+ only,except
Android**)
- Native languages like `C`, `C++`: [mirai-native](https://github.com/iTXTech/mirai-native) supports plugins from CoolQ **(`Windows JREx86` only / with `Wine`)**
- `JavaScript`: [mirai-js](https://github.com/iTXTech/mirai-js) supports plugins using `JavaScript` and inter-operate with **mirai** on JVM directly.
- Any language:Use HTTP API from [mirai-api-http](https://github.com/mamoe/mirai-api-http)
**Though only Jar plugins are supported officially, language bridges that are maintained by the community can connect with your knowledge.**:
- `Python`: [python-mirai](https://github.com/NatriumLab/python-mirai) A Bot framework based on `mirai-api-http`.
- `JavaScript`(`Node.js`): [node-mirai](https://github.com/RedBeanN/node-mirai) The Node.js SDK for mirai.
- `Go`: [gomirai](https://github.com/Logiase/gomirai) The GoLang SDK for mirai.
- `Mozilla Rhino`: [mirai-rhinojs-sdk](https://github.com/StageGuard/mirai-rhinojs-sdk) The Mozilla Rhino (JavaScript) SDK for mirai.
- `Lua`: [lua-mirai](https://github.com/only52607/lua-mirai) The Lua SDK for mirai-core, supporting Java extensions that act as a bridge between Java and native Lua.
- `C++`: [miraiCP](https://github.com/Nambers/MiraiCP) A C++ SDK using the `JNI` technique to connect the Mirai.
- `C++`: [mirai-cpp](https://github.com/cyanray/mirai-cpp) A simple C++ SDK using `mirai-api-http` for ALL platforms.
- `C++`: [miraipp](https://github.com/Chlorie/miraipp-template) A sophisticated, modern mapping for `mirai-http-api` to C++, providing development documents.
- `Rust`: [mirai-rs](https://github.com/HoshinoTented/mirai-rs) The Rust mapping for `mirai-http-api`.
- `TypeScript`: [mirai-ts](https://github.com/YunYouJun/mirai-ts) TypeScript SDK comes with a declaration file, has good code hints, and can also be used as a JavaScript SDK.
### Use as a library
You can install mirai as a library into your project.
#### Import with Gradle
Mirai is only published on `jcenter`, therefore please ensure you have the `jcenter()` repository added in your `build.gradle`.
```kotlin
repositories{
jcenter()
}
```
Then add dependency to `dependencies` block, following:
If your project is a multiplatform project, you need to add dependencies for each platform respectively.
If your project is not a multiplatform project, add the platform-specific dependency only.
Replace `VERSION` with the newest version, say [](https://bintray.com/him188moe/mirai/mirai-core/)
**jvm**
```kotlin
implementation("net.mamoe:mirai-core:VERSION")
```
**common**
```kotlin
implementation("net.mamoe:mirai-core-common:VERSION")
```
**android**
```kotlin
implementation("net.mamoe:mirai-core-android:VERSION")
```
#### Import with Maven
```xml
<repositories>
<repository>
<id>jcenter</id>
<url>https://jcenter.bintray.com/</url>
</repository>
</repositories>
```
```xml
<dependencies>
<dependency>
<groupId>net.mamoe</groupId>
<artifactId>mirai-core-qqandroid</artifactId>
<version>0.23.0</version> <!-- Replace to the newest -->
</dependency>
</dependencies>
```
## Contribution
**All kinds of contributions are welcomed.**
If you hold an interest in helping us implementing Mirai on JS, iOS or Native platforms, please email us `support@mamoe.net`.
If you meet any problem or have any questions, feel free to file an issue. Our goal is to make Mirai easy to use.
## Acknowledgements
Thanks to [JetBrains](https://www.jetbrains.com/?from=mirai) for allocating free open-source licences for IDEs such as [IntelliJ IDEA](https://www.jetbrains.com/idea/?from=mirai).
[<img src=".github/jetbrains-variant-3.png" width="200"/>](https://www.jetbrains.com/?from=mirai)
## License
Copyright (C) 2019-2021 Mamoe Technologies and mirai contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
================================================
FILE: README.md
================================================
<div align="center">
<img width="160" src="docs/mirai.png" alt="logo"></br>
<img width="95" src="docs/mirai.svg" alt="title">
----
[](https://gitter.im/mamoe/mirai?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[](https://mirai.mamoe.net)
mirai 是一个在全平台下运行,提供 QQ Android 协议支持的高效率机器人库
这个项目的名字来源于
<p><a href = "http://www.kyotoanimation.co.jp/">京都动画</a>作品<a href = "https://zh.moegirl.org.cn/zh-hans/%E5%A2%83%E7%95%8C%E7%9A%84%E5%BD%BC%E6%96%B9">《境界的彼方》</a>的<a href = "https://zh.moegirl.org.cn/zh-hans/%E6%A0%97%E5%B1%B1%E6%9C%AA%E6%9D%A5">栗山未来(Kuriyama <b>mirai</b>)</a></p>
<p><a href = "https://www.crypton.co.jp/">CRYPTON</a>以<a href = "https://www.crypton.co.jp/miku_eng">初音未来</a>为代表的创作与活动<a href = "https://magicalmirai.com/2019/index_en.html">(Magical <b>mirai</b>)</a></p>
图标以及形象由画师<a href = "https://github.com/DazeCake">DazeCake</a>绘制
</div>
## mirai
**[English](README-eng.md)**
## 声明
### 一切开发旨在学习,请勿用于非法用途
- mirai 是完全免费且开放源代码的软件,仅供学习和娱乐用途使用
- mirai 不会通过任何方式强制收取费用,或对使用者提出物质条件
- mirai 由整个开源社区维护,并不是属于某个个体的作品,所有贡献者都享有其作品的著作权。
### 许可证
Copyright (C) 2019-2023 Mamoe Technologies and contributors.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
`mirai` 采用 `AGPLv3` 协议开源。为了整个社区的良性发展,我们**强烈建议**您做到以下几点:
- **间接接触(包括但不限于使用 `Http API` 或 跨进程技术)到 `mirai` 的软件使用 `AGPLv3` 开源**
- **不鼓励,不支持一切商业使用**
鉴于项目的特殊性,开发团队可能在任何时间**停止更新**或**删除项目**。
### 衍生软件需声明引用
- 若引用 mirai 发布的软件包而不修改 mirai,则衍生项目需在描述或应用内的任意部位提及使用 mirai。
- 若修改 mirai 源代码再发布,**或参考 mirai 内部实现发布另一个项目**,则衍生项目必须在**文章首部**或 'mirai' 相关内容**首次出现**的位置**明确声明**来源于本仓库 (`https://github.com/mamoe/mirai`)。不得扭曲或隐藏免费且开源的事实。
## 协议支持
<details>
<summary>支持的协议列表</summary>
**消息相关**
- 文字
- 原生表情
- 商城表情
- 戳一戳
- 图片 (自定义表情)
- XML,JSON 等富文本消息
- 长消息(5000 字符 + 50 图片)
- 引用回复
- 合并转发
- 撤回
- 提及群员
- 提及全体成员
- 语音
- 闪照
- 撤回群员消息
- 自定义消息
- 音乐分享
- 短视频
**群相关**
- 群列表
- 成员列表
- 群员权限
- 禁言
- 全体禁言
- 群公告管理
- 群设置(自动审批、入群公告、成员邀请、匿名聊天)
- 处理入群申请
- 移除群员
- 群文件
**好友相关**
- 好友列表
- 处理新好友申请
- 删除好友
**其他客户端**
- 同步其他客户端的消息
- 向其他客户端发送消息
</details>
#### 不会支持的协议
- 金钱相关,如点赞、收付款
- 敏感操作,如主动添加好友、主动加入群、主动邀请好友加群
- 安全相关,获取账号登录凭证(token,cookie等)
**一切开发旨在学习,请勿用于非法用途**
## 快速使用
- **用户手册**: [UserManual](docs/UserManual.md)
> 如果你希望快速部署一个 Mirai QQ 机器人,安装插件、并投入使用,请看这里
- 论坛: [Mirai Forum](https://mirai.mamoe.net/)
> Mirai 只有**唯一一个**官方论坛 Mirai Forum
- 在线讨论: [Gitter](https://gitter.im/mamoe/mirai?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
## 开发相关
- 开发文档: [在 GitHub 阅读](docs/README.md)
或 [在 docs.mirai.mamoe.net 阅读](https://docs.mirai.mamoe.net/)
- 参与贡献: [CONTRIBUTING](docs/contributing/README.md)
- 更新日志: [release](https://github.com/mamoe/mirai/releases)
- 开发计划: [milestones](https://github.com/mamoe/mirai/milestones)
- mirai 开发组和官方系列项目: [project-mirai](https://github.com/project-mirai)
- mirai 社区相关项目 (
旧): [awesome-mirai](https://github.com/project-mirai/awsome-mirai/blob/master/README.md)
## 赞助
- 本着与更多 mirai 开发者、用户、支持者共建更好的学习环境为目的,mirai 自 2021 年 3 月 1 日发起官方社区的建设。社区建设可能涉及:[学习论坛](https://mirai.mamoe.net)、[插件中心(在建)](https://github.com/project-mirai/mirai-plugin-center)等。由于社区的运维需要经费,mirai 项目开启 sponsor 功能。
- 请注意,赞助是全自愿的。赞助者不会获得特权,不赞助也可以使用全部的功能。为资金管理方便,赞助后不设退款、折现等选项。最终解释权归社区运营团队所有。
- 全部赞助金额、流向、票据单号等将<a href="https://github.com/project-mirai/mirai-sponsor/tree/main">透明化公示</a>,欢迎任何人随时查看及提出建议。
## 鸣谢
> [IntelliJ IDEA](https://zh.wikipedia.org/zh-hans/IntelliJ_IDEA) 是一个在各个方面都最大程度地提高开发人员的生产力的 IDE,适用于 JVM 平台语言。
特别感谢 [JetBrains](https://www.jetbrains.com/?from=mirai) 为开源项目提供免费的 [IntelliJ IDEA](https://www.jetbrains.com/idea/?from=mirai) 等 IDE 的授权
[<img src=".github/jetbrains-variant-3.png" width="200"/>](https://www.jetbrains.com/?from=mirai)
================================================
FILE: build.gradle.kts
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
@file:Suppress("UnstableApiUsage", "UNUSED_VARIABLE", "NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration
import shadow.configureMppShadow
import java.time.LocalDateTime
buildscript {
repositories {
if (System.getProperty("use.maven.local") == "true") {
mavenLocal()
}
mavenCentral()
gradlePluginPortal()
google()
}
dependencies {
classpath("com.android.tools.build:gradle:${Versions.androidGradlePlugin}")
classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:${Versions.atomicFU}")
classpath("org.jetbrains.dokka:dokka-base:${Versions.dokka}")
}
}
plugins {
kotlin("jvm") apply false // version Versions.kotlinCompiler
kotlin("plugin.serialization") version Versions.kotlinCompiler apply false
id("com.google.osdetector")
id("org.jetbrains.dokka") version Versions.dokka
id("me.him188.kotlin-jvm-blocking-bridge") version Versions.blockingBridge
id("me.him188.kotlin-dynamic-delegation") version Versions.dynamicDelegation apply false
id("me.him188.maven-central-publish") version Versions.mavenCentralPublish apply false
id("com.gradle.plugin-publish") version "1.1.0" apply false
id("org.jetbrains.kotlinx.binary-compatibility-validator") version Versions.binaryValidator apply false
id("com.android.library") apply false
id("de.mannodermaus.android-junit5") version "1.8.2.1" apply false
}
osDetector = osdetector
BuildSrcRootProjectHolder.value = rootProject
BuildSrcRootProjectHolder.lastUpdateTime = System.currentTimeMillis()
analyzes.CompiledCodeVerify.run { registerAllVerifyTasks() }
allprojects {
group = "net.mamoe"
version = Versions.project
repositories {
if (System.getProperty("use.maven.local") == "true") {
mavenLocal()
}
mavenCentral()
gradlePluginPortal()
google()
}
preConfigureJvmTarget()
afterEvaluate {
configureJvmTarget()
configureMppShadow()
configureEncoding()
configureKotlinTestSettings()
configureKotlinOptIns()
if (isKotlinJvmProject) {
configureFlattenSourceSets()
}
configureJarManifest()
substituteDependenciesUsingExpectedVersion()
}
}
subprojects {
afterEvaluate {
if (project.path == ":mirai-core-api") configureDokka()
if (project.path == ":mirai-console") configureDokka()
}
}
rootProject.configureDokka()
tasks.register("cleanExceptIntellij") {
group = "build"
allprojects.forEach { proj ->
if (proj.name != "mirai-console-intellij") {
// Type mismatch
// proj.tasks.findByName("clean")?.let(::dependsOn)
proj.tasks.findByName("clean")?.let { dependsOn(it) }
}
}
}
extensions.findByName("buildScan")?.withGroovyBuilder {
setProperty("termsOfServiceUrl", "https://gradle.com/terms-of-service")
setProperty("termsOfServiceAgree", "yes")
}
fun Project.configureDokka() {
val isRoot = this@configureDokka == rootProject
if (!isRoot) {
apply(plugin = "org.jetbrains.dokka")
}
tasks.withType<org.jetbrains.dokka.gradle.AbstractDokkaTask>().configureEach {
pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
this.footerMessage = """Copyright 2019-${
LocalDateTime.now().year
} <a href="https://github.com/mamoe">Mamoe Technologies</a> and contributors.
Source code:
<a href="https://github.com/mamoe/mirai">GitHub</a>
""".trimIndent()
this.customAssets = listOf(
rootProject.projectDir.resolve("mirai-dokka/frontend/ext.js"),
)
}
}
tasks.withType<org.jetbrains.dokka.gradle.DokkaTask>().configureEach {
dokkaSourceSets.configureEach {
perPackageOption {
matchingRegex.set("net\\.mamoe\\.mirai\\.*")
skipDeprecated.set(true)
}
for (suppressedPackage in arrayOf(
"""net.mamoe.mirai.internal""",
"""net.mamoe.mirai.internal.message""",
"""net.mamoe.mirai.internal.network""",
"""net.mamoe.mirai.console.internal""",
"""net.mamoe.mirai.console.compiler.common"""
)) {
perPackageOption {
matchingRegex.set(suppressedPackage.replace(".", "\\."))
suppress.set(true)
}
}
}
}
if (isRoot) {
tasks.named<org.jetbrains.dokka.gradle.AbstractDokkaTask>("dokkaHtmlMultiModule").configure {
outputDirectory.set(
rootProject.projectDir.resolve("mirai-dokka/pages/snapshot")
)
}
}
}
================================================
FILE: buildSrc/build.gradle.kts
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
plugins {
`kotlin-dsl`
}
repositories {
mavenLocal()
google()
mavenCentral()
gradlePluginPortal()
}
kotlin {
sourceSets.all {
languageSettings.optIn("kotlin.Experimental")
languageSettings.optIn("kotlin.RequiresOptIn")
languageSettings.optIn("kotlin.ExperimentalStdlibApi")
}
}
private val versionsText = project.projectDir.resolve("src/main/kotlin/Versions.kt").readText()
fun version(name: String): String {
return versionsText.lineSequence()
.map { it.trim() }
.single { it.startsWith("const val $name ") }
.substringAfter('"', "")
.substringBefore('"', "")
.also {
check(it.isNotBlank())
logger.debug("$name=$it")
}
}
dependencies {
val asmVersion = version("asm")
fun asm(module: String) = "org.ow2.asm:asm-$module:$asmVersion"
fun kotlinx(id: String, version: String) = "org.jetbrains.kotlinx:kotlinx-$id:$version"
fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
// compileOnly(kotlin("gradle-plugin-api", "1.3.72")) // Gradle's Kotlin is 1.3.72
// api("com.github.jengelman.gradle.plugins", "shadow", version("shadow"))
api("com.github.johnrengelman", "shadow", version("shadow"))
api("org.jetbrains.kotlin", "kotlin-gradle-plugin", version("kotlinCompiler")) {
exclude("org.jetbrains.kotlin", "kotlin-stdlib")
exclude("org.jetbrains.kotlin", "kotlin-stdlib-common")
exclude("org.jetbrains.kotlin", "kotlin-reflect")
}
// api("org.jetbrains.kotlin", "kotlin-compiler-embeddable", version("kotlinCompiler"))
// api(ktor("client-okhttp", "1.4.3"))
api("com.android.tools.build", "gradle", version("androidGradlePlugin"))
api(asm("tree"))
api(asm("util"))
api(asm("commons"))
api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2") {
exclude("org.jetbrains.kotlin", "kotlin-stdlib")
exclude("org.jetbrains.kotlin", "kotlin-reflect")
exclude("org.jetbrains.kotlin", "kotlin-stdlib-common")
}
// https://mvnrepository.com/artifact/com.android.library/com.android.library.gradle.plugin
api("com.android.library:com.android.library.gradle.plugin:${version("androidGradlePlugin")}")
api("com.google.code.gson:gson:2.10.1")
api("gradle.plugin.com.google.gradle:osdetector-gradle-plugin:1.7.0")
api(gradleApi())
}
================================================
FILE: buildSrc/settings.gradle.kts
================================================
/*
* Copyright 2019-2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
================================================
FILE: buildSrc/src/main/kotlin/Android.kt
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
@file:Suppress("UNUSED_VARIABLE")
import com.android.build.api.dsl.LibraryExtension
import org.gradle.api.JavaVersion
import org.gradle.api.Project
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.*
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import java.util.*
const val PROP_MIRAI_ENABLE_ANDROID_INSTRUMENTED_TESTS = "mirai.enable.android.instrumented.tests"
/**
* Use [usingAndroidInstrumentedTests] instead.
*/
val ENABLE_ANDROID_INSTRUMENTED_TESTS by projectLazy {
val name = PROP_MIRAI_ENABLE_ANDROID_INSTRUMENTED_TESTS
(System.getProperty(name)
?: System.getenv(name)
?: rootProject.getLocalProperty(name)
?: "true").toBooleanStrict()
}
val Project.usingAndroidInstrumentedTests
get() = ENABLE_ANDROID_INSTRUMENTED_TESTS && isAndroidSdkAvailable
fun Project.configureAndroidTarget(androidNamespace: String) {
if (ENABLE_ANDROID_INSTRUMENTED_TESTS && !isAndroidSdkAvailable) {
if (!ProjectAndroidSdkAvailability.tryFixAndroidSdk(this)) {
printAndroidNotInstalled()
}
}
extensions.getByType(KotlinMultiplatformExtension::class.java).apply {
if (project.usingAndroidInstrumentedTests) {
configureAndroidTargetWithSdk(androidNamespace)
} else {
configureAndroidTargetWithJvm()
}
}
}
private fun Project.configureAndroidTargetWithJvm() {
extensions.getByType(KotlinMultiplatformExtension::class.java).apply {
jvm("android") {
attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.androidJvm)
if (IDEA_ACTIVE) {
attributes.attribute(MIRAI_PLATFORM_ATTRIBUTE, "android") // workaround for IDE bug
}
}
val jvmBaseMain by sourceSets.getting
val jvmBaseTest by sourceSets.getting
sourceSets.getByName("androidTest").configureJvmTest("configureAndroidTargetWithJvm")
sourceSets.getByName("androidTest").kotlin.srcDir(projectDir.resolve("src/androidUnitTest/kotlin"))
sourceSets.getByName("androidTest").dependsOn(jvmBaseTest)
sourceSets.getByName("androidMain").apply {
dependencies {
compileOnly(`android-runtime`)
}
dependsOn(jvmBaseMain)
}
tasks.all {
if (this.name == "androidTest") {
this as Test
this.environment(PROP_MIRAI_ANDROID_SDK_KIND, "jdk")
}
}
}
}
private const val PROP_MIRAI_ANDROID_SDK_KIND = "mirai.android.sdk.kind"
@Suppress("UnstableApiUsage")
private fun Project.configureAndroidTargetWithSdk(androidNamespace: String) {
apply(plugin = "com.android.library")
apply(plugin = "de.mannodermaus.android-junit5")
extensions.getByType(LibraryExtension::class).apply {
namespace = androidNamespace
}
extensions.getByType(KotlinMultiplatformExtension::class.java).apply {
android {
publishLibraryVariants("release", "debug")
}
val jvmBaseMain = sourceSets.maybeCreate("jvmBaseMain")
val jvmBaseTest = sourceSets.maybeCreate("jvmBaseTest")
val androidMain by sourceSets.getting
androidMain.dependsOn(jvmBaseMain)
// don't use androidTest, deprecated by Kotlin
// this can cause problems on sync
// for (s in arrayOf("androidDebug", "androidRelease")) {
// sourceSets.all { if (name in s) dependsOn(androidMain) }
// }
// we should have added a "androidBaseTest" (or "androidTest") for "androidUnitTest" and "androidInstrumentedTest",
// but this currently cause bugs in IntelliJ (2023.2)
// val androidBaseTest = sourceSets.maybeCreate("androidBaseTest").apply {
// dependsOn(jvmBaseTest)
// }
val androidUnitTest by sourceSets.getting {
dependsOn(jvmBaseTest)
}
// for (s in arrayOf("androidUnitTestDebug", "androidUnitTestRelease")) {
// sourceSets.all { if (name in s) dependsOn(androidUnitTest) }
// }
val androidInstrumentedTest by sourceSets.getting {
dependsOn(jvmBaseTest)
}
// for (s in arrayOf("androidInstrumentedTestDebug")) {
// sourceSets.all { if (name in s) dependsOn(androidInstrumentedTest) }
// }
// afterEvaluate {
//// > androidDebug dependsOn commonMain
//// androidInstrumentedTest dependsOn jvmBaseTest
//// androidInstrumentedTestDebug dependsOn
//// androidMain dependsOn commonMain, jvmBaseMain
//// androidRelease dependsOn commonMain
//// androidUnitTest dependsOn commonTest, jvmBaseTest
//// androidUnitTestDebug dependsOn commonTest
//// androidUnitTestRelease dependsOn commonTest
// error(this@apply.sourceSets.joinToString("\n") {
// it.name + " dependsOn " + it.dependsOn.joinToString { it.name }
// })
// }
configure(
listOf(
sourceSets.getByName("androidInstrumentedTest"),
sourceSets.getByName("androidUnitTest"),
)
) {
dependencies { implementation(kotlin("test-annotations-common"))?.because("configureAndroidTargetWithSdk") }
}
tasks.all {
if (this.name == "testDebugUnitTest" || this.name == "testReleaseUnitTest") {
this as Test
this.environment(PROP_MIRAI_ANDROID_SDK_KIND, "adk")
}
}
}
// trick for compiler bug
this.sourceSets.apply {
removeIf { it.name == "androidAndroidTestRelease" }
removeIf { it.name == "androidTestFixtures" }
removeIf { it.name == "androidTestFixturesDebug" }
removeIf { it.name == "androidTestFixturesRelease" }
}
extensions.getByType(LibraryExtension::class.java).apply {
compileSdk = 33
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = rootProject.extra["mirai.android.target.api.level"]!!.toString().toInt()
targetSdk = 33
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
buildTypes.getByName("release") {
isMinifyEnabled = false
isShrinkResources = false
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
)
}
}
extensions.getByType(LibraryExtension::class.java).apply {
defaultConfig {
// 1) Make sure to use the AndroidJUnitRunner, or a subclass of it. This requires a dependency on androidx.test:runner, too!
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
// 2) Connect JUnit 5 to the runner
testInstrumentationRunnerArguments["runnerBuilder"] = "de.mannodermaus.junit5.AndroidJUnit5Builder"
}
}
// val sourceSets = arrayOf("androidInstrumentedTest", "androidUnitTest")
// .map { kotlin.sourceSets.getByName(it) }
// for (sourceSet in sourceSets) {
// sourceSet.dependencies {
// implementation("androidx.test:runner:1.5.2")
// implementation("org.junit.jupiter:junit-jupiter-api:5.9.2")
// runtimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
//
// implementation("de.mannodermaus.junit5:android-test-core:1.3.0")
// implementation("de.mannodermaus.junit5:android-test-runner:1.3.0")
// }
// }
dependencies {
// 4) Jupiter API & Test Runner, if you don't have it already
"androidTestImplementation"("androidx.test:runner:1.5.2")
"androidTestImplementation"("org.junit.jupiter:junit-jupiter-api:${Versions.junit}")
"androidTestRuntimeOnly"("org.junit.jupiter:junit-jupiter-engine:${Versions.junit}")
// 5) The instrumentation test companion libraries
"androidTestImplementation"("de.mannodermaus.junit5:android-test-core:1.3.0")
"androidTestRuntimeOnly"("de.mannodermaus.junit5:android-test-runner:1.3.0")
}
}
private fun Project.printAndroidNotInstalled() {
logger.warn(
"""
你设置了启用 Android Instrumented Test, 但是未配置 Android SDK. $name 的 Android 目标将会使用桌面 JVM 编译和测试.
Android Instrumented Test 将不会进行. 这不会影响 Android 以外的平台的编译和测试.
如果你要给 mirai PR 并且你修改了 Android 部分, 建议解决此警告.
如果你没有修改 Android 部分, 则可以忽略, 或者在项目根目录 local.properties (如果不存在就创建一个) 添加 `$PROP_MIRAI_ENABLE_ANDROID_INSTRUMENTED_TESTS=false`.
在安装 Android SDK 后, 请在项目根目录 local.properties 中添加 `sdk.dir=/path/to/Android/sdk` 指向本机 Android SDK 安装路径.
若要关闭 Android Instrumented Test, 在项目根目录 local.properties 添加 `$PROP_MIRAI_ENABLE_ANDROID_INSTRUMENTED_TESTS=false`.
-------
""".trimIndent()
)
// logger.warn(
// """Android SDK might not be installed. Android target of $name will not be compiled. It does no influence on the compilation of other platforms.
// """.trimIndent()
// )
}
private object ProjectAndroidSdkAvailability {
val map: MutableMap<String, Boolean> by projectLazy { mutableMapOf() }
@Synchronized
operator fun get(project: Project): Boolean {
if (map[project.path] != null) return map[project.path]!!
val projectAvailable = project.runCatching {
val keyProps = Properties().apply {
file("local.properties").takeIf { it.exists() }?.inputStream()?.use { load(it) }
}
keyProps.getProperty("sdk.dir", "").isNotEmpty()
}.getOrElse { false }
fun impl(): Boolean {
if (project === project.rootProject) return projectAvailable
return projectAvailable || get(project.rootProject)
}
map[project.path] = impl()
return map[project.path]!!
}
fun tryFixAndroidSdk(project: Project): Boolean {
val androidHome = System.getenv("ANDROID_HOME") ?: kotlin.run {
project.logger.info("tryFixAndroidSdk: environment `ANDROID_HOME` does not exist")
return false
}
val escaped = androidHome
.replace(""":""", """\:""")
.replace("""\""", """\\""")
.trim()
project.rootDir.resolve("local.properties")
.apply { if (!exists()) createNewFile() }
.appendText("sdk.dir=$escaped")
project.logger.info("tryFixAndroidSdk: fixed sdk.dir in local.properties: $escaped")
map.clear()
return get(project)
}
}
private val Project.isAndroidSdkAvailable: Boolean get() = ProjectAndroidSdkAvailability[this]
================================================
FILE: buildSrc/src/main/kotlin/BinaryCompatibilityConfigurator.kt
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
import org.gradle.api.Project
import org.gradle.configurationcache.extensions.useToRun
import java.io.File
/*
* Copyright 2019-2021 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
object BinaryCompatibilityConfigurator {
fun Project.configureBinaryValidators(targetNames: Set<String>) {
targetNames.forEach { configureBinaryValidator(it) }
}
fun Project.configureBinaryValidator(targetName: String?) {
val validationDir = projectDir.resolve("compatibility-validation")
val dir = validationDir.resolve(targetName ?: "jvm")
dir.mkdirs()
createValidator(this, dir, targetName)
val apiDumpAll = tasks.maybeCreate("apiDumpAll").apply {
group = "mirai"
}
val apiCheckAll = tasks.maybeCreate("apiCheckAll").apply {
group = "mirai"
}
project.afterEvaluate {
val validatorProject = findProject(getValidatorDir(dir))
validatorProject?.afterEvaluate {
tasks.getByName("apiDump").let { apiDumpAll.dependsOn(it) }
}
validatorProject?.afterEvaluate {
tasks.getByName("apiCheck").let { apiCheckAll.dependsOn(it) }
}
}
}
// Also change: settings.gradle.kts:116
private fun Project.getValidatorDir(dir: File) = ":validator" + project.path + "-validator:${dir.name}"
private fun File.writeTextIfNeeded(text: String) {
if (!this.exists()) return this.writeText(text)
if (this.readText() == text) return
return this.writeText(text)
}
/**
* @param targetName `null` for JVM projects.
*/
fun createValidator(project: Project, dir: File, targetName: String?) {
dir.resolve("build.gradle.kts").writeTextIfNeeded(
applyTemplate(
project.path,
listOfNotNull(
if (targetName == null) "classes/kotlin/main" else "classes/kotlin/$targetName/main",
if (targetName?.contains("android") == true && project.usingAndroidInstrumentedTests) "tmp/kotlin-classes/debug" else ""
)
)
)
dir.resolve(".gitignore").writeTextIfNeeded(
this::class.java.classLoader
.getResourceAsStream("binary-compatibility-validator-ignore.txt")!!.readBytes().decodeToString()
)
project.afterEvaluate {
findProject(getValidatorDir(dir))
?.afterEvaluate {
if (targetName == null) {
tasks.findByName("apiBuild")?.dependsOn(
*listOfNotNull(
project.tasks.getByName("jar"),
project.tasks.findByName("compileDebugKotlinAndroid")
).toTypedArray()
)
} else {
tasks.findByName("apiBuild")?.dependsOn(
if (targetName.contains("android") && ENABLE_ANDROID_INSTRUMENTED_TESTS) {
project.tasks.getByName("bundleDebugAar")
} else {
project.tasks.getByName("${targetName}Jar")
}
)
}
}
}
}
fun applyTemplate(projectPath: String, buildDirs: List<String>): String {
return this::class.java.classLoader
.getResourceAsStream("binary-compatibility-validator-build.txt")!!
.useToRun { readBytes() }
.decodeToString()
.replace("$\$PROJECT_PATH$$", projectPath)
.replace("$\$BUILD_DIR$$", buildDirs.joinToString("\n"))
.replace("$\$PLUGIN_VERSION$$", Versions.binaryValidator)
}
}
================================================
FILE: buildSrc/src/main/kotlin/DependencyDumper.kt
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.artifacts.ResolvedDependency
import org.gradle.api.tasks.TaskProvider
import java.io.File
import java.util.zip.ZipFile
object DependencyDumper {
fun registerDumpTask(project: Project, confName: String, out: File): TaskProvider<Task> {
return regDmpTask(project, confName) { deps ->
deps.forEach { println(" `- $it") }
out.writeText(deps.joinToString("\n", postfix = "\n"))
}
}
fun registerDumpTaskKtSrc(project: Project, confName: String, out: File, className: String): TaskProvider<Task> {
val pkgName = className.substringBeforeLast(".")
val kname = className.substringAfterLast(".")
return regDmpTask(project, confName) { deps ->
out.printWriter().use { pr ->
pr.println("package $pkgName")
pr.println()
pr.println("internal object $kname {")
pr.println(" val dependencies: List<String> = listOf(")
deps.forEach { dependency ->
pr.append(" \"").append(dependency).println("\",")
}
pr.println(" )")
pr.println("}")
}
}
}
private fun regDmpTask(project: Project, confName: String, action: (List<String>) -> Unit): TaskProvider<Task> {
val dependenciesDump = project.tasks.maybeCreate("dependenciesDump")
dependenciesDump.group = "mirai"
return project.tasks.register("dependenciesDump_${confName.capitalize()}") {
group = "mirai"
doLast {
val dependencies = HashSet<String>()
fun emit(dep: ResolvedDependency) {
if (dependencies.add(dep.moduleGroup + ":" + dep.moduleName)) {
dep.children.forEach { emit(it) }
}
}
project.configurations.getByName(confName).resolvedConfiguration.firstLevelModuleDependencies.forEach { dependency ->
emit(dependency)
}
val stdep = dependencies.toMutableList()
stdep.sort()
action(stdep)
}
}.also { dependenciesDump.dependsOn(it) }
}
fun registerDumpClassGraph(project: Project, confName: String, out: String): TaskProvider<Task> {
val dependenciesDump = project.tasks.maybeCreate("dependenciesDump")
dependenciesDump.group = "mirai"
return project.tasks.register("dependenciesDumpGraph_${confName.capitalize()}") {
group = "mirai"
val outFile = temporaryDir.resolve(out)
outputs.file(outFile)
val conf = project.configurations.getByName(confName)
doLast {
outFile.parentFile.mkdirs()
val classes = HashSet<String>()
conf.resolvedConfiguration.files.forEach { file ->
if (file.isFile) {
ZipFile(file).use { zipFile ->
zipFile.entries().asSequence()
.filter { it.name.endsWith(".class") }
.filterNot { it.name.startsWith("META-INF") }
.map { it.name.substringBeforeLast('.').replace('/', '.') }
.map { it.removePrefix(".") }
.forEach { classes.add(it) }
}
} else if (file.isDirectory) {
file.walk()
.filter { it.isFile }
.filter { it.name.endsWith(".class") }
.map { it.relativeTo(file).path.substringBeforeLast('.') }
.map { it.replace('\\', '.').replace('/', '.') }
.map { it.removePrefix(".") }
.forEach { classes.add(it) }
}
}
outFile.bufferedWriter().use { writer ->
classes.sorted().forEach { writer.append(it).append('\n') }
}
}
}.also { dependenciesDump.dependsOn(it) }
}
}
================================================
FILE: buildSrc/src/main/kotlin/HmppConfigure.kt
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
import com.google.gradle.osdetector.OsDetector
import org.gradle.api.Project
import org.gradle.api.attributes.Attribute
import org.gradle.kotlin.dsl.getting
import org.gradle.kotlin.dsl.provideDelegate
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
val MIRAI_PLATFORM_ATTRIBUTE: Attribute<String> = Attribute.of(
"net.mamoe.mirai.platform", String::class.java
)
/**
* Flags a target as an HMPP intermediate target
*/
val MIRAI_PLATFORM_INTERMEDIATE: Attribute<Boolean> = Attribute.of(
"net.mamoe.mirai.platform.intermediate", Boolean::class.javaObjectType
)
val IDEA_ACTIVE = System.getProperty("idea.active") == "true" && System.getProperty("publication.test") != "true"
val OS_NAME = System.getProperty("os.name").lowercase()
lateinit var osDetector: OsDetector
// aarch = arm
val OsDetector.isAarch
get() = osDetector.arch.run {
contains("aarch", ignoreCase = true) || contains("arm", ignoreCase = true)
}
@Suppress("ClassName")
sealed class HostKind(
val targetName: String
) {
object LINUX : HostKind("linuxX64")
object WINDOWS : HostKind("mingwX64")
abstract class MACOS(targetName: String) : HostKind(targetName)
object MACOS_X64 : MACOS("macosX64")
object MACOS_ARM64 : MACOS("macosArm64")
}
val HOST_KIND by lazy {
when {
OS_NAME.contains("windows", true) -> HostKind.WINDOWS
OS_NAME.contains("mac", true) -> {
if (osDetector.isAarch) {
HostKind.MACOS_ARM64
} else {
HostKind.MACOS_X64
}
}
else -> HostKind.LINUX
}
}
/// eg. "!a;!b" means to enable all targets but a or b
/// eg. "a;b;!other" means to disable all targets but a or b
val ENABLED_TARGETS by projectLazy {
val targets = getMiraiTargetFromGradle() // enable all by default
targets.split(';').toSet()
}
fun getMiraiTargetFromGradle() =
System.getProperty("mirai.target")
?: System.getenv("mirai.target")
?: rootProject.getLocalProperty("projects.mirai-core.targets")
?: "others"
fun isTargetEnabled(name: String): Boolean {
return when {
name in ENABLED_TARGETS -> true // explicitly enabled
"!$name" in ENABLED_TARGETS -> false // explicitly disabled
"~$name" in ENABLED_TARGETS -> false // explicitly disabled
"!other" in ENABLED_TARGETS -> false // others disabled
"~other" in ENABLED_TARGETS -> false // others disabled
"!others" in ENABLED_TARGETS -> false // others disabled
"~others" in ENABLED_TARGETS -> false // others disabled
else -> true
}
}
fun Set<String>.filterTargets() =
this.filter { isTargetEnabled(it) }.toSet()
const val JVM_TOOLCHAIN_VERSION = 8
val JVM_TOOLCHAIN_ENABLED by projectLazy {
rootProject.getLocalProperty("mirai.enable.jvmtoolchain.special", true)
}
/**
* ## Android Test 结构
*
* 如果[启用 Android Instrumented Test][ENABLE_ANDROID_INSTRUMENTED_TESTS], 将会配置使用 Android SDK 配置真 Android target,
* `androidMain` 将能访问 Android SDK, 也能获得针对 Android 的 IDE 错误检查.
*/
fun Project.configureJvmTargetsHierarchical(androidNamespace: String) {
extensions.getByType(KotlinMultiplatformExtension::class.java).apply {
if (JVM_TOOLCHAIN_ENABLED) {
jvmToolchain(JVM_TOOLCHAIN_VERSION)
}
val commonMain by sourceSets.getting
val commonTest by sourceSets.getting
if (IDEA_ACTIVE) {
jvm("jvmBase") { // dummy target for resolution, not published
compilations.all {
// magic to help IDEA
this.compileTaskProvider.configure {
enabled = false
}
}
attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.common) // magic
// avoid resolution when other modules dependsOn this project
attributes.attribute(MIRAI_PLATFORM_ATTRIBUTE, "jvmBase")
attributes.attribute(MIRAI_PLATFORM_INTERMEDIATE, true) // no shadow
}
} else {
// if not in IDEA, no need to create intermediate targets.
}
val jvmBaseMain by lazy {
sourceSets.maybeCreate("jvmBaseMain").apply {
dependsOn(commonMain)
}
}
val jvmBaseTest by lazy {
sourceSets.maybeCreate("jvmBaseTest").apply {
dependsOn(commonTest)
}
}
if (isTargetEnabled("android")) {
configureAndroidTarget(androidNamespace)
}
if (isTargetEnabled("jvm")) {
jvm("jvm")
val jvmMain by sourceSets.getting
val jvmTest by sourceSets.getting
jvmMain.dependsOn(jvmBaseMain)
jvmTest.dependsOn(jvmBaseTest)
}
}
}
fun String.titlecase(): String {
if (this.isEmpty()) return this
val c = get(0)
return replaceFirst(c, Character.toTitleCase(c))
}
================================================
FILE: buildSrc/src/main/kotlin/JvmDependencies.kt
================================================
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
@file:Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
import org.gradle.api.artifacts.ExternalModuleDependency
import org.gradle.api.artifacts.dsl.DependencyHandler
import org.gradle.kotlin.dsl.accessors.runtime.addDependencyTo
@Suppress("unused")
fun DependencyHandler.compileAndTestRuntime(any: Any) {
add("compileOnly", any)
add("testImplementation", any)
}
fun DependencyHandler.smartApi(
dependencyNotation: String
): ExternalModuleDependency {
return smart("api", dependencyNotation)
}
fun DependencyHandler.smartImplementation(
dependencyNotation: String
): ExternalModuleDependency {
return smart("implementation", dependencyNotation)
}
private fun DependencyHandler.smart(
configuration: String,
dependencyNotation: String
): ExternalModuleDependency {
return addDependencyTo(
this, configuration, dependencyNotation
) {
fun exclude(group: String, module: String) {
exclude(
mapOf(
"group" to group,
"module" to module
)
)
}
exclude("org.jetbrains.kotlin", "kotlin-stdlib-jdk8")
exclude("org.jetbrains.kotlin", "kotlin-stdlib")
exclude("org.jetbrains.kotlin", "kotlin-stdlib-common")
exclude("org.jetbrains.kotlinx", "kotlinx-coroutines-core-common")
exclude("org.jetbrains.kotlinx", "kotlinx-coroutines-core")
exclude("org.jetbrains.kotlinx", "kotlinx-serialization-common")
exclude("org.jetbrains.kotlinx", "kotlinx-serialization-core")
}
}
================================================
FILE: buildSrc/src/main/kotlin/JvmPublishing.kt
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
@file:Suppress(
"NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS",
"RECEIVER_NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS"
)
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import keys.SecretKeys
import org.gradle.api.Project
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.tasks.bundling.Jar
import org.gradle.kotlin.dsl.get
import org.gradle.kotlin.dsl.getByName
import org.gradle.kotlin.dsl.register
import java.io.File
fun Project.configureRemoteRepos() {
tasks.register("ensureMavenCentralAvailable") {
doLast {
val keys = SecretKeys.getCache(project)
if (!keys.loadKey("sonatype").isValid) {
error("Maven Central isn't available.")
}
}
}
publishing {
// sonatype
val keys = SecretKeys.getCache(project)
repositories {
maven {
name = "MiraiStageRepo"
val stageRepoLoc = getLocalProperty("publishing.stage-repo")?.let(::File)
?.takeIf { it.exists() }
?: rootProject.file("ci-release-helper/stage-repo")
url = stageRepoLoc.also { it.mkdirs() }.toURI()
}
if (System.getenv("MIRAI_IS_SNAPSHOTS_PUBLISHING")?.toBoolean() == true) {
maven {
name = "MiraiRepo"
setUrl(System.getenv("SNAPSHOTS_PUBLISHING_URL"))
credentials {
username = System.getenv("SNAPSHOTS_PUBLISHING_USER")
password = System.getenv("SNAPSHOTS_PUBLISHING_KEY")
}
}
}
val sonatype = keys.loadKey("sonatype")
if (sonatype.isValid) {
maven {
name = "MavenCentral"
// Maven Central
setUrl("https://oss.sonatype.org/service/local/staging/deploy/maven2")
credentials {
username = sonatype.user
password = sonatype.password
}
}
} else {
logger.info("Sonatype is not available, Maven Central repository is not configured")
}
}
}
}
@Suppress("NOTHING_TO_INLINE")
inline fun Project.configurePublishing(
artifactId: String,
vcs: String = "https://github.com/mamoe/mirai",
addProjectComponents: Boolean = true,
skipPublicationSetup: Boolean = false,
addShadowJar: Boolean = true
) {
configureRemoteRepos()
if (skipPublicationSetup) return
val shadowJar = if (!addProjectComponents || !addShadowJar) null else tasks.register<ShadowJar>("shadowJar") {
archiveClassifier.set("all")
manifest.inheritFrom(tasks.getByName<Jar>("jar").manifest)
from(project.sourceSets["main"].output)
configurations =
listOfNotNull(project.configurations.findByName("runtimeClasspath") ?: project.configurations["runtime"])
exclude("META-INF/INDEX.LIST", "META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA", "module-info.class")
}
val sourcesJar = if (!addProjectComponents) null else tasks.register<Jar>("sourcesJar") {
archiveClassifier.set("sources")
from(sourceSets["main"].allSource)
}
val stubJavadoc = if (!addProjectComponents) null else tasks.register<Jar>("javadocJar") {
@Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
archiveClassifier.set("javadoc")
}
publishing {
publications {
register("mavenJava", MavenPublication::class) {
if (addProjectComponents) from(components["java"])
groupId = rootProject.group.toString()
setArtifactId(artifactId)
version = project.version.toString()
setupPom(
project = project,
vcs = vcs
)
sourcesJar?.let { artifact(it) }
stubJavadoc?.get()?.let { artifact(it) }
shadowJar?.get()?.let { artifact(it) }
}
}
}
}
================================================
FILE: buildSrc/src/main/kotlin/KotlinMetadataPatcher.kt
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.google.gson.JsonElement
import com.google.gson.JsonPrimitive
import org.gradle.api.GradleException
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.publish.tasks.GenerateModuleMetadata
import shadow.relocationFilters
import java.io.File
import java.io.InputStream
import java.io.OutputStream
import java.security.MessageDigest
fun Project.configurePatchKotlinModuleMetadataTask(
relocatedPublicationName: String,
relocateDependencies: Task,
originalPublicationName: String
) {
// We will modify Kotlin metadata, so do generate metadata before relocation
val generateMetadataTask =
tasks.getByName("generateMetadataFileFor${originalPublicationName.titlecase()}Publication") as GenerateModuleMetadata
publications.getByName(relocatedPublicationName) {
this as MavenPublication
this.artifact(generateMetadataTask.outputFile) {
classifier = null
extension = "module"
}
}
generateMetadataTask.dependsOn(relocateDependencies)
val patchMetadataTask =
tasks.create("patchMetadataFileFor${relocatedPublicationName.capitalize()}RelocatedPublication") {
group = "mirai"
generateMetadataTask.finalizedBy(this)
dependsOn(generateMetadataTask)
dependsOn(relocateDependencies)
// remove dependencies in Kotlin module metadata
doLast {
// mirai-core-jvm-2.13.0.module
val file = generateMetadataTask.outputFile.asFile.get()
val metadata = Gson().fromJson(
file.readText(),
JsonElement::class.java
).asJsonObject
val metadataVersion = metadata["formatVersion"]?.asString
check(metadataVersion == "1.1") {
"Unsupported Kotlin metadata version. version=$metadataVersion, file=${file.absolutePath}"
}
for (variant in metadata["variants"]!!.asJsonArray) {
patchKotlinMetadataVariant(variant, relocateDependencies.outputs.files.singleFile)
}
file.writeText(GsonBuilder().setPrettyPrinting().create().toJson(metadata))
}
}
// Set "publishKotlinMultiplatformPublicationTo*" and "publish${targetName.capitalize()}PublicationTo*" dependsOn patchMetadataTask
if (project.kotlinMpp != null) {
tasks.filter { it.name.startsWith("publishKotlinMultiplatformPublicationTo") }.let { publishTasks ->
if (publishTasks.isEmpty()) {
throw GradleException("[Shadow Relocation] Cannot find publishKotlinMultiplatformPublicationTo for project '${project.path}'.")
}
publishTasks.forEach { it.dependsOn(patchMetadataTask) }
}
tasks.filter { it.name.startsWith("publish${relocatedPublicationName.capitalize()}PublicationTo") }
.let { publishTasks ->
if (publishTasks.isEmpty()) {
throw GradleException("[Shadow Relocation] Cannot find publish${relocatedPublicationName.capitalize()}PublicationTo for project '${project.path}'.")
}
publishTasks.forEach { it.dependsOn(patchMetadataTask) }
}
}
}
private fun Project.patchKotlinMetadataVariant(variant: JsonElement, relocatedJar: File) {
val dependencies = variant.asJsonObject["dependencies"]!!.asJsonArray
dependencies.removeAll { dependency ->
val dep = dependency.asJsonObject
val groupId = dep["group"]!!.asString
val artifactId = dep["module"]!!.asString
relocationFilters.any { filter ->
filter.matchesDependency(
groupId = groupId,
artifactId = artifactId
)
}.also {
println("[Shadow Relocation] Filtering out $groupId:$artifactId from Kotlin module")
}
}
/*
"files": [
{
"name": "mirai-core-jvm-2.99.0-local.jar",
"url": "mirai-core-jvm-2.99.0-local.jar",
"size": 14742378,
"sha512": "7ab4afc88384a58687467ba13c6aefeda20fa53fd7759dc2bc78b2d46a6285f94ba6ccae426d192e7745f773401b3cb42a853e5445dc23bdcb1b5295e78ff71c",
"sha256": "772f593bfb85a80794693d4d9dfe2f77c222cfe9ca7e0d571abaa320e7aa82d3",
"sha1": "cb7937269d29b574725d6f28668847fd672de7cf",
"md5": "3fca635ba5e55b7dd56c552e4ca01f7e"
}
]
*/
val files = variant.asJsonObject["files"].asJsonArray
val filesList = files.toList()
files.removeAll { true }
for (publishedFile0 in filesList) {
val publishedFile = publishedFile0.asJsonObject
val name = publishedFile["name"].asJsonPrimitive.asString
if (name.endsWith(".jar")) {
logPublishing { "Patching Kotlin Metadata: file $name" }
for (algorithm in ALGORITHMS) {
publishedFile.add(algorithm, JsonPrimitive(relocatedJar.digest(algorithm)))
}
publishedFile.add("size", JsonPrimitive(relocatedJar.length()))
} else {
error("Unexpected file '$name' while patching Kotlin metadata")
}
files.add(publishedFile)
}
}
private val ALGORITHMS = listOf("md5", "sha1", "sha256", "sha512")
fun File.digest(algorithm: String): String {
val arr = inputStream().buffered().use { it.digest(algorithm) }
return arr.toUHexString("").lowercase()
}
fun InputStream.digest(algorithm: String): ByteArray {
val digest = MessageDigest.getInstance(algorithm)
digest.reset()
use { input ->
object : OutputStream() {
override fun write(b: Int) {
digest.update(b.toByte())
}
override fun write(b: ByteArray, off: Int, len: Int) {
digest.update(b, off, len)
}
}.use { output ->
input.copyTo(output)
}
}
return digest.digest()
}
================================================
FILE: buildSrc/src/main/kotlin/LocalProperties.kt
================================================
/*
* Copyright 2019-2022 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
import org.gradle.api.Project
import java.util.*
/*
* Copyright 2019-2022 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
object BuildSrcRootProjectHolder {
lateinit var value: Project
var lastUpdateTime: Long = 0
}
val rootProject: Project get() = BuildSrcRootProjectHolder.value
fun <T> projectLazy(action: () -> T): Lazy<T> {
val projLazy = object : Lazy<T> {
private lateinit var delegate: Lazy<T>
private var holdTime: Long = -1
override val value: T
get() {
if (holdTime != BuildSrcRootProjectHolder.lastUpdateTime) {
synchronized(this) {
if (holdTime != BuildSrcRootProjectHolder.lastUpdateTime) {
delegate = lazy(action)
holdTime = BuildSrcRootProjectHolder.lastUpdateTime
}
}
}
return delegate.value
}
override fun isInitialized(): Boolean {
if (!::delegate.isInitialized) return false
if (holdTime == BuildSrcRootProjectHolder.lastUpdateTime) {
return delegate.isInitialized()
}
return false
}
}
return projLazy
}
private lateinit var localProperties: Properties
private var localPropertiesEdition: Long = 0
private fun Project.loadLocalPropertiesIfNecessary() {
val theFile = rootProject.projectDir.resolve("local.properties")
fun isNecessary(): Boolean {
if (!::localProperties.isInitialized) return true
if (theFile.exists()) {
if (localPropertiesEdition != theFile.lastModified()) {
return true
}
} else {
if (localPropertiesEdition != 0L) { // deleted
return true
}
}
return false
}
if (!isNecessary()) return
localProperties = Properties().apply {
localPropertiesEdition = if (theFile.exists()) {
theFile.bufferedReader().use { load(it) }
theFile.lastModified()
} else {
0
}
}
}
fun Project.getLocalProperty(name: String): String? {
loadLocalPropertiesIfNecessary()
return localProperties.getProperty(name)
}
fun Project.getLocalProperty(name: String, default: String): String {
return getLocalProperty(name) ?: default
}
fun Project.getLocalProperty(name: String, default: Int): Int {
return getLocalProperty(name)?.toInt() ?: default
}
fun Project.getLocalProperty(name: String, default: Boolean): Boolean {
return getLocalProperty(name)?.toBoolean() ?: default
}
================================================
FILE: buildSrc/src/main/kotlin/Mpp.kt
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
import org.gradle.api.NamedDomainObjectCollection
import org.gradle.api.NamedDomainObjectProvider
import org.gradle.api.Project
import org.gradle.api.artifacts.DependencySubstitutions
import org.gradle.api.artifacts.ResolutionStrategy
import org.gradle.api.artifacts.component.ComponentSelector
import org.gradle.api.plugins.ExtensionAware
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
val <T> NamedDomainObjectCollection<T>.androidMain: NamedDomainObjectProvider<T>
get() = named("androidMain")
val <T> NamedDomainObjectCollection<T>.jvmMain: NamedDomainObjectProvider<T>
get() = named("jvmMain")
val <T> NamedDomainObjectCollection<T>.androidTest: NamedDomainObjectProvider<T>
get() = named("androidTest")
val <T> NamedDomainObjectCollection<T>.jvmTest: NamedDomainObjectProvider<T>
get() = named("jvmTest")
val <T> NamedDomainObjectCollection<T>.commonMain: NamedDomainObjectProvider<T>
get() = named("commonMain")
inline fun forMppModules(action: (suffix: String) -> Unit) {
arrayOf(
"",
"-common",
"-metadata",
"-jvm",
"-jdk7",
"-jdk8"
).forEach(action)
}
fun Project.substituteDependenciesUsingExpectedVersion() {
configurations.all {
resolutionStrategy.substituteDependencies {
forMppModules { suffix ->
module("org.jetbrains.kotlin:kotlin-stdlib$suffix") using module("org.jetbrains.kotlin:kotlin-stdlib$suffix:${Versions.kotlinStdlib}")
module("org.jetbrains.kotlin:kotlin-reflect$suffix") using module("org.jetbrains.kotlin:kotlin-reflect$suffix:${Versions.kotlinStdlib}")
module("org.jetbrains.kotlinx:kotlinx-coroutines-core$suffix") using
module(kotlinx("coroutines-core$suffix", Versions.coroutines))
module("org.jetbrains.kotlinx:kotlinx-coroutines-debug$suffix") using
module(kotlinx("coroutines-debug$suffix", Versions.coroutines))
}
}
}
}
class ResolutionStrategyDsl(
private val origin: DependencySubstitutions
) : DependencySubstitutions by origin {
infix fun ComponentSelector.using(notation: ComponentSelector): DependencySubstitutions.Substitution {
return substitute(this).using(notation)
}
}
fun ResolutionStrategy.substituteDependencies(action: ResolutionStrategyDsl.() -> Unit) {
dependencySubstitution {
action(ResolutionStrategyDsl(this))
}
}
val Project.kotlinMpp
get() = runCatching {
(this as ExtensionAware).extensions.getByName("kotlin") as? KotlinMultiplatformExtension
}.getOrNull()
val Project.kotlinJvm
get() = runCatching {
(this as ExtensionAware).extensions.getByName("kotlin") as? KotlinJvmProjectExtension
}.getOrNull()
================================================
FILE: buildSrc/src/main/kotlin/MppPublishing.kt
================================================
/*
* Copyright 2020 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
import org.gradle.api.Project
import org.gradle.api.XmlProvider
import org.gradle.api.publish.maven.MavenArtifact
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.tasks.TaskProvider
import org.gradle.jvm.tasks.Jar
import org.gradle.kotlin.dsl.get
import org.gradle.kotlin.dsl.register
import shadow.RelocationConfig
import shadow.relocationFilters
inline fun Project.logPublishing(message: () -> String) {
logger.debug("[Publishing] Configuring {}", message())
}
fun Project.configureMppPublishing() {
configureRemoteRepos()
// mirai does some magic on MPP targets
afterEvaluate {
// tasks.findByName("compileKotlinCommon")?.enabled = false
// tasks.findByName("compileTestKotlinCommon")?.enabled = false
// tasks.findByName("compileCommonMainKotlinMetadata")?.enabled = false
// tasks.findByName("compileKotlinMetadata")?.enabled = false
// TODO: 2021/1/30 如果添加 JVM 到 root module, 这个 task 会失败因 root module artifacts 有变化
// tasks.findByName("generateMetadataFileForKotlinMultiplatformPublication")?.enabled = false // FIXME: 2021/1/21
}
val stubJavadoc = tasks.register("javadocJar", Jar::class) {
@Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
archiveClassifier.set("javadoc")
}
afterEvaluate {
publishing {
logPublishing { "Publications: ${publications.joinToString { it.name }}" }
val (nonJvmPublications, jvmPublications) = publications.filterIsInstance<MavenPublication>()
.partition { publication ->
tasks.findByName(RelocationConfig.taskNameForRelocateDependencies(publication.name)) == null
}
for (publication in nonJvmPublications) {
configureMultiplatformPublication(publication, stubJavadoc, publication.name)
}
for (publication in jvmPublications) {
// publications.remove(publication)
// val newPublication =
// publications.register(publication.name + "Shadowed", MavenPublication::class.java) {
// val target = kotlinTargets.orEmpty().single { it.targetName == publication.name }
// from(target.components.single())
// this.groupId = publication.groupId
// this.artifactId = publication.artifactId
// this.version = publication.version
// artifacts {
// publication.artifacts
// .filter { !(it.classifier.isNullOrEmpty() && it.extension == "jar") } // not .jar
// .forEach { artifact(it) } // copy Kotlin metadata artifacts
// }
// artifacts.removeAll { it.classifier.isNullOrEmpty() && it.extension == "jar" }
// // add relocated jar
// tasks.findByName("relocate${publication.name.titlecase()}Dependencies")?.let { relocation ->
// artifact(relocation) {
// classifier = ""
// extension = "jar"
// }
// }
// }
configureMultiplatformPublication(publication, stubJavadoc, publication.name)
publication.apply {
artifacts.filter { it.classifier.isNullOrEmpty() && it.extension == "jar" }.forEach {
it.builtBy(tasks.findByName(RelocationConfig.taskNameForRelocateDependencies(publication.name)))
}
}
}
}
}
}
private fun Project.configureMultiplatformPublication(
publication: MavenPublication,
stubJavadoc: TaskProvider<Jar>,
moduleName: String,
) {
// Maven Central always require javadoc.jar
publication.artifact(stubJavadoc)
publication.setupPom(project)
logPublishing { publication.name + ": moduleName = $moduleName" }
when (moduleName) {
"kotlinMultiplatform" -> {
publication.artifactId = project.name
// publishPlatformArtifactsInRootModule(publications.getByName("jvm") as MavenPublication)
// TODO: 2021/1/30 现在添加 JVM 到 root module 会导致 Gradle 依赖无法解决
// https://github.com/mamoe/mirai/issues/932
}
"metadata" -> { // TODO: 2021/1/21 seems no use. none `type` is "metadata"
publication.artifactId = "${project.name}-metadata"
}
"jvm" -> {
publication.artifactId = "${project.name}-$moduleName"
useRelocatedPublication(publication, moduleName)
}
else -> {
// "jvm", "native", "js", "common"
publication.artifactId = "${project.name}-$moduleName"
}
}
}
/**
* Creates a new publication and disables [publication].
*/
private fun Project.useRelocatedPublication(
publication: MavenPublication,
moduleName: String
) {
val relocatedPublicationName = RelocationConfig.relocatedPublicationName(publication.name)
registerRelocatedPublication(relocatedPublicationName, publication, moduleName)
logPublishing { "Registered relocated publication `$relocatedPublicationName` for module $moduleName, for project ${project.path}" }
// Add task dependencies
addTaskDependenciesForRelocatedPublication(moduleName, relocatedPublicationName)
val relocateDependencies = tasks.getByName(RelocationConfig.taskNameForRelocateDependencies(moduleName))
configurePatchKotlinModuleMetadataTask(relocatedPublicationName, relocateDependencies, publication.name)
}
private fun Project.registerRelocatedPublication(
relocatedPublicationName: String,
publication: MavenPublication,
moduleName: String
) {
// copy POM XML, since POM contains transitive dependencies
var patched = false
lateinit var oldXmlProvider: XmlProvider
publication.pom.withXml { oldXmlProvider = this }
publications.register(relocatedPublicationName, MavenPublication::class.java) {
this.artifactId = publication.artifactId
this.groupId = publication.groupId
this.version = publication.version
this.artifacts.addAll(publication.artifacts.filterNot { it.classifier == null && it.extension == "jar" })
project.tasks.findByName(RelocationConfig.taskNameForRelocateDependencies(moduleName))
?.let { relocateDependencies ->
this.artifact(relocateDependencies) {
this.classifier = null
this.extension = "jar"
}
}
pom.withXml {
val newXml = this
for (newChild in newXml.asNode().childrenNodes()) {
newXml.asNode().remove(newChild)
}
// Note: `withXml` is lazy, it is evaluated only when `generatePomFileFor...`
for (oldChild in oldXmlProvider.asNode().childrenNodes()) {
newXml.asNode().append(oldChild)
}
removeDependenciesInMavenPom(this)
patched = true
}
}
tasks.matching { it.name.startsWith("publish${relocatedPublicationName.titlecase()}PublicationTo") }.all {
dependsOn("generatePomFileFor${relocatedPublicationName.titlecase()}Publication")
}
tasks.matching { it.name == "generatePomFileFor${relocatedPublicationName.titlecase()}Publication" }.all {
dependsOn(tasks.getByName("generatePomFileFor${publication.name.titlecase()}Publication"))
doLast {
check(patched) { "POM is not patched" }
}
}
}
private fun Project.addTaskDependenciesForRelocatedPublication(moduleName: String, relocatedPublicationName: String) {
val originalTaskNamePrefix = "publish${moduleName.titlecase()}PublicationTo"
val relocatedTaskName = "publish${relocatedPublicationName.titlecase()}PublicationTo"
tasks.configureEach {
if (!name.startsWith(originalTaskNamePrefix)) return@configureEach
val originalTask = this
this.enabled = false
this.description = "${this.description} ([mirai] disabled in favor of $relocatedTaskName)"
val relocatedTasks = project.tasks.filter { it.name.startsWith(relocatedTaskName) }.toTypedArray()
check(relocatedTasks.isNotEmpty()) { "relocatedTasks is empty" }
relocatedTasks.forEach { publishRelocatedPublication ->
publishRelocatedPublication.dependsOn(*this.dependsOn.toTypedArray())
logger.info(
"[Publishing] $publishRelocatedPublication now dependsOn tasks: " +
this.dependsOn.joinToString()
)
}
project.tasks.filter { it.dependsOn.contains(originalTask) }
.forEach { it.dependsOn(*relocatedTasks) }
}
}
// Remove relocated dependencies in Maven pom
private fun Project.removeDependenciesInMavenPom(xmlProvider: XmlProvider) {
xmlProvider.run {
val node = asNode().getSingleChild("dependencies")
val dependencies = node.childrenNodes()
logger.info("[Shadow Relocation] deps: {}", dependencies)
logger.info(
"[Shadow Relocation] All filter notations: {}",
relocationFilters.flatMap { it.notations.notations() }.joinToString("\n")
)
dependencies.forEach { dep ->
val groupId = dep.getSingleChild("groupId").value().toString().removeSurrounding("[", "]")
val artifactId = dep.getSingleChild("artifactId").value().toString().removeSurrounding("[", "]")
logger.info("[Shadow Relocation] Checking $groupId:$artifactId")
if (
relocationFilters.any { filter ->
filter.matchesDependency(groupId = groupId, artifactId = artifactId)
}
) {
logger.info("[Shadow Relocation] Filtering out '$groupId:$artifactId' from pom for project '${project.path}'")
check(node.remove(dep)) { "Failed to remove dependency node" }
}
}
}
}
val publishPlatformArtifactsInRootModule: Project.(MavenPublication) -> Unit = { platformPublication ->
lateinit var platformPomBuilder: XmlProvider
platformPublication.pom.withXml { platformPomBuilder = this }
publications.getByName("kotlinMultiplatform").let { it as MavenPublication }.run {
this.artifacts.removeIf {
it.classifier == null && it.extension == "jar"
// mirai-core\build\libs\mirai-core-2.0.0.jar, classifier=null, ext=jar
}
logPublishing {
"Existing artifacts in kotlinMultiplatform: " +
this.artifacts.joinToString("\n", prefix = "\n") { it.smartToString() }
}
platformPublication.artifacts.forEach {
logPublishing { "Adding artifact to kotlinMultiplatform: ${it.smartToString()}" }
artifact(it)
}
// replace pom
pom.withXml {
val pomStringBuilder = asString()
pomStringBuilder.setLength(0)
platformPomBuilder.toString().lines().forEach { line ->
if (!line.contains("<!--")) { // Remove the Gradle module metadata marker as it will be added anew
pomStringBuilder.append(line.replace(platformPublication.artifactId, artifactId))
pomStringBuilder.append("\n")
}
}
}
}
// TODO: 2021/1/30 root module 问题可能要在这里解决
tasks.matching { it.name == "generatePomFileForKotlinMultiplatformPublication" }.configureEach {
dependsOn(tasks["generatePomFileFor${platformPublication.name.capitalize()}Publication"])
}
}
fun MavenArtifact.smartToString(): String {
return "${file.path}, classifier=${classifier}, ext=${extension}"
}
================================================
FILE: buildSrc/src/main/kotlin/ProjectConfigure.kt
================================================
/*
* Copyright 2019-2023 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
import org.gradle.api.JavaVersion
import org.gradle.api.NamedDomainObjectCollection
import org.gradle.api.NamedDomainObjectList
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginExtension
import org.gradle.api.tasks.bundling.Jar
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.*
import org.jetbrains.kotlin.gradle.dsl.*
import org.jetbrains.kotlin.gradle.plugin.KotlinCompilation
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSet
import org.jetbrains.kotlin.gradle.plugin.KotlinTarget
import org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
private fun Project.jvmVersion(): JavaVersion {
return if (project.path.endsWith("mirai-console-intellij")) {
JavaVersion.VERSION_17
} else {
JavaVersion.VERSION_1_8
}
}
fun Project.optInForAllSourceSets(qualifiedClassname: String) {
kotlinSourceSets!!.all {
languageSettings {
optIn(qualifiedClassname)
}
}
}
fun Project.optInForTestSourceSets(qualifiedClassname: String) {
kotlinSourceSets!!.matching { it.name.contains("test", ignoreCase = true) }.all {
languageSettings {
optIn(qualifiedClassname)
}
}
}
fun Project.enableLanguageFeatureForAllSourceSets(qualifiedClassname: String) {
kotlinSourceSets!!.all {
languageSettings {
this.enableLanguageFeature(qualifiedClassname)
}
}
}
fun Project.enableLanguageFeatureForTestSourceSets(name: String) {
allTestSourceSets {
languageSettings {
this.enableLanguageFeature(name)
}
}
}
fun Project.allTestSourceSets(action: KotlinSourceSet.() -> Unit) {
kotlinSourceSets!!.all {
if (this.name.contains("test", ignoreCase = true)) {
action()
}
}
}
fun Project.preConfigureJvmTarget() {
val defaultVer = jvmVersion()
tasks.withType(KotlinJvmCompile::class.java) {
kotlinOptions.jvmTarget = defaultVer.toString()
kotlinOptions.freeCompilerArgs += "-Xjvm-default=all"
// Support for parallel compilation: https://youtrack.jetbrains.com/issue/KT-46085
// Using /2 processors: jvm and android targets are compiled at the same time, sharing the processors.
// Also reserved 2 processors for Gradle multi-tasking
// On Apple M1 Max parallelism reduces compilation time by 1/3.
// kotlinOptions.freeCompilerArgs += "-Xbackend-threads=" + (Runtime.getRuntime().availableProcessors() / 2 - 1).coerceAtLeast(1)
}
tasks.withType(JavaCompile::class.java) {
sourceCompatibility = defaultVer.toString()
targetCompatibility = defaultVer.toString()
}
}
fun Project.configureJvmTarget() {
val defaultVer = jvmVersion()
extensions.findByType(JavaPluginExtension::class.java)?.run {
sourceCompatibility = defaultVer
targetCompatibility = defaultVer
}
allKotlinTargets().all {
if (this !is KotlinJvmTarget) return@all
this.testRuns["test"].executionTask.configure { useJUnitPlatform() }
}
}
fun Project.configureEncoding() {
tasks.withType(JavaCompile::class.java) {
options.encoding = "UTF8"
}
}
fun Project.configureKotlinTestSettings() {
tasks.withType(Test::class) {
useJUnitPlatform()
}
val b = "Auto-set for project '${project.path}'. (configureKotlinTestSettings)"
when {
isKotlinJvmProject -> {
dependencies {
"testImplementation"(kotlin("test-junit5"))?.because(b)
"testApi"(`junit-jupiter-api`)?.because(b)
"testRuntimeOnly"(`junit-jupiter-engine`)?.because(b)
}
}
isKotlinMpp -> {
kotlinSourceSets?.all {
val sourceSet = this
val target = allKotlinTargets()
.find { it.name == sourceSet.name.substringBeforeLast("Main").substringBeforeLast("Test") }
if (sourceSet.name.contains("test", ignoreCase = true)) {
if (isJvmFinalTarget(target)) {
// For android, this should be done differently. See Android.kt
sourceSet.configureJvmTest(b)
} else {
if (sourceSet.name == "commonTest") {
sourceSet.dependencies {
implementation(kotlin("test"))?.because(b)
implementation(kotlin("test-annotations-common"))?.because(b)
}
} else {
// can be an Android sourceSet
// Do not even add "kotlin-test" for Android sourceSets. IDEA can't resolve them on sync
}
}
}
}
}
}
}
private fun isJvmFinalTarget(target: KotlinTarget?) =
target?.platformType == KotlinPlatformType.jvm &&
target.attributes.getAttribute(MIRAI_PLATFORM_INTERMEDIATE) != true // jvmBase is intermediate
fun KotlinSourceSet.configureJvmTest(because: String) {
dependencies {
implementation(kotlin("test-junit5"))?.because(because)
implementation(`junit-jupiter-api`)?.because(because)
runtimeOnly(`junit-jupiter-engine`)?.because(because)
}
}
private fun isJvmLikePlatform(target: KotlinTarget?) =
target?.platformType == KotlinPlatformType.jvm || target?.platformType == KotlinPlatformType.androidJvm
val testExperimentalAnnotations = arrayOf(
"kotlin.ExperimentalUnsignedTypes",
"kotlin.time.ExperimentalTime",
"io.ktor.util.KtorExperimentalAPI",
"kotlin.io.path.ExperimentalPathApi",
"kotlinx.coroutines.ExperimentalCoroutinesApi",
"kotlinx.serialization.ExperimentalSerializationApi",
"net.mamoe.mirai.utils.TestOnly",
"net.mamoe.mirai.utils.MiraiInternalApi",
"net.mamoe.mirai.utils.MiraiExperimentalApi",
)
val experimentalAnnotations = arrayOf(
"kotlin.contracts.ExperimentalContracts",
"kotlin.experimental.ExperimentalTypeInference",
)
val testLanguageFeatures = listOf(
"ContextReceivers"
)
fun Project.configureKotlinOptIns() {
val sourceSets = kotlinSourceSets ?: return
sourceSets.all {
configureKotlinOptIns()
}
for (name in testLanguageFeatures) {
enableLanguageFeatureForTestSourceSets(name)
}
allTestSourceSets {
languageSettings.languageVersion = Versions.kotlinLanguageVersionForTests
}
}
fun KotlinSourceSet.configureKotlinOptIns() {
languageSettings.progressiveMode = true
experimentalAnnotations.forEach { a ->
languageSettings.optIn(a)
}
if (name.contains("test", ignoreCase = true)) {
testExperimentalAnnotations.forEach { a ->
languageSettings.optIn(a)
}
}
}
fun Project.configureFlattenSourceSets() {
val flatten = extra.runCatching { get("flatten.sourceset") }.getOrNull()?.toString()?.toBoolean() ?: true
if (!flatten) return
sourceSets {
findByName("main")?.apply {
resources.setSrcDirs(listOf(projectDir.resolve("resources")))
java.setSrcDirs(listOf(
gitextract_8c_sgdaa/ ├── .editorconfig ├── .gitattributes ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ ├── bug.yml │ │ ├── config.yml │ │ └── feature.md │ └── workflows/ │ ├── build.yml │ ├── check-publishing.yml │ ├── doc.yml │ └── release.yml ├── .gitignore ├── .run/ │ ├── Check Binary Compatibility.run.xml │ ├── Compile everything.run.xml │ ├── Compile mirai-console.run.xml │ ├── Compile mirai-core for JVM.run.xml │ ├── Dump API Changes for mirai-console-frontend-base.run.xml │ ├── Dump API Changes for mirai-console.run.xml │ ├── Dump API Changes for mirai-core-api.run.xml │ ├── Publish deps test artifacts.run.xml │ ├── Publish local artifacts.run.xml │ ├── Run IDE.run.xml │ ├── Run core tests.run.xml │ ├── RunMessageDecodingRecorderKt.run.xml │ ├── RunRecorderKt.run.xml │ ├── Test everything.run.xml │ ├── Test mirai-console.run.xml │ └── Test mirai-core for JVM.run.xml ├── CONTRIBUTING.md ├── LICENSE ├── README-eng.md ├── README.md ├── build.gradle.kts ├── buildSrc/ │ ├── build.gradle.kts │ ├── settings.gradle.kts │ └── src/ │ └── main/ │ ├── kotlin/ │ │ ├── Android.kt │ │ ├── BinaryCompatibilityConfigurator.kt │ │ ├── DependencyDumper.kt │ │ ├── HmppConfigure.kt │ │ ├── JvmDependencies.kt │ │ ├── JvmPublishing.kt │ │ ├── KotlinMetadataPatcher.kt │ │ ├── LocalProperties.kt │ │ ├── Mpp.kt │ │ ├── MppPublishing.kt │ │ ├── ProjectConfigure.kt │ │ ├── PublishingHelpers.kt │ │ ├── Stdlib.kt │ │ ├── TestDependencies.kt │ │ ├── UpdateSnapshotPage.kt │ │ ├── Versions.kt │ │ ├── analyzes/ │ │ │ ├── AndroidApiLevelCheck.kt │ │ │ ├── AsmUtil.kt │ │ │ ├── CompiledCodeVerify.kt │ │ │ └── NoSuchMethodAnalyzer.kt │ │ ├── explicit-api.gradle.kts │ │ ├── keys/ │ │ │ └── SecretKeys.kt │ │ ├── shadow/ │ │ │ ├── Relocation.kt │ │ │ ├── RelocationConfig.kt │ │ │ └── Shadow.kt │ │ └── utils.kt │ └── resources/ │ ├── androidutil/ │ │ └── api-versions.xml │ ├── binary-compatibility-validator-build.txt │ └── binary-compatibility-validator-ignore.txt ├── ci-release-helper/ │ ├── .gitignore │ ├── build.gradle.kts │ ├── changelogs/ │ │ ├── 2.10.1.md │ │ ├── 2.10.2.md │ │ ├── 2.11.0-M1.md │ │ ├── 2.11.0-RC.md │ │ ├── 2.11.0.md │ │ ├── 2.12.0-RC.md │ │ ├── 2.12.0.md │ │ ├── 2.12.1.md │ │ ├── 2.12.2.md │ │ ├── 2.12.3.md │ │ ├── 2.13.0-M1.md │ │ ├── 2.13.0-RC.md │ │ ├── 2.13.0-RC2.md │ │ ├── 2.13.0.md │ │ ├── 2.13.1.md │ │ ├── 2.13.2.md │ │ ├── 2.13.3.md │ │ ├── 2.13.4.md │ │ ├── 2.14.0-RC.md │ │ ├── 2.14.0.md │ │ ├── 2.15.0-M1.md │ │ └── README.md │ ├── scripts/ │ │ └── kill-java.js │ └── src/ │ ├── CiHelper.kt │ ├── buildIndex/ │ │ ├── Index.kt │ │ └── SnapshotVersions.kt │ └── package.kt ├── docs/ │ ├── .conf/ │ │ └── nav.js │ ├── Bots.md │ ├── ConciseAPI.md │ ├── ConfiguringMultiplatformProjects.md │ ├── ConfiguringProjects.md │ ├── ConsoleTerminal.md │ ├── Contacts.md │ ├── CoreAPI.md │ ├── DebuggingNetwork.md │ ├── EventList.md │ ├── Events.md │ ├── Evolution.md │ ├── KotlinAndJava.md │ ├── Messages.md │ ├── MigrationFrom1x.md │ ├── Preparations.md │ ├── Questions.md │ ├── README.md │ ├── UserManual.md │ ├── UsingSnapshots.md │ ├── contributing/ │ │ ├── ImplementingProtocol.md │ │ ├── README.md │ │ ├── SimpleInstructions.md │ │ ├── VerifyingABI.md │ │ ├── building/ │ │ │ ├── BuildingCoreAndroid.md │ │ │ └── README.md │ │ └── mock/ │ │ └── SpaceAllocation.md │ ├── files/ │ │ └── install-20210412.cmd │ ├── mirai-ecology.md │ ├── mocking/ │ │ └── Mocking.md │ └── src/ │ ├── Contacts.mermaid.md │ └── Messages.mermaid.md ├── gradle/ │ └── wrapper/ │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── gradlew ├── gradlew.bat ├── install.sh ├── logging/ │ ├── README.md │ ├── mirai-logging-log4j2/ │ │ ├── build.gradle.kts │ │ ├── resources/ │ │ │ └── META-INF/ │ │ │ └── services/ │ │ │ └── net.mamoe.mirai.utils.MiraiLogger$Factory │ │ ├── src/ │ │ │ └── MiraiLog4JFactory.kt │ │ └── test/ │ │ └── MiraiLog4JAdapterTest.kt │ ├── mirai-logging-slf4j/ │ │ ├── build.gradle.kts │ │ └── test/ │ │ └── MiraiSlf4JAdapterTest.kt │ ├── mirai-logging-slf4j-logback/ │ │ ├── build.gradle.kts │ │ └── test/ │ │ └── MiraiSlf4JLogbackAdapterTest.kt │ └── mirai-logging-slf4j-simple/ │ ├── build.gradle.kts │ └── test/ │ └── MiraiSlf4JSimpleAdapterTest.kt ├── mirai-bom/ │ └── build.gradle.kts ├── mirai-console/ │ ├── .gitignore │ ├── .gitmodules │ ├── README.md │ ├── backend/ │ │ ├── codegen/ │ │ │ ├── README.md │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── Codegen.kt │ │ │ ├── MessageScopeCodegen.kt │ │ │ ├── ValuePluginDataCodegen.kt │ │ │ ├── old/ │ │ │ │ ├── JSettingCodegen.kt │ │ │ │ ├── SettingValueUseSiteCodegen.kt │ │ │ │ ├── ValueImplCodegen.kt │ │ │ │ └── ValuesCodegen.kt │ │ │ └── util.kt │ │ ├── integration-test/ │ │ │ ├── README.md │ │ │ ├── build.gradle.kts │ │ │ ├── src/ │ │ │ │ ├── AbstractTestPoint.kt │ │ │ │ ├── AbstractTestPointAsPlugin.kt │ │ │ │ ├── IntegrationTestBootstrap.kt │ │ │ │ ├── MiraiConsoleIntegrationTestLauncher.kt │ │ │ │ └── utils.kt │ │ │ ├── test/ │ │ │ │ ├── MiraiConsoleIntegrationTestBootstrap.kt │ │ │ │ └── testpoints/ │ │ │ │ ├── DoNothingPoint.kt │ │ │ │ ├── MCITBSelfAssertions.kt │ │ │ │ ├── PluginSharedLibraries.kt │ │ │ │ └── plugin/ │ │ │ │ ├── PluginDataRenameToIdTest.kt │ │ │ │ ├── PluginDependOnErrorPlugin.kt │ │ │ │ ├── PluginOnDisableCalledOnlyOnceTest.kt │ │ │ │ └── PluginWithExceptionTest.kt │ │ │ └── testers/ │ │ │ ├── .gitignore │ │ │ ├── MCITSelfTestPlugin/ │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ └── src/ │ │ │ │ └── MCITSelfTestPlugin.kt │ │ │ ├── README.md │ │ │ ├── mirai-plugin-compatibility/ │ │ │ │ ├── .module-group.txt │ │ │ │ ├── mirai-jar-after-2_11/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── META-INF/ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ └── src/ │ │ │ │ │ └── After211.kt │ │ │ │ ├── mirai-jar-after-2_11-without-new/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── META-INF/ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ └── src/ │ │ │ │ │ └── After211NoNew.kt │ │ │ │ ├── mirai-jar-before-2_11/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── META-INF/ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ └── src/ │ │ │ │ │ └── Before211.kt │ │ │ │ ├── same-pkg-1/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── META-INF/ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ └── src/ │ │ │ │ │ └── P.kt │ │ │ │ └── same-pkg-2/ │ │ │ │ ├── .nested-module.txt │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ └── src/ │ │ │ │ └── P.kt │ │ │ ├── never-override-jdk-modules/ │ │ │ │ ├── module-jdk-module/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── mvn.txt │ │ │ │ │ └── src/ │ │ │ │ │ └── javax/ │ │ │ │ │ └── xml/ │ │ │ │ │ └── parsers/ │ │ │ │ │ └── SAXParser.kt │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ └── src/ │ │ │ │ └── NeverOverrideJdkModules.kt │ │ │ ├── options-properties/ │ │ │ │ ├── independent-plugin/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── META-INF/ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ └── src/ │ │ │ │ │ └── Independent.kt │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ ├── mirai-console-plugin/ │ │ │ │ │ │ └── options.properties │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ └── src/ │ │ │ │ └── OptionsProperties.kt │ │ │ ├── plugin-can-depends-on-mirai-console/ │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ └── src/ │ │ │ │ └── PluginCanDependsOnMiraiConsole.kt │ │ │ ├── plugin-dep-dependon-dep-issue-2054/ │ │ │ │ ├── module-moda/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── mvn.txt │ │ │ │ │ └── src/ │ │ │ │ │ └── ModuleA.kt │ │ │ │ ├── module-modb/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── mvn.txt │ │ │ │ │ └── src/ │ │ │ │ │ └── ModuleB.kt │ │ │ │ ├── module-private-issue2108/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── mvn.txt │ │ │ │ │ └── src/ │ │ │ │ │ └── PrivateModule.kt │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ ├── second-plugin/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── META-INF/ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ └── src/ │ │ │ │ │ └── PDepDependOnDepSec.kt │ │ │ │ └── src/ │ │ │ │ └── PDepDependOnDep.kt │ │ │ ├── plugin-depend-on-other/ │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ └── src/ │ │ │ │ ├── PluginDependOnOther.kt │ │ │ │ └── issue1920/ │ │ │ │ ├── OtherClass1.kt │ │ │ │ └── OtherClass2.kt │ │ │ ├── plugin-dynamic-dependencies-download/ │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ ├── mirai-console-plugin/ │ │ │ │ │ │ ├── dependencies-private.txt │ │ │ │ │ │ └── dependencies-shared.txt │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ └── src/ │ │ │ │ └── P.kt │ │ │ ├── plugin-resolve-self-dependencies-over-console-ones/ │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ ├── mirai-console-plugin/ │ │ │ │ │ │ └── dependencies-private.txt │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ └── src/ │ │ │ │ └── PluginResolveSelfDependenciesOverConsoleOnes.kt │ │ │ ├── plugin-use-console-deps-fallback/ │ │ │ │ ├── resources/ │ │ │ │ │ └── META-INF/ │ │ │ │ │ └── services/ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ └── src/ │ │ │ │ └── PluginUseConsoleDepsFallback.kt │ │ │ ├── plugin-with-pluginyml/ │ │ │ │ ├── resources/ │ │ │ │ │ ├── META-INF/ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ └── plugin.yml │ │ │ │ └── src/ │ │ │ │ └── PluginWithPluginYml.kt │ │ │ ├── plugin-with-pluginyml-can-use-libraries-while-clinit/ │ │ │ │ ├── clinit-library/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── mvn.txt │ │ │ │ │ └── src/ │ │ │ │ │ └── PluginLibrary.kt │ │ │ │ ├── resources/ │ │ │ │ │ ├── META-INF/ │ │ │ │ │ │ ├── mirai-console-plugin/ │ │ │ │ │ │ │ └── dependencies-private.txt │ │ │ │ │ │ └── services/ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ └── plugin.yml │ │ │ │ └── src/ │ │ │ │ └── PluginWithPluginYmlClinitTest.kt │ │ │ ├── service-loader/ │ │ │ │ ├── module-service-loader-impl/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ ├── META-INF/ │ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ │ └── net.mamoe.console.integrationtest.mod.servicetypedef.ServiceTypedef │ │ │ │ │ │ └── test-res.txt │ │ │ │ │ └── src/ │ │ │ │ │ └── ServiceImpl.kt │ │ │ │ ├── module-service-loader-typedef/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ └── test-res.txt │ │ │ │ │ └── src/ │ │ │ │ │ └── ServiceTypedef.kt │ │ │ │ ├── resources/ │ │ │ │ │ ├── META-INF/ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ └── test-res.txt │ │ │ │ ├── service-loader-2dep-plugin/ │ │ │ │ │ ├── .nested-module.txt │ │ │ │ │ ├── resources/ │ │ │ │ │ │ ├── META-INF/ │ │ │ │ │ │ │ └── services/ │ │ │ │ │ │ │ ├── net.mamoe.console.integrationtest.mod.servicetypedef.ServiceTypedef │ │ │ │ │ │ │ └── net.mamoe.mirai.console.plugin.jvm.JvmPlugin │ │ │ │ │ │ └── test-res.txt │ │ │ │ │ └── src/ │ │ │ │ │ └── PMain.kt │ │ │ │ └── src/ │ │ │ │ └── PMain.kt │ │ │ └── tester.template.gradle.kts │ │ └── mirai-console/ │ │ ├── .gitignore │ │ ├── README.md │ │ ├── build.gradle.kts │ │ ├── compatibility-validation/ │ │ │ └── jvm/ │ │ │ └── api/ │ │ │ └── jvm.api │ │ ├── resources/ │ │ │ └── net/ │ │ │ └── mamoe/ │ │ │ └── mirai/ │ │ │ └── console/ │ │ │ └── internal/ │ │ │ └── enduserreadme/ │ │ │ └── readme.txt │ │ ├── src/ │ │ │ ├── MiraiConsole.kt │ │ │ ├── MiraiConsoleFrontEndDescription.kt │ │ │ ├── MiraiConsoleImplementation.kt │ │ │ ├── command/ │ │ │ │ ├── AbstractCommand.kt │ │ │ │ ├── BuiltInCommands.kt │ │ │ │ ├── Command.kt │ │ │ │ ├── CommandContext.kt │ │ │ │ ├── CommandExecuteResult.kt │ │ │ │ ├── CommandExecutionException.kt │ │ │ │ ├── CommandManager.kt │ │ │ │ ├── CommandOwner.kt │ │ │ │ ├── CommandPermissionDeniedException.kt │ │ │ │ ├── CommandSender.kt │ │ │ │ ├── CompositeCommand.kt │ │ │ │ ├── IllegalCommandArgumentException.kt │ │ │ │ ├── RawCommand.kt │ │ │ │ ├── SimpleCommand.kt │ │ │ │ ├── descriptor/ │ │ │ │ │ ├── CommandArgumentContext.kt │ │ │ │ │ ├── CommandArgumentParserBuiltins.kt │ │ │ │ │ ├── CommandParameter.kt │ │ │ │ │ ├── CommandSignature.kt │ │ │ │ │ ├── CommandValueArgumentParser.kt │ │ │ │ │ ├── Exceptions.kt │ │ │ │ │ ├── ExperimentalCommandDescriptors.kt │ │ │ │ │ └── TypeVariant.kt │ │ │ │ ├── java/ │ │ │ │ │ ├── JCompositeCommand.kt │ │ │ │ │ ├── JRawCommand.kt │ │ │ │ │ └── JSimpleCommand.kt │ │ │ │ ├── parse/ │ │ │ │ │ ├── CommandCall.kt │ │ │ │ │ ├── CommandCallParser.kt │ │ │ │ │ ├── CommandValueArgument.kt │ │ │ │ │ └── SpaceSeparatedCommandCallParser.kt │ │ │ │ └── resolve/ │ │ │ │ ├── BuiltInCommandCallResolver.kt │ │ │ │ ├── CommandCallInterceptor.kt │ │ │ │ ├── CommandCallResolver.kt │ │ │ │ └── ResolvedCommandCall.kt │ │ │ ├── data/ │ │ │ │ ├── AbstractPluginData.kt │ │ │ │ ├── AutoSavePluginConfig.kt │ │ │ │ ├── AutoSavePluginData.kt │ │ │ │ ├── AutoSavePluginDataHolder.kt │ │ │ │ ├── PluginConfig.kt │ │ │ │ ├── PluginData.kt │ │ │ │ ├── PluginDataExtensions.kt │ │ │ │ ├── PluginDataHolder.kt │ │ │ │ ├── PluginDataStorage.kt │ │ │ │ ├── ReadOnlyPluginConfig.kt │ │ │ │ ├── ReadOnlyPluginData.kt │ │ │ │ ├── Value.kt │ │ │ │ ├── ValueDescription.kt │ │ │ │ ├── ValueName.kt │ │ │ │ └── java/ │ │ │ │ ├── JAutoSavePluginConfig.kt │ │ │ │ ├── JAutoSavePluginData.kt │ │ │ │ ├── JavaAutoSavePluginConfig.kt │ │ │ │ └── JavaAutoSavePluginData.kt │ │ │ ├── enduserreadme/ │ │ │ │ └── EndUserReadme.kt │ │ │ ├── events/ │ │ │ │ ├── AutoLoginEvent.kt │ │ │ │ ├── CommandExecutionEvent.kt │ │ │ │ ├── ConsoleEvent.kt │ │ │ │ ├── EndUserReadmeInitializeEvent.kt │ │ │ │ └── StartupEvent.kt │ │ │ ├── extension/ │ │ │ │ ├── ComponentStorage.kt │ │ │ │ ├── Extension.kt │ │ │ │ ├── ExtensionException.kt │ │ │ │ ├── ExtensionPoint.kt │ │ │ │ ├── ExtensionRegistry.kt │ │ │ │ └── PluginComponentStorage.kt │ │ │ ├── extensions/ │ │ │ │ ├── BotConfigurationAlterer.kt │ │ │ │ ├── CommandCallInterceptorProvider.kt │ │ │ │ ├── CommandCallParserProvider.kt │ │ │ │ ├── CommandCallResolverProvider.kt │ │ │ │ ├── PermissionServiceProvider.kt │ │ │ │ ├── PluginLoaderProvider.kt │ │ │ │ ├── PostStartupExtension.kt │ │ │ │ └── SingletonExtensionSelector.kt │ │ │ ├── fontend/ │ │ │ │ ├── DefaultLoggingProcessProgress.kt │ │ │ │ └── ProcessProgress.kt │ │ │ ├── internal/ │ │ │ │ ├── MiraiConsoleBuildConstants.kt.template │ │ │ │ ├── MiraiConsoleImplementationBridge.kt │ │ │ │ ├── auth/ │ │ │ │ │ ├── ConsoleBotAuthorization.kt │ │ │ │ │ └── ConsoleSecretsCalculator.kt │ │ │ │ ├── command/ │ │ │ │ │ ├── CommandManagerImpl.kt │ │ │ │ │ ├── CommandReflector.kt │ │ │ │ │ ├── CommnadConfig.kt │ │ │ │ │ ├── builtin/ │ │ │ │ │ │ └── LoginCommandImpl.kt │ │ │ │ │ └── internal.kt │ │ │ │ ├── data/ │ │ │ │ │ ├── CompositeValueImpl.kt │ │ │ │ │ ├── MemoryPluginDataStorageImpl.kt │ │ │ │ │ ├── MultiFilePluginDataStorageImpl.kt │ │ │ │ │ ├── PluginDataImpl.kt │ │ │ │ │ ├── _PluginData.value.kt │ │ │ │ │ ├── _PrimitiveValueDeclarations.kt │ │ │ │ │ ├── builtins/ │ │ │ │ │ │ ├── AutoLoginConfig.kt │ │ │ │ │ │ ├── ConsoleDataScopeImpl.kt │ │ │ │ │ │ ├── EndUserReadmeData.kt │ │ │ │ │ │ ├── LoggerConfig.kt │ │ │ │ │ │ └── PluginDependenciesConfig.kt │ │ │ │ │ ├── collectionUtil.kt │ │ │ │ │ ├── reflectionUtils.kt │ │ │ │ │ ├── serializerHelper.kt │ │ │ │ │ └── valueFromKTypeImpl.kt │ │ │ │ ├── enduserreadme/ │ │ │ │ │ └── EndUserReadmeProcessor.kt │ │ │ │ ├── extension/ │ │ │ │ │ ├── ComponentStorageInternal.kt │ │ │ │ │ └── SingletonExtensionSelectorImpl.kt │ │ │ │ ├── logging/ │ │ │ │ │ ├── LazyInitMiraiLogger.kt │ │ │ │ │ ├── LoggerControllerImpl.kt │ │ │ │ │ ├── MiraiConsoleLogger.kt │ │ │ │ │ └── externalbind/ │ │ │ │ │ └── slf4j/ │ │ │ │ │ ├── MiraiConsoleSLF4JService.kt │ │ │ │ │ └── SLF4JAdapterLogger.kt │ │ │ │ ├── permission/ │ │ │ │ │ ├── AbstractConcurrentPermissionService.kt │ │ │ │ │ ├── BuiltInPermissionServices.kt │ │ │ │ │ └── parseFromStringImpl.kt │ │ │ │ ├── plugin/ │ │ │ │ │ ├── AllDependenciesClassesHolder.kt │ │ │ │ │ ├── BuiltInJvmPluginLoaderImpl.kt │ │ │ │ │ ├── Exceptions.kt │ │ │ │ │ ├── ExportManagerImpl.kt │ │ │ │ │ ├── JvmPluginClassLoader.kt │ │ │ │ │ ├── JvmPluginDependencyDownload.kt │ │ │ │ │ ├── JvmPluginInternal.kt │ │ │ │ │ ├── JvmPluginTesting.kt │ │ │ │ │ ├── MiraiConsoleAsPlugin.kt │ │ │ │ │ ├── NotYetLoadedJvmPlugin.kt │ │ │ │ │ ├── PluginDescriptionUtil.kt │ │ │ │ │ └── PluginManagerImpl.kt │ │ │ │ ├── shutdown/ │ │ │ │ │ └── ShutdownDaemon.kt │ │ │ │ └── util/ │ │ │ │ ├── CommonUtils.kt │ │ │ │ ├── ConsoleInputImpl.kt │ │ │ │ ├── JavaPluginSchedulerImpl.kt │ │ │ │ ├── PluginServiceHelper.kt │ │ │ │ └── semver/ │ │ │ │ ├── RequirementInternal.kt │ │ │ │ ├── RequirementParser.kt │ │ │ │ └── SemVersionInternal.kt │ │ │ ├── logging/ │ │ │ │ ├── AbstractLoggerController.kt │ │ │ │ └── LoggerController.kt │ │ │ ├── permission/ │ │ │ │ ├── Permission.kt │ │ │ │ ├── PermissionId.kt │ │ │ │ ├── PermissionIdNamespace.kt │ │ │ │ ├── PermissionImplementation.kt │ │ │ │ ├── PermissionRegistryConflictException.kt │ │ │ │ ├── PermissionService.kt │ │ │ │ ├── Permittee.kt │ │ │ │ └── PermitteeId.kt │ │ │ ├── plugin/ │ │ │ │ ├── NotYetLoadedPlugin.kt │ │ │ │ ├── Plugin.kt │ │ │ │ ├── PluginFileExtensions.kt │ │ │ │ ├── PluginManager.kt │ │ │ │ ├── ResourceContainer.kt │ │ │ │ ├── center/ │ │ │ │ │ └── PluginCenter.kt │ │ │ │ ├── description/ │ │ │ │ │ ├── IllegalPluginDescriptionException.kt │ │ │ │ │ ├── PluginDependency.kt │ │ │ │ │ └── PluginDescription.kt │ │ │ │ ├── jvm/ │ │ │ │ │ ├── AbstractJvmPlugin.kt │ │ │ │ │ ├── ExportManager.kt │ │ │ │ │ ├── JavaPlugin.kt │ │ │ │ │ ├── JavaPluginScheduler.kt │ │ │ │ │ ├── JvmPlugin.kt │ │ │ │ │ ├── JvmPluginClasspath.kt │ │ │ │ │ ├── JvmPluginDescription.kt │ │ │ │ │ ├── JvmPluginLoader.kt │ │ │ │ │ └── KotlinPlugin.kt │ │ │ │ └── loader/ │ │ │ │ ├── FilePluginLoader.kt │ │ │ │ ├── PluginLoadException.kt │ │ │ │ └── PluginLoader.kt │ │ │ └── util/ │ │ │ ├── Annotations.kt │ │ │ ├── AnsiMessageBuilder.kt │ │ │ ├── ConsoleInput.kt │ │ │ ├── ContactUtils.kt │ │ │ ├── CoroutineScopeUtils.kt │ │ │ ├── MemoryFormat.kt │ │ │ ├── MessageScope.kt │ │ │ ├── MessageUtils.kt │ │ │ ├── SemVersion.kt │ │ │ ├── StandardUtils.kt │ │ │ └── retryCatching.kt │ │ ├── test/ │ │ │ ├── TestMiraiConosle.kt │ │ │ ├── command/ │ │ │ │ ├── AbstractCommandTest.kt │ │ │ │ ├── CommandContextTest.kt │ │ │ │ ├── CommandValueArgumentContextTest.kt │ │ │ │ ├── InstanceTestCommand.kt │ │ │ │ ├── JSimpleTest.java │ │ │ │ └── commanTestingUtil.kt │ │ │ ├── configuration/ │ │ │ │ └── AutoLoginTest.kt │ │ │ ├── data/ │ │ │ │ ├── JAutoSavePluginDataTest.kt │ │ │ │ ├── JavaPluginDescriptionTests.kt │ │ │ │ ├── MultiFilePluginDataStorageImplTests.kt │ │ │ │ ├── PluginDataTest.kt │ │ │ │ └── PluginMovingTests.kt │ │ │ ├── extension/ │ │ │ │ └── GlobalComponentStorageTest.kt │ │ │ ├── logging/ │ │ │ │ ├── TestAbstractLoggerController.kt │ │ │ │ └── TestAbstractLoggerController_PathBased.kt │ │ │ ├── permission/ │ │ │ │ ├── PermissionServiceTest.kt │ │ │ │ └── PermissionsBasicsTest.kt │ │ │ ├── plugin/ │ │ │ │ ├── BuiltInJvmPluginLoaderImplTest.kt │ │ │ │ └── PluginLoadingOrderTest.kt │ │ │ ├── testFramework/ │ │ │ │ ├── AbstractConsoleInstanceTest.kt │ │ │ │ ├── MockConsoleImplementation.kt │ │ │ │ └── test/ │ │ │ │ └── FrameworkInstanceTest.kt │ │ │ └── util/ │ │ │ ├── TestCoroutineUtils.kt │ │ │ └── TestSemVersion.kt │ │ └── testResources/ │ │ └── META-INF/ │ │ └── services/ │ │ └── org.slf4j.spi.SLF4JServiceProvider │ ├── docs/ │ │ ├── .conf/ │ │ │ └── nav.js │ │ ├── Appendix.md │ │ ├── BuiltInCommands.md │ │ ├── Commands.md │ │ ├── ConfiguringProjects.md │ │ ├── Contributing.md │ │ ├── Extensions.md │ │ ├── FrontEnd.md │ │ ├── Logging.md │ │ ├── Permissions.md │ │ ├── PluginData.md │ │ ├── QA.md │ │ ├── README.md │ │ ├── Run.md │ │ └── plugin/ │ │ ├── JVMPlugin-Appendix.md │ │ ├── JVMPlugin-DataExchange.md │ │ ├── JVMPlugin-Debug.md │ │ ├── JVMPlugin.md │ │ └── Plugins.md │ ├── frontend/ │ │ ├── mirai-android/ │ │ │ ├── .github/ │ │ │ │ ├── ISSUE_TEMPLATE/ │ │ │ │ │ └── bug_report.md │ │ │ │ └── workflows/ │ │ │ │ └── android.yml │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── app/ │ │ │ │ ├── .gitignore │ │ │ │ ├── build.gradle │ │ │ │ ├── libs/ │ │ │ │ │ ├── d8.jar │ │ │ │ │ ├── giteeman-0.2.3.jar │ │ │ │ │ ├── mirai-console-0.5.2.jar │ │ │ │ │ └── mirai-js-1.0.0.jar │ │ │ │ ├── proguard-rules.pro │ │ │ │ └── src/ │ │ │ │ ├── androidTest/ │ │ │ │ │ └── java/ │ │ │ │ │ └── io/ │ │ │ │ │ └── github/ │ │ │ │ │ └── mzdluo123/ │ │ │ │ │ └── mirai/ │ │ │ │ │ └── android/ │ │ │ │ │ ├── TestWithIdleResources.kt │ │ │ │ │ ├── activity/ │ │ │ │ │ │ └── NavTest.kt │ │ │ │ │ ├── console/ │ │ │ │ │ │ ├── ConsoleIntentTest.kt │ │ │ │ │ │ └── ConsoleTest.kt │ │ │ │ │ ├── script/ │ │ │ │ │ │ └── ScriptManageTest.kt │ │ │ │ │ └── utils.kt │ │ │ │ └── main/ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── aidl/ │ │ │ │ │ └── io/ │ │ │ │ │ └── github/ │ │ │ │ │ └── mzdluo123/ │ │ │ │ │ └── mirai/ │ │ │ │ │ └── android/ │ │ │ │ │ └── IbotAidlInterface.aidl │ │ │ │ ├── java/ │ │ │ │ │ ├── io/ │ │ │ │ │ │ └── github/ │ │ │ │ │ │ └── mzdluo123/ │ │ │ │ │ │ └── mirai/ │ │ │ │ │ │ └── android/ │ │ │ │ │ │ ├── AppSettings.kt │ │ │ │ │ │ ├── BotApplication.kt │ │ │ │ │ │ ├── IdleResources.kt │ │ │ │ │ │ ├── NotificationFactory.kt │ │ │ │ │ │ ├── activity/ │ │ │ │ │ │ │ ├── CaptchaActivity.kt │ │ │ │ │ │ │ ├── MainActivity.kt │ │ │ │ │ │ │ ├── PluginImportActivity.kt │ │ │ │ │ │ │ └── UnsafeLoginActivity.kt │ │ │ │ │ │ ├── crash/ │ │ │ │ │ │ │ ├── MiraiAndroidReportSender.kt │ │ │ │ │ │ │ └── MiraiAndroidReportSenderFactory.kt │ │ │ │ │ │ ├── miraiconsole/ │ │ │ │ │ │ │ ├── AndroidLoginSolver.kt │ │ │ │ │ │ │ └── AndroidMiraiConsole.kt │ │ │ │ │ │ ├── receiver/ │ │ │ │ │ │ │ ├── BootReceiver.kt │ │ │ │ │ │ │ └── PushMsgReceiver.kt │ │ │ │ │ │ ├── script/ │ │ │ │ │ │ │ ├── JavaScriptHost.kt │ │ │ │ │ │ │ ├── LuaScriptHost.kt │ │ │ │ │ │ │ ├── ScriptHost.kt │ │ │ │ │ │ │ ├── ScriptHostFactory.kt │ │ │ │ │ │ │ └── ScriptManager.kt │ │ │ │ │ │ ├── service/ │ │ │ │ │ │ │ ├── BotService.kt │ │ │ │ │ │ │ └── ServiceConnector.kt │ │ │ │ │ │ ├── ui/ │ │ │ │ │ │ │ ├── about/ │ │ │ │ │ │ │ │ └── AboutFragment.kt │ │ │ │ │ │ │ ├── console/ │ │ │ │ │ │ │ │ └── ConsoleFragment.kt │ │ │ │ │ │ │ ├── plugin/ │ │ │ │ │ │ │ │ ├── PluginFragment.kt │ │ │ │ │ │ │ │ └── PluginViewModel.kt │ │ │ │ │ │ │ ├── script/ │ │ │ │ │ │ │ │ ├── ScriptCenterFragment.kt │ │ │ │ │ │ │ │ ├── ScriptCenterListAdapter.kt │ │ │ │ │ │ │ │ ├── ScriptCenterViewModel.kt │ │ │ │ │ │ │ │ ├── ScriptFragment.kt │ │ │ │ │ │ │ │ ├── ScriptInfoDialogFragment.kt │ │ │ │ │ │ │ │ ├── ScriptListAdapter.kt │ │ │ │ │ │ │ │ └── ScriptViewModel.kt │ │ │ │ │ │ │ └── setting/ │ │ │ │ │ │ │ └── SettingFragment.kt │ │ │ │ │ │ └── utils/ │ │ │ │ │ │ ├── CommandFastRegister.kt │ │ │ │ │ │ ├── DeviceStatus.java │ │ │ │ │ │ ├── DexCompiler.java │ │ │ │ │ │ ├── LoopQueue.java │ │ │ │ │ │ ├── MiraiAndroidStatus.kt │ │ │ │ │ │ ├── TextSharer.kt │ │ │ │ │ │ ├── dnsQuery.kt │ │ │ │ │ │ ├── fileUtils.kt │ │ │ │ │ │ └── pasteBin.kt │ │ │ │ │ └── java/ │ │ │ │ │ └── awt/ │ │ │ │ │ └── image/ │ │ │ │ │ └── BufferedImage.java │ │ │ │ └── res/ │ │ │ │ ├── color/ │ │ │ │ │ └── color_drawer_item.xml │ │ │ │ ├── drawable/ │ │ │ │ │ ├── ic_add_white_24dp.xml │ │ │ │ │ ├── ic_android_24.xml │ │ │ │ │ ├── ic_baseline_folder_24.xml │ │ │ │ │ ├── ic_baseline_insert_drive_file_24.xml │ │ │ │ │ ├── ic_baseline_keyboard_arrow_up_24.xml │ │ │ │ │ ├── ic_baseline_publish_24.xml │ │ │ │ │ ├── ic_battery_alert_24.xml │ │ │ │ │ ├── ic_chat_bubble_black_24dp.xml │ │ │ │ │ ├── ic_check_white_24dp.xml │ │ │ │ │ ├── ic_delete_black_24dp.xml │ │ │ │ │ ├── ic_desktop_windows_black_24dp.xml │ │ │ │ │ ├── ic_edit_black_24dp.xml │ │ │ │ │ ├── ic_exit_to_app_24dp.xml │ │ │ │ │ ├── ic_extension_black_24dp.xml │ │ │ │ │ ├── ic_info_black_24dp.xml │ │ │ │ │ ├── ic_insert_drive_file_black_24dp.xml │ │ │ │ │ ├── ic_keyboard_arrow_down_black_24dp.xml │ │ │ │ │ ├── ic_keyboard_return_black_24dp.xml │ │ │ │ │ ├── ic_launcher_background.xml │ │ │ │ │ ├── ic_local_printshop_24.xml │ │ │ │ │ ├── ic_new_launcher_foreground.xml │ │ │ │ │ ├── ic_refresh_black_24dp.xml │ │ │ │ │ ├── ic_restore_24.xml │ │ │ │ │ ├── ic_save_black_24dp.xml │ │ │ │ │ ├── ic_settings_black_24dp.xml │ │ │ │ │ ├── ic_share_24.xml │ │ │ │ │ ├── ic_store_white_24.xml │ │ │ │ │ ├── icon.xml │ │ │ │ │ ├── loading_background.xml │ │ │ │ │ └── side_nav_bar.xml │ │ │ │ ├── drawable-v24/ │ │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ ├── layout/ │ │ │ │ │ ├── activity_captcha.xml │ │ │ │ │ ├── activity_main.xml │ │ │ │ │ ├── activity_plugin_import.xml │ │ │ │ │ ├── activity_unsafe_login.xml │ │ │ │ │ ├── app_bar_main.xml │ │ │ │ │ ├── content_main.xml │ │ │ │ │ ├── dialog_ask_filename.xml │ │ │ │ │ ├── dialog_autologin.xml │ │ │ │ │ ├── dialog_script_info.xml │ │ │ │ │ ├── fragment_about.xml │ │ │ │ │ ├── fragment_home.xml │ │ │ │ │ ├── fragment_plugin.xml │ │ │ │ │ ├── fragment_script.xml │ │ │ │ │ ├── fragment_script_center.xml │ │ │ │ │ ├── fragment_script_center_empty.xml │ │ │ │ │ ├── fragment_script_empty.xml │ │ │ │ │ ├── item_plugin.xml │ │ │ │ │ ├── item_script.xml │ │ │ │ │ ├── item_script_center_list.xml │ │ │ │ │ └── nav_header_main.xml │ │ │ │ ├── menu/ │ │ │ │ │ ├── menu_activity_main_drawer.xml │ │ │ │ │ ├── menu_console.xml │ │ │ │ │ ├── menu_script.xml │ │ │ │ │ ├── menu_script_center.xml │ │ │ │ │ ├── plugin_add.xml │ │ │ │ │ ├── plugin_manage.xml │ │ │ │ │ └── unsafe_menu.xml │ │ │ │ ├── mipmap-anydpi-v26/ │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ ├── ic_launcher_round.xml │ │ │ │ │ ├── ic_new_launcher.xml │ │ │ │ │ └── ic_new_launcher_round.xml │ │ │ │ ├── navigation/ │ │ │ │ │ └── mobile_navigation.xml │ │ │ │ ├── values/ │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ ├── ic_new_launcher_background.xml │ │ │ │ │ ├── strings.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── values-night/ │ │ │ │ │ └── colors-night.xml │ │ │ │ ├── values-v21/ │ │ │ │ │ └── styles.xml │ │ │ │ ├── values-v29/ │ │ │ │ │ └── styles.xml │ │ │ │ └── xml/ │ │ │ │ ├── path_script.xml │ │ │ │ └── setting_screen.xml │ │ │ ├── build.gradle │ │ │ ├── gradle/ │ │ │ │ └── wrapper/ │ │ │ │ ├── gradle-wrapper.jar │ │ │ │ └── gradle-wrapper.properties │ │ │ ├── gradle.properties │ │ │ ├── gradlew │ │ │ ├── gradlew.bat │ │ │ └── settings.gradle │ │ ├── mirai-console-frontend-base/ │ │ │ ├── build.gradle.kts │ │ │ ├── compatibility-validation/ │ │ │ │ └── jvm/ │ │ │ │ └── api/ │ │ │ │ └── jvm.api │ │ │ ├── resources/ │ │ │ │ └── META-INF/ │ │ │ │ └── services/ │ │ │ │ └── org.slf4j.spi.SLF4JServiceProvider │ │ │ ├── src/ │ │ │ │ ├── AbstractMiraiConsoleFrontendImplementation.kt │ │ │ │ ├── FrontendBase.kt │ │ │ │ ├── RepipedMessageForward.kt │ │ │ │ ├── logging/ │ │ │ │ │ └── LogRecorder.kt │ │ │ │ └── package.kt │ │ │ └── test/ │ │ │ ├── RepipedMessageForwardTest.kt │ │ │ └── package.kt │ │ └── mirai-console-terminal/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ ├── src/ │ │ │ ├── BufferedOutputStream.kt │ │ │ ├── ConsoleInputImpl.kt │ │ │ ├── ConsoleTerminalSettings.kt │ │ │ ├── ConsoleThread.kt │ │ │ ├── JLineInputDaemon.kt │ │ │ ├── LoggingService.kt │ │ │ ├── MiraiConsoleImplementationTerminal.kt │ │ │ ├── MiraiConsoleTerminalLoader.kt │ │ │ ├── TerminalProcessProgress.kt │ │ │ ├── net/ │ │ │ │ └── mamoe/ │ │ │ │ └── mirai/ │ │ │ │ └── console/ │ │ │ │ └── pure/ │ │ │ │ └── MiraiConsolePureLoader.kt │ │ │ └── noconsole/ │ │ │ └── NoConsole.kt │ │ └── test/ │ │ └── RunTerminal.kt │ └── tools/ │ ├── compiler-annotations/ │ │ ├── README.md │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── commonMain/ │ │ └── kotlin/ │ │ ├── CheckerConstants.kt │ │ ├── ResolveContext.kt │ │ └── RestrictedScope.kt │ ├── compiler-common/ │ │ ├── README.md │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── diagnostics/ │ │ │ ├── MiraiConsoleErrors.kt │ │ │ └── MiraiConsoleErrorsRendering.kt │ │ ├── resolve/ │ │ │ ├── resolveCommon.kt │ │ │ └── resolveTypes.kt │ │ └── utilCommon.kt │ ├── gradle-plugin/ │ │ ├── .gitignore │ │ ├── README.md │ │ ├── build.gradle.kts │ │ ├── gradle.properties │ │ ├── src/ │ │ │ ├── integTest/ │ │ │ │ └── kotlin/ │ │ │ │ ├── AbstractTest.kt │ │ │ │ ├── KotlinTransitiveDependenciesIntegrationTest.kt │ │ │ │ ├── TestBuildPlugin.kt │ │ │ │ └── TestPluginApply.kt │ │ │ └── main/ │ │ │ └── kotlin/ │ │ │ ├── BuildMiraiPluginTask.kt │ │ │ ├── BuildMiraiPluginV2.kt │ │ │ ├── IGNORED_DEPENDENCIES_IN_SHADOW.kt │ │ │ ├── MiraiConsoleExtension.kt │ │ │ ├── MiraiConsoleGradlePlugin.kt │ │ │ ├── VersionConstants.kt.template │ │ │ ├── dsl.kt │ │ │ └── publishing.kt │ │ └── test/ │ │ └── net/ │ │ └── mamoe/ │ │ └── mirai/ │ │ └── console/ │ │ └── gradle/ │ │ ├── AbstractTest.groovy │ │ └── TestPluginApply.groovy │ └── intellij-plugin/ │ ├── .gitignore │ ├── README.md │ ├── build.gradle.kts │ ├── gradle.properties │ ├── libs/ │ │ └── ide-common.jar │ ├── resources/ │ │ ├── META-INF/ │ │ │ └── plugin.xml │ │ ├── fileTemplates/ │ │ │ └── code/ │ │ │ ├── .gitignore.ft │ │ │ ├── .gitignore.html │ │ │ ├── Gradle gradle-wrapper.properties.ft │ │ │ ├── Gradle gradle-wrapper.properties.html │ │ │ ├── Gradle gradle.properties.ft │ │ │ ├── Gradle gradle.properties.html │ │ │ ├── Plugin build.gradle.ft │ │ │ ├── Plugin build.gradle.html │ │ │ ├── Plugin build.gradle.kts.ft │ │ │ ├── Plugin build.gradle.kts.html │ │ │ ├── Plugin main class Java.java.ft │ │ │ ├── Plugin main class Java.java.ft.back │ │ │ ├── Plugin main class Java.java.html │ │ │ ├── Plugin main class Kotlin.kt.ft │ │ │ ├── Plugin main class Kotlin.kt.html │ │ │ ├── Plugin main service.txt.ft │ │ │ ├── Plugin main service.txt.html │ │ │ ├── Plugin settings.gradle.ft │ │ │ ├── Plugin settings.gradle.html │ │ │ ├── Plugin settings.gradle.kts.ft │ │ │ ├── Plugin settings.gradle.kts.html │ │ │ ├── RunTerminal.run.xml.ft │ │ │ ├── RunTerminal.run.xml.html │ │ │ ├── account.properties.ft │ │ │ └── account.properties.html │ │ ├── inspectionDescriptions/ │ │ │ ├── PluginMainServiceNotConfigured.html │ │ │ ├── ResourceNotClosed.html │ │ │ └── UsingStringPlusMessage.html │ │ ├── intentionDescriptions/ │ │ │ ├── WrapWithResourceUseCallIntention/ │ │ │ │ ├── after.receiver.template │ │ │ │ ├── before.receiver.template │ │ │ │ └── description.html │ │ │ └── WrapWithResourceUseCallJavaIntention/ │ │ │ ├── after.action.template │ │ │ ├── before.action.template │ │ │ └── description.html │ │ └── messages/ │ │ ├── InspectionGadgetsBundle.properties │ │ ├── InspectionsBundle.properties │ │ ├── MiraiProjectWizardBundle.properties │ │ └── MiraiProjectWizardBundle_zh.properties │ ├── run/ │ │ └── projects/ │ │ ├── .gitignore │ │ └── test-project/ │ │ ├── build.gradle.kts │ │ ├── gradle/ │ │ │ └── wrapper/ │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ │ ├── gradle.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ ├── settings.gradle.kts │ │ └── src/ │ │ ├── main/ │ │ │ ├── java/ │ │ │ │ └── test/ │ │ │ │ ├── ResourceNotClosedInspectionTestJava.java │ │ │ │ └── TestJavaPlugin.java │ │ │ └── kotlin/ │ │ │ └── org/ │ │ │ └── example/ │ │ │ └── myplugin/ │ │ │ ├── AbstractMessageKeysUsages.kt │ │ │ ├── ConsoleCommandOwnerCheck.kt │ │ │ ├── MyPluginMain.kt │ │ │ ├── MySimpleCommand.kt │ │ │ ├── ReadOnlyPluginDataVar.kt │ │ │ ├── ResourceNotClosedInspectionTest.kt │ │ │ ├── StringPlusMessageInspectionTest.kt │ │ │ ├── UsingDerivedMap.kt │ │ │ └── WrapWithResourceUseCallIntentionTest.kt │ │ └── test/ │ │ └── kotlin/ │ │ └── RunConsole.kt │ ├── src/ │ │ ├── IDEContainerContributor.kt │ │ ├── QuickFixRegistrar.kt │ │ ├── assets/ │ │ │ ├── Assets.kt │ │ │ └── FileTemplateRegistrar.kt │ │ ├── diagnostics/ │ │ │ ├── CommandDeclarationChecker.kt │ │ │ ├── ContextualParametersChecker.kt │ │ │ ├── MessageChainGetCallChecker.kt │ │ │ ├── PluginDataValuesChecker.kt │ │ │ ├── PluginMainServiceNotConfiguredInspection.kt │ │ │ ├── QuickFixUtils.kt │ │ │ ├── ResourceNotClosedInspection.kt │ │ │ ├── TaskUtils.kt │ │ │ ├── UsingStringPlusMessageInspection.kt │ │ │ ├── diagnosticsUtil.kt │ │ │ └── fix/ │ │ │ ├── AbuseYellowIntention.kt │ │ │ ├── AddSerializerFix.kt │ │ │ ├── ConfigurePluginMainServiceFix.kt │ │ │ ├── ConvertToValFix.kt │ │ │ ├── ProvideDefaultValueFix.kt │ │ │ ├── TypeProjectionFix.kt │ │ │ └── WrapWithResourceUseCallIntention.kt │ │ ├── line/ │ │ │ └── marker/ │ │ │ ├── CommandDeclarationLineMarkerProvider.kt │ │ │ └── PluginMainLineMarkerProvider.kt │ │ ├── resolve/ │ │ │ ├── FunctionSignature.kt │ │ │ ├── ReceiverExpression.kt │ │ │ └── resolveIdea.kt │ │ ├── util/ │ │ │ ├── RequirementHelper.kt │ │ │ ├── RequirementParser.kt │ │ │ └── RunIgnoringErrors.kt │ │ └── wizard/ │ │ ├── BuildSystemType.kt │ │ ├── KotlinStdlibVersion.kt │ │ ├── LanguageType.kt │ │ ├── MiraiModuleBuilder.kt │ │ ├── MiraiModuleType.kt │ │ ├── MiraiProjectModel.kt │ │ ├── MiraiProjectWizardInitialStep.kt │ │ ├── MiraiValidations.kt │ │ ├── MiraiVersion.kt │ │ ├── MiraiWizardBundle.kt │ │ └── ProjectAssetsProvider.kt │ └── test/ │ ├── creator/ │ │ ├── MiraiVersionKindTest.kt │ │ └── tasks/ │ │ └── TaskUtilsKtTest.kt │ └── package.kt ├── mirai-core/ │ ├── .gitignore │ ├── README.md │ ├── build.gradle.kts │ ├── compatibility-validation/ │ │ ├── android/ │ │ │ └── api/ │ │ │ └── android.api │ │ └── jvm/ │ │ └── api/ │ │ └── jvm.api │ └── src/ │ ├── androidInstrumentedTest/ │ │ └── kotlin/ │ │ ├── package.kt │ │ ├── test/ │ │ │ └── initializeTestJvm.kt │ │ └── testFramework/ │ │ └── currentPlatform.kt │ ├── androidMain/ │ │ ├── AndroidManifest.xml │ │ └── kotlin/ │ │ ├── package.kt │ │ └── utils/ │ │ └── crypto/ │ │ └── EcdhAndroid.kt │ ├── androidUnitTest/ │ │ └── kotlin/ │ │ ├── package.kt │ │ ├── test/ │ │ │ ├── Logger.kt │ │ │ └── initializeTestJvm.kt │ │ └── testFramework/ │ │ └── currentPlatform.kt │ ├── commonMain/ │ │ ├── kotlin/ │ │ │ ├── AbstractBot.kt │ │ │ ├── BotAccount.kt │ │ │ ├── BotFactory.kt │ │ │ ├── MiraiImpl.kt │ │ │ ├── QQAndroidBot.kt │ │ │ ├── contact/ │ │ │ │ ├── AbstractContact.kt │ │ │ │ ├── AbstractMember.kt │ │ │ │ ├── AbstractUser.kt │ │ │ │ ├── AnonymousMemberImpl.kt │ │ │ │ ├── ContactAware.kt │ │ │ │ ├── FriendImpl.kt │ │ │ │ ├── GroupImpl.kt │ │ │ │ ├── GroupSendMessageImpl.kt │ │ │ │ ├── GroupSettingsImpl.kt │ │ │ │ ├── MemberActiveImpl.kt │ │ │ │ ├── NormalMemberImpl.kt │ │ │ │ ├── OnlineAnnouncementImpl.kt │ │ │ │ ├── OtherClientImpl.kt │ │ │ │ ├── SendMessageHandler.kt │ │ │ │ ├── StrangerImpl.kt │ │ │ │ ├── active/ │ │ │ │ │ ├── GroupActiveImpl.kt │ │ │ │ │ └── GroupActiveProtocol.kt │ │ │ │ ├── announcement/ │ │ │ │ │ ├── AnnouncementsImpl.kt │ │ │ │ │ └── GroupAnnouncement.kt │ │ │ │ ├── essence/ │ │ │ │ │ ├── EssencesImpl.kt │ │ │ │ │ └── GroupDigestProtocol.kt │ │ │ │ ├── file/ │ │ │ │ │ ├── AbsoluteFileImpl.kt │ │ │ │ │ ├── AbsoluteFolderImpl.kt │ │ │ │ │ ├── AbstractAbsoluteFileFolder.kt │ │ │ │ │ ├── FileProtocol.kt │ │ │ │ │ └── RemoteFilesImpl.kt │ │ │ │ ├── friendgroup/ │ │ │ │ │ ├── FriendGroupImpl.kt │ │ │ │ │ └── FriendGroupsImpl.kt │ │ │ │ ├── info/ │ │ │ │ │ ├── FriendGroupInfo.kt │ │ │ │ │ ├── FriendInfoImpl.kt │ │ │ │ │ ├── GroupInfoImpl.kt │ │ │ │ │ ├── MemberInfoImpl.kt │ │ │ │ │ └── StrangerInfoImpl.kt │ │ │ │ ├── roaming/ │ │ │ │ │ ├── AbstractRoamingMessages.kt │ │ │ │ │ ├── RoamingMessagesImplFriend.kt │ │ │ │ │ ├── RoamingMessagesImplGroup.kt │ │ │ │ │ └── TimeBasedRoamingMessagesImpl.kt │ │ │ │ └── util.kt │ │ │ ├── event/ │ │ │ │ ├── EventChannelImpl.kt │ │ │ │ ├── EventChannelToEventDispatcherAdapter.kt │ │ │ │ ├── EventListeners.kt │ │ │ │ ├── GlobalEventChannelProviderImpl.kt │ │ │ │ ├── SafeListener.kt │ │ │ │ └── package.kt │ │ │ ├── message/ │ │ │ │ ├── ReceiveMessageHandler.kt │ │ │ │ ├── RefinableMessage.kt │ │ │ │ ├── atImpl.kt │ │ │ │ ├── contextualBugReportException.kt │ │ │ │ ├── data/ │ │ │ │ │ ├── FileMessageImpl.kt │ │ │ │ │ ├── LongMessageInternal.kt │ │ │ │ │ ├── MarketFaceImpl.kt │ │ │ │ │ ├── MessageChainBuilderExt.kt │ │ │ │ │ ├── MessageSourceExt.kt │ │ │ │ │ ├── MultiMsgUploader.kt │ │ │ │ │ ├── UnsupportedMessageImpl.kt │ │ │ │ │ ├── audio.kt │ │ │ │ │ ├── lightApp.kt │ │ │ │ │ └── shortVideo.kt │ │ │ │ ├── faceImpl.kt │ │ │ │ ├── flags/ │ │ │ │ │ └── InternalFlagOnlyMessage.kt │ │ │ │ ├── image/ │ │ │ │ │ ├── AbstractImage.kt │ │ │ │ │ ├── ImageDecoder.kt │ │ │ │ │ ├── ImageInfo.kt │ │ │ │ │ ├── ImageUrlAware.kt │ │ │ │ │ ├── InternalImageProtocolImpl.kt │ │ │ │ │ ├── InternalShortVideoProtocolImpl.kt │ │ │ │ │ ├── OfflineImage.kt │ │ │ │ │ ├── OnlineImage.kt │ │ │ │ │ └── jceData.kt │ │ │ │ ├── imagesImpl.kt │ │ │ │ ├── messageToElems.kt │ │ │ │ ├── protocol/ │ │ │ │ │ ├── MessageProtocol.kt │ │ │ │ │ ├── MessageProtocolFacade.kt │ │ │ │ │ ├── decode/ │ │ │ │ │ │ ├── MessageDecoder.kt │ │ │ │ │ │ └── MessageDecoderPipeline.kt │ │ │ │ │ ├── encode/ │ │ │ │ │ │ ├── MessageEncoder.kt │ │ │ │ │ │ └── MessageEncoderPipeline.kt │ │ │ │ │ ├── impl/ │ │ │ │ │ │ ├── AudioProtocol.kt │ │ │ │ │ │ ├── CustomMessageProtocol.kt │ │ │ │ │ │ ├── FaceProtocol.kt │ │ │ │ │ │ ├── FileMessageProtocol.kt │ │ │ │ │ │ ├── FlashImageProtocol.kt │ │ │ │ │ │ ├── ForwardMessageProtocol.kt │ │ │ │ │ │ ├── GeneralMessageSenderProtocol.kt │ │ │ │ │ │ ├── IgnoredMessagesProtocol.kt │ │ │ │ │ │ ├── ImageProtocol.kt │ │ │ │ │ │ ├── LongMessageProtocol.kt │ │ │ │ │ │ ├── MarketFaceProtocol.kt │ │ │ │ │ │ ├── MusicShareProtocol.kt │ │ │ │ │ │ ├── PokeMessageProtocol.kt │ │ │ │ │ │ ├── PttMessageProtocol.kt │ │ │ │ │ │ ├── QuoteReplyProtocol.kt │ │ │ │ │ │ ├── RichMessageProtocol.kt │ │ │ │ │ │ ├── ShortVideoProtocol.kt │ │ │ │ │ │ ├── SuperFaceProtocol.kt │ │ │ │ │ │ ├── TextProtocol.kt │ │ │ │ │ │ ├── UnsupportedMessageProtocol.kt │ │ │ │ │ │ └── VipFaceProtocol.kt │ │ │ │ │ ├── outgoing/ │ │ │ │ │ │ ├── HighwayUploader.kt │ │ │ │ │ │ ├── MessageProtocolStrategy.kt │ │ │ │ │ │ ├── OutgoingMessagePipeline.kt │ │ │ │ │ │ ├── OutgoingMessagePipelineProcessor.kt │ │ │ │ │ │ └── OutgoingMessageProcessor.kt │ │ │ │ │ └── serialization/ │ │ │ │ │ └── MessageSerializer.kt │ │ │ │ ├── rich/ │ │ │ │ │ └── package.kt │ │ │ │ ├── source/ │ │ │ │ │ ├── MessageSourceInternal.kt │ │ │ │ │ ├── incomingSourceImpl.kt │ │ │ │ │ ├── offlineSourceImpl.kt │ │ │ │ │ └── outgoingSourceImpl.kt │ │ │ │ └── visitor/ │ │ │ │ └── MessageVisitorEx.kt │ │ │ ├── network/ │ │ │ │ ├── ContactListCache.kt │ │ │ │ ├── DebuggingProperties.kt │ │ │ │ ├── Packet.kt │ │ │ │ ├── QQAndroidClient.kt │ │ │ │ ├── Ticket.kt │ │ │ │ ├── auth/ │ │ │ │ │ ├── AuthControl.kt │ │ │ │ │ ├── BotAuthSessionInternal.kt │ │ │ │ │ ├── DefaultBotAuthorizationFactoryImpl.kt │ │ │ │ │ └── SafeBotAuthSession.kt │ │ │ │ ├── component/ │ │ │ │ │ ├── ComponentKey.kt │ │ │ │ │ ├── ComponentStorage.kt │ │ │ │ │ ├── ComponentStorageDelegate.kt │ │ │ │ │ ├── ConcurrentComponentStorage.kt │ │ │ │ │ ├── MutableComponentStorage.kt │ │ │ │ │ └── NoSuchComponentException.kt │ │ │ │ ├── components/ │ │ │ │ │ ├── AccountSecretsManager.kt │ │ │ │ │ ├── BdhSessionSyncer.kt │ │ │ │ │ ├── BotClientHolder.kt │ │ │ │ │ ├── BotInitProcessor.kt │ │ │ │ │ ├── BotOfflineEventMonitor.kt │ │ │ │ │ ├── CacheValidator.kt │ │ │ │ │ ├── ClockComponent.kt │ │ │ │ │ ├── ConfigPushProcessor.kt │ │ │ │ │ ├── ConfigPushSyncer.kt │ │ │ │ │ ├── ContactCacheService.kt │ │ │ │ │ ├── ContactUpdater.kt │ │ │ │ │ ├── EcdhInitialPublicKeyUpdater.kt │ │ │ │ │ ├── EncryptServiceHolder.kt │ │ │ │ │ ├── EventDispatcher.kt │ │ │ │ │ ├── HeartbeatProcessor.kt │ │ │ │ │ ├── HeartbeatScheduler.kt │ │ │ │ │ ├── HttpClientProvider.kt │ │ │ │ │ ├── KeyRefreshProcessor.kt │ │ │ │ │ ├── MessageSvcSyncer.kt │ │ │ │ │ ├── NetworkHandlerReference.kt │ │ │ │ │ ├── NoticeProcessorPipeline.kt │ │ │ │ │ ├── OtherClientUpdater.kt │ │ │ │ │ ├── PacketCodec.kt │ │ │ │ │ ├── PacketHandler.kt │ │ │ │ │ ├── PacketLoggingStrategy.kt │ │ │ │ │ ├── QRCodeLoginProcessor.kt │ │ │ │ │ ├── ServerList.kt │ │ │ │ │ ├── SsoProcessor.kt │ │ │ │ │ ├── SsoProcessorContext.kt │ │ │ │ │ ├── SyncController.kt │ │ │ │ │ └── package.kt │ │ │ │ ├── handler/ │ │ │ │ │ ├── CommonNetworkHandler.kt │ │ │ │ │ ├── NetworkHandler.kt │ │ │ │ │ ├── NetworkHandlerContext.kt │ │ │ │ │ ├── NetworkHandlerFactory.kt │ │ │ │ │ ├── NetworkHandlerSupport.kt │ │ │ │ │ ├── selector/ │ │ │ │ │ │ ├── AbstractKeepAliveNetworkHandlerSelector.kt │ │ │ │ │ │ ├── ExceptionInSelectorResumeException.kt │ │ │ │ │ │ ├── MaxAttemptsReachedException.kt │ │ │ │ │ │ ├── NetworkChannelException.kt │ │ │ │ │ │ ├── NetworkException.kt │ │ │ │ │ │ ├── NetworkHandlerSelector.kt │ │ │ │ │ │ ├── NoServerAvailableException.kt │ │ │ │ │ │ ├── PacketTimeoutException.kt │ │ │ │ │ │ ├── SelectorNetworkHandler.kt │ │ │ │ │ │ └── SelectorRequireReconnectException.kt │ │ │ │ │ └── state/ │ │ │ │ │ ├── CombinedStateObserver.kt │ │ │ │ │ ├── ExceptionInStateObserverException.kt │ │ │ │ │ ├── JobAttachStateObserver.kt │ │ │ │ │ ├── LoggingStateObserver.kt │ │ │ │ │ ├── SafeStateObserver.kt │ │ │ │ │ ├── StateChangedObserver.kt │ │ │ │ │ └── StateObserver.kt │ │ │ │ ├── highway/ │ │ │ │ │ ├── ChunkedFlowSession.kt │ │ │ │ │ ├── Highway.kt │ │ │ │ │ └── Http.kt │ │ │ │ ├── impl/ │ │ │ │ │ ├── HeartbeatFailedException.kt │ │ │ │ │ ├── ServerClosedException.kt │ │ │ │ │ └── package.kt │ │ │ │ ├── keys.kt │ │ │ │ ├── notice/ │ │ │ │ │ ├── NewContactSupport.kt │ │ │ │ │ ├── PrivateContactSupport.kt │ │ │ │ │ ├── TraceLoggingNoticeProcessor.kt │ │ │ │ │ ├── UnconsumedNoticesAlerter.kt │ │ │ │ │ ├── decoders/ │ │ │ │ │ │ ├── GroupNotificationDecoder.kt │ │ │ │ │ │ └── MsgInfoDecoder.kt │ │ │ │ │ ├── group/ │ │ │ │ │ │ ├── GroupMessageProcessor.kt │ │ │ │ │ │ ├── GroupNotificationProcessor.kt │ │ │ │ │ │ ├── GroupOrMemberListNoticeProcessor.kt │ │ │ │ │ │ └── GroupRecallProcessor.kt │ │ │ │ │ └── priv/ │ │ │ │ │ ├── FriendGroupNoticeProcessor.kt │ │ │ │ │ ├── FriendNoticeProcessor.kt │ │ │ │ │ ├── OtherClientNoticeProcessor.kt │ │ │ │ │ └── PrivateMessageProcessor.kt │ │ │ │ ├── protocol/ │ │ │ │ │ ├── LoginType.kt │ │ │ │ │ ├── SyncingCacheList.kt │ │ │ │ │ ├── data/ │ │ │ │ │ │ ├── jce/ │ │ │ │ │ │ │ ├── ChangeFriendNameReq.kt │ │ │ │ │ │ │ ├── ConfigPush.kt │ │ │ │ │ │ │ ├── DeviceItemDes.kt │ │ │ │ │ │ │ ├── FriendList.kt │ │ │ │ │ │ │ ├── GroupMngReq.kt │ │ │ │ │ │ │ ├── InstanceInfo.kt │ │ │ │ │ │ │ ├── MoveGroupMemPack.kt │ │ │ │ │ │ │ ├── MsgType0x210.kt │ │ │ │ │ │ │ ├── OnlinePushPack.kt │ │ │ │ │ │ │ ├── PushNotifyPack.kt │ │ │ │ │ │ │ ├── ReqPushStatus.kt │ │ │ │ │ │ │ ├── ReqSummaryCard.kt │ │ │ │ │ │ │ ├── RequestMSFForceOffline.kt │ │ │ │ │ │ │ ├── RequestPacket.kt │ │ │ │ │ │ │ ├── RequestPushForceOffline.kt │ │ │ │ │ │ │ ├── SetGroupPack.kt │ │ │ │ │ │ │ ├── SvcDevLoginInfo.kt │ │ │ │ │ │ │ ├── SvcReqMSFLoginNotifyData.kt │ │ │ │ │ │ │ ├── SvcReqRegister.kt │ │ │ │ │ │ │ ├── SvcRequestPushReadedNotify.kt │ │ │ │ │ │ │ ├── SvcRespRegister.kt │ │ │ │ │ │ │ ├── SvcRspGetDevLoginInfo.kt │ │ │ │ │ │ │ └── TroopList.kt │ │ │ │ │ │ ├── proto/ │ │ │ │ │ │ │ ├── Cmd0x346.kt │ │ │ │ │ │ │ ├── Cmd0x352.kt │ │ │ │ │ │ │ ├── Cmd0x388.kt │ │ │ │ │ │ │ ├── Cmd0x857.kt │ │ │ │ │ │ │ ├── Cmd0x858.kt │ │ │ │ │ │ │ ├── Define.kt │ │ │ │ │ │ │ ├── Exciting.kt │ │ │ │ │ │ │ ├── FrdSysMsg.kt │ │ │ │ │ │ │ ├── FriendListCommon.kt │ │ │ │ │ │ │ ├── Group.kt │ │ │ │ │ │ │ ├── GroupFileCommon.kt │ │ │ │ │ │ │ ├── Highway.kt │ │ │ │ │ │ │ ├── HummerCommelem.kt │ │ │ │ │ │ │ ├── HummerResv12.kt │ │ │ │ │ │ │ ├── HummerResv21.kt │ │ │ │ │ │ │ ├── HummerResv3.kt │ │ │ │ │ │ │ ├── HummerResv6.kt │ │ │ │ │ │ │ ├── ImageRequest.kt │ │ │ │ │ │ │ ├── ImgExtPbResvAttrCommon.kt │ │ │ │ │ │ │ ├── LongMsg.kt │ │ │ │ │ │ │ ├── Msg.kt │ │ │ │ │ │ │ ├── MsgCommon.kt │ │ │ │ │ │ │ ├── MsgRevokeUserDef.kt │ │ │ │ │ │ │ ├── MsgSvc.kt │ │ │ │ │ │ │ ├── MsgTransmit.kt │ │ │ │ │ │ │ ├── MultiMsg.kt │ │ │ │ │ │ │ ├── OIDB.kt │ │ │ │ │ │ │ ├── Oidb0x6d6.kt │ │ │ │ │ │ │ ├── Oidb0x6d7.kt │ │ │ │ │ │ │ ├── Oidb0x6d8.kt │ │ │ │ │ │ │ ├── Oidb0x6d9.kt │ │ │ │ │ │ │ ├── Oidb0x769.kt │ │ │ │ │ │ │ ├── Oidb0xeac.kt │ │ │ │ │ │ │ ├── OidbCmd0xb77.kt │ │ │ │ │ │ │ ├── OnlinePush.kt │ │ │ │ │ │ │ ├── PbReserve.kt │ │ │ │ │ │ │ ├── PttShortVideo.kt │ │ │ │ │ │ │ ├── SSOReserveField.kt │ │ │ │ │ │ │ ├── StatSvcGetOnline.kt │ │ │ │ │ │ │ ├── StatSvcSimpleGet.kt │ │ │ │ │ │ │ ├── StructMsg.kt │ │ │ │ │ │ │ ├── SyncCookie.kt │ │ │ │ │ │ │ ├── msgType0x210.kt │ │ │ │ │ │ │ └── msgType0x211.kt │ │ │ │ │ │ └── richstatus/ │ │ │ │ │ │ └── RichStatus.kt │ │ │ │ │ └── packet/ │ │ │ │ │ ├── EncryptMethod.kt │ │ │ │ │ ├── OutgoingPacket.kt │ │ │ │ │ ├── PacketFactory.kt │ │ │ │ │ ├── Tlv.kt │ │ │ │ │ ├── chat/ │ │ │ │ │ │ ├── ChatType.kt │ │ │ │ │ │ ├── GroupFile.kt │ │ │ │ │ │ ├── MultiMsg.kt │ │ │ │ │ │ ├── MusicSharePacket.kt │ │ │ │ │ │ ├── NewContact.kt │ │ │ │ │ │ ├── NudgePacket.kt │ │ │ │ │ │ ├── PbMessageSvc.kt │ │ │ │ │ │ ├── SendMessageMultiProtocol.kt │ │ │ │ │ │ ├── TroopEssenceMsgManager.kt │ │ │ │ │ │ ├── TroopManagement.kt │ │ │ │ │ │ ├── image/ │ │ │ │ │ │ │ ├── ImgStore.kt │ │ │ │ │ │ │ └── LongConn.kt │ │ │ │ │ │ ├── receive/ │ │ │ │ │ │ │ ├── MessageSvc.PbDeleteMsg.kt │ │ │ │ │ │ │ ├── MessageSvc.PbGetGroupMsg.kt │ │ │ │ │ │ │ ├── MessageSvc.PbGetMsg.kt │ │ │ │ │ │ │ ├── MessageSvc.PbGetRoamMsgReq.kt │ │ │ │ │ │ │ ├── MessageSvc.PbSendMsg.kt │ │ │ │ │ │ │ ├── MessageSvc.PushForceOffline.kt │ │ │ │ │ │ │ ├── MessageSvc.PushNotify.kt │ │ │ │ │ │ │ ├── MessageSvc.PushReaded.kt │ │ │ │ │ │ │ ├── MessageSvc.RequestPushStatus.kt │ │ │ │ │ │ │ ├── OnlinePush.PbC2CMsgSync.kt │ │ │ │ │ │ │ ├── OnlinePush.PbPushGroupMsg.kt │ │ │ │ │ │ │ ├── OnlinePush.PbPushTransMsg.kt │ │ │ │ │ │ │ ├── OnlinePush.ReqPush.kt │ │ │ │ │ │ │ └── OnlinePush.SidExpired.kt │ │ │ │ │ │ ├── shortvideo/ │ │ │ │ │ │ │ └── PttCenterSvr.kt │ │ │ │ │ │ └── voice/ │ │ │ │ │ │ └── PttStore.kt │ │ │ │ │ ├── list/ │ │ │ │ │ │ ├── FriendList.kt │ │ │ │ │ │ ├── ProfileService.kt │ │ │ │ │ │ └── StrangerList.kt │ │ │ │ │ ├── login/ │ │ │ │ │ │ ├── ConfigPushSvc.kt │ │ │ │ │ │ ├── Heartbeat.kt │ │ │ │ │ │ ├── StatSvc.kt │ │ │ │ │ │ ├── WtLogin.kt │ │ │ │ │ │ └── wtlogin/ │ │ │ │ │ │ ├── WtLogin10.kt │ │ │ │ │ │ ├── WtLogin15.kt │ │ │ │ │ │ ├── WtLogin2.kt │ │ │ │ │ │ ├── WtLogin20.kt │ │ │ │ │ │ ├── WtLogin7.kt │ │ │ │ │ │ ├── WtLogin8.kt │ │ │ │ │ │ ├── WtLogin9.kt │ │ │ │ │ │ └── WtLoginExt.kt │ │ │ │ │ ├── sso/ │ │ │ │ │ │ └── TRpcRawPacket.kt │ │ │ │ │ └── summarycard/ │ │ │ │ │ ├── FriendRemark.kt │ │ │ │ │ └── SummaryCard.kt │ │ │ │ └── qimei/ │ │ │ │ └── Qimei.kt │ │ │ ├── pipeline/ │ │ │ │ └── ProcessorPipeline.kt │ │ │ ├── spi/ │ │ │ │ └── EncryptService.kt │ │ │ └── utils/ │ │ │ ├── AtomicIntSeq.kt │ │ │ ├── BotConfigurationExt.kt │ │ │ ├── ExternalResourceImpl.kt │ │ │ ├── FileSystem.kt │ │ │ ├── FragmentedMsgParsingCache.kt │ │ │ ├── GuidSource.kt │ │ │ ├── ImagePatcher.kt │ │ │ ├── MiraiCoreServices.kt │ │ │ ├── MiraiProtocolInternal.kt │ │ │ ├── MiraiUtilsLogger.kt │ │ │ ├── NetworkType.kt │ │ │ ├── PlatformDatagramChannel.kt │ │ │ ├── PlatformSocket.kt │ │ │ ├── ScheduledJob.kt │ │ │ ├── SingleEntrantLock.kt │ │ │ ├── SubLogger.kt │ │ │ ├── collection.kt │ │ │ ├── crypto/ │ │ │ │ ├── AES.kt │ │ │ │ ├── Ecdh.kt │ │ │ │ ├── QQEcdh.kt │ │ │ │ ├── RSA.kt │ │ │ │ └── TEA.kt │ │ │ ├── flags.kt │ │ │ ├── io/ │ │ │ │ ├── ProtocolStruct.kt │ │ │ │ ├── output.kt │ │ │ │ └── serialization/ │ │ │ │ ├── tars/ │ │ │ │ │ ├── Tars.kt │ │ │ │ │ ├── TarsId.kt │ │ │ │ │ └── internal/ │ │ │ │ │ ├── TarsDecoder.kt │ │ │ │ │ ├── TarsInput.kt │ │ │ │ │ ├── TarsOld.kt │ │ │ │ │ └── TarsTag.kt │ │ │ │ └── utils.kt │ │ │ ├── numbers.kt │ │ │ ├── printStructure.kt │ │ │ ├── retryWithServers.kt │ │ │ ├── runCoroutineInPlace.kt │ │ │ ├── string.kt │ │ │ └── type.kt │ │ └── resources/ │ │ ├── META-INF/ │ │ │ └── services/ │ │ │ ├── net.mamoe.mirai.IMirai │ │ │ ├── net.mamoe.mirai.auth.DefaultBotAuthorizationFactory │ │ │ ├── net.mamoe.mirai.event.InternalGlobalEventChannelProvider │ │ │ ├── net.mamoe.mirai.internal.message.protocol.MessageProtocol │ │ │ ├── net.mamoe.mirai.message.data.InternalImageProtocol │ │ │ ├── net.mamoe.mirai.message.data.InternalShortVideoProtocol │ │ │ ├── net.mamoe.mirai.message.data.OfflineAudio$Factory │ │ │ └── net.mamoe.mirai.utils.InternalProtocolDataExchange │ │ └── emoji-pattern.regex │ ├── commonTest/ │ │ ├── kotlin/ │ │ │ ├── AbstractTestWithMiraiImpl.kt │ │ │ ├── BotFactoryTest.kt │ │ │ ├── MockBot.kt │ │ │ ├── PlatformUtilsTest.kt │ │ │ ├── ScheduledJobTest.kt │ │ │ ├── TypeConversionTest.kt │ │ │ ├── contact/ │ │ │ │ └── file/ │ │ │ │ └── AbsoluteFolderTest.kt │ │ │ ├── event/ │ │ │ │ ├── AbstractEventTest.kt │ │ │ │ ├── CancelScopeTest.kt │ │ │ │ ├── EventChannelFlowTest.kt │ │ │ │ ├── EventChannelTest.kt │ │ │ │ ├── EventTests.kt │ │ │ │ ├── NextEventTest.kt │ │ │ │ └── StepUtil.kt │ │ │ ├── message/ │ │ │ │ ├── CleanupRubbishMessageElementsTest.kt │ │ │ │ ├── ImageBuilderTest.kt │ │ │ │ ├── ImageReadingTest.kt │ │ │ │ ├── InternalImageProtocolImplTest.kt │ │ │ │ ├── RefineContextTest.kt │ │ │ │ ├── code/ │ │ │ │ │ └── TestMiraiCode.kt │ │ │ │ ├── data/ │ │ │ │ │ ├── AudioTest.kt │ │ │ │ │ ├── ContentEqualsTest.kt │ │ │ │ │ ├── ForwardRefineTest.kt │ │ │ │ │ ├── MessageReceiptTest.kt │ │ │ │ │ ├── MessageRefineTest.kt │ │ │ │ │ └── MessageSerializationTest.kt │ │ │ │ ├── protocol/ │ │ │ │ │ ├── MessageProtocolFacadeTest.kt │ │ │ │ │ └── impl/ │ │ │ │ │ ├── AbstractMessageProtocolTest.kt │ │ │ │ │ ├── CustomMessageProtocolTest.kt │ │ │ │ │ ├── EqualityAsserter.kt │ │ │ │ │ ├── FaceProtocolTest.kt │ │ │ │ │ ├── FileMessageProtocolTest.kt │ │ │ │ │ ├── FlashImageProtocolTest.kt │ │ │ │ │ ├── ForwardMessageProtocolTest.kt │ │ │ │ │ ├── GeneralMessageSenderProtocolTest.kt │ │ │ │ │ ├── ImageProtocolTest.kt │ │ │ │ │ ├── LongMessageProtocolTest.kt │ │ │ │ │ ├── MarketFaceProtocolTest.kt │ │ │ │ │ ├── MusicShareProtocolTest.kt │ │ │ │ │ ├── PokeMessageProtocolTest.kt │ │ │ │ │ ├── QuoteReplyProtocolTest.kt │ │ │ │ │ ├── RichMessageProtocolTest.kt │ │ │ │ │ ├── SuperFaceProtocolTest.kt │ │ │ │ │ ├── TextProtocolTest.kt │ │ │ │ │ └── VipFaceProtocolTest.kt │ │ │ │ └── serialization/ │ │ │ │ └── AbstractMessageSerializationTest.kt │ │ │ ├── network/ │ │ │ │ ├── AwaitStateTest.kt │ │ │ │ ├── PacketCodecTest.kt │ │ │ │ ├── ServerListTest.kt │ │ │ │ ├── auth/ │ │ │ │ │ ├── AbstractBotAuthTest.kt │ │ │ │ │ ├── AuthorizationReasonTest.kt │ │ │ │ │ └── BotAuthorizationTest.kt │ │ │ │ ├── component/ │ │ │ │ │ ├── AbstractMutableComponentStorageTest.kt │ │ │ │ │ ├── BotAuthControlTest.kt │ │ │ │ │ ├── BotInitProcessorTest.kt │ │ │ │ │ ├── CombinedStorageTest.kt │ │ │ │ │ └── EventDispatcherTest.kt │ │ │ │ ├── framework/ │ │ │ │ │ ├── AbstractCommonNHTest.kt │ │ │ │ │ ├── AbstractCommonNHTestWithSelector.kt │ │ │ │ │ ├── AbstractMockNetworkHandlerTest.kt │ │ │ │ │ ├── AbstractNetworkHandlerTest.kt │ │ │ │ │ ├── AbstractRealNetworkHandlerTest.kt │ │ │ │ │ ├── AbstractRealTimeActionTestUnit.kt │ │ │ │ │ ├── ITestNetworkHandler.kt │ │ │ │ │ ├── PacketReplier.kt │ │ │ │ │ ├── SynchronizedStdoutLogger.kt │ │ │ │ │ ├── TestNetworkHandler.kt │ │ │ │ │ ├── TestNetworkHandlerContext.kt │ │ │ │ │ ├── components/ │ │ │ │ │ │ ├── TestEventDispatcherImpl.kt │ │ │ │ │ │ ├── TestImagePatcher.kt │ │ │ │ │ │ └── TestSsoProcessor.kt │ │ │ │ │ ├── networkUtils.kt │ │ │ │ │ ├── sessionUtils.kt │ │ │ │ │ └── test/ │ │ │ │ │ └── FrameworkEventTest.kt │ │ │ │ ├── handler/ │ │ │ │ │ ├── KeepAliveNetworkHandlerSelectorTest.kt │ │ │ │ │ ├── SelectorHeartbeatRecoveryTest.kt │ │ │ │ │ ├── SelectorLoginRecoveryTest.kt │ │ │ │ │ ├── StandaloneSelectorTests.kt │ │ │ │ │ └── StateObserverTest.kt │ │ │ │ └── impl/ │ │ │ │ └── common/ │ │ │ │ ├── AccountSecretsTest.kt │ │ │ │ ├── BotLifecycleTest.kt │ │ │ │ ├── CommonNHAddressChangedTest.kt │ │ │ │ ├── CommonNHBotNormalLoginTest.kt │ │ │ │ ├── CommonNHEventTest.kt │ │ │ │ ├── ResumeConnectionTest.kt │ │ │ │ ├── SendPacketTest.kt │ │ │ │ └── SetStateTest.kt │ │ │ ├── notice/ │ │ │ │ └── processors/ │ │ │ │ ├── AbstractNoticeProcessorTest.kt │ │ │ │ ├── BotInvitedJoinTest.kt │ │ │ │ ├── FriendNickChangeTest.kt │ │ │ │ ├── GroupRetrieveTest.kt │ │ │ │ ├── GroupTransferTest.kt │ │ │ │ ├── MemberAdminChangeTest.kt │ │ │ │ ├── MemberJoinTest.kt │ │ │ │ ├── MemberQuitTest.kt │ │ │ │ ├── MessageSyncTest.kt │ │ │ │ ├── MessageTest.kt │ │ │ │ ├── MuteTest.kt │ │ │ │ └── RecallTest.kt │ │ │ ├── samples/ │ │ │ │ └── CustomMessageSamples.kt │ │ │ ├── test/ │ │ │ │ ├── events.kt │ │ │ │ ├── initPlatform.common.kt │ │ │ │ ├── printing.kt │ │ │ │ └── utils.kt │ │ │ ├── testFramework/ │ │ │ │ ├── DebugProbes.kt │ │ │ │ ├── DynamicTest.kt │ │ │ │ ├── Platform.kt │ │ │ │ ├── message/ │ │ │ │ │ └── TestMessageSourceSequenceIdAwaiter.kt │ │ │ │ ├── package.kt │ │ │ │ └── rules/ │ │ │ │ └── DisabledOnJvmLikePlatform.kt │ │ │ └── utils/ │ │ │ ├── FileSystemTest.kt │ │ │ ├── crypto/ │ │ │ │ ├── AESTest.kt │ │ │ │ ├── EcdhTest.kt │ │ │ │ └── RSATest.kt │ │ │ └── io/ │ │ │ └── serialization/ │ │ │ ├── ReadJceStructTest.kt │ │ │ └── tars/ │ │ │ └── internal/ │ │ │ └── DebugLoggerTest.kt │ │ └── resources/ │ │ ├── META-INF/ │ │ │ └── services/ │ │ │ └── net.mamoe.mirai.internal.message.source.MessageSourceSequenceIdAwaiter │ │ └── recording/ │ │ └── configs/ │ │ ├── desensitization.yml │ │ └── test.desensitization.yml │ ├── jvmBaseMain/ │ │ └── kotlin/ │ │ ├── MiraiImpl.kt │ │ ├── contact/ │ │ │ ├── GroupImpl.kt │ │ │ ├── active/ │ │ │ │ └── GroupActiveImpl.kt │ │ │ └── file/ │ │ │ └── AbsoluteFolderImpl.kt │ │ ├── message/ │ │ │ └── protocol/ │ │ │ └── impl/ │ │ │ └── TextProtocol.kt │ │ ├── network/ │ │ │ ├── component/ │ │ │ │ └── ComponentKey.kt │ │ │ ├── handler/ │ │ │ │ ├── NetworkHandlerFactory.kt │ │ │ │ ├── SocketAddress.kt │ │ │ │ └── selector/ │ │ │ │ └── SelectorRequireReconnectException.kt │ │ │ ├── impl/ │ │ │ │ ├── netty/ │ │ │ │ │ ├── NettyChannelException.kt │ │ │ │ │ ├── NettyNetworkHandler.kt │ │ │ │ │ ├── NettyNetworkHandlerFactory.kt │ │ │ │ │ └── nettyUtils.kt │ │ │ │ └── package.kt │ │ │ ├── package.kt │ │ │ └── protocol/ │ │ │ └── data/ │ │ │ └── richstatus/ │ │ │ └── RichStatus.kt │ │ ├── package.kt │ │ └── utils/ │ │ ├── BotConfigurationExt.kt │ │ ├── ExternalResourceImpl.kt │ │ ├── PlatformSocket.kt │ │ ├── RemoteFileImpl.kt │ │ └── crypto/ │ │ ├── AES.kt │ │ ├── JceEcdh.kt │ │ ├── JceEcdhWithProvider.kt │ │ ├── QQEcdhJvm.kt │ │ └── RSA.kt │ ├── jvmBaseTest/ │ │ ├── kotlin/ │ │ │ ├── event/ │ │ │ │ ├── EventChannelJavaTest.java │ │ │ │ ├── EventLaunchUndispatchedTest.kt │ │ │ │ ├── JvmMethodEventsTest.kt │ │ │ │ ├── JvmMethodEventsTestJava.kt │ │ │ │ └── SimpleListenerHostTestJava.kt │ │ │ ├── network/ │ │ │ │ ├── component/ │ │ │ │ │ ├── ComponentKeyTest.kt │ │ │ │ │ └── ConcurrentComponentStorageToStringTest.kt │ │ │ │ ├── framework/ │ │ │ │ │ ├── AbstractCommonNHTest.kt │ │ │ │ │ ├── AbstractNettyNHTest.kt │ │ │ │ │ └── NettyNHTestChannel.kt │ │ │ │ └── impl/ │ │ │ │ └── netty/ │ │ │ │ └── CommonNHUtilsTest.kt │ │ │ ├── package.kt │ │ │ ├── test/ │ │ │ │ ├── AbstractTest.kt │ │ │ │ └── NativeTestWrapper.kt │ │ │ ├── testFramework/ │ │ │ │ ├── DebugProbes.kt │ │ │ │ ├── DynamicTest.kt │ │ │ │ ├── codegen/ │ │ │ │ │ ├── RemoveDefaultValuesVisitor.kt │ │ │ │ │ ├── ValueDescAnalyzer.kt │ │ │ │ │ ├── descriptors/ │ │ │ │ │ │ ├── ClassValueDesc.kt │ │ │ │ │ │ ├── CollectionLikeValueDesc.kt │ │ │ │ │ │ ├── CollectionValueDesc.kt │ │ │ │ │ │ ├── MapValueDesc.kt │ │ │ │ │ │ ├── ObjectArrayValueDesc.kt │ │ │ │ │ │ ├── PlainValueDesc.kt │ │ │ │ │ │ ├── PrimitiveArrayValueDesc.kt │ │ │ │ │ │ └── ValueDesc.kt │ │ │ │ │ ├── test/ │ │ │ │ │ │ ├── IndenterTest.kt │ │ │ │ │ │ ├── OptimizeByteArrayAsHexStringTransformerTest.kt │ │ │ │ │ │ └── visitors/ │ │ │ │ │ │ ├── ValueDescAnalyzerTest.kt │ │ │ │ │ │ └── ValueDescToStringRendererTest.kt │ │ │ │ │ ├── visitor/ │ │ │ │ │ │ ├── ValueDescTransformer.kt │ │ │ │ │ │ ├── ValueDescVisitor.kt │ │ │ │ │ │ └── ValueDescVisitorUnit.kt │ │ │ │ │ └── visitors/ │ │ │ │ │ ├── AnalyzeDefaultValuesMappingVisitor.kt │ │ │ │ │ ├── ClassFormatter.kt │ │ │ │ │ ├── Indenter.kt │ │ │ │ │ ├── OptimizeByteArrayAsHexStringTransformer.kt │ │ │ │ │ └── ValueDescToStringRenderer.kt │ │ │ │ ├── desensitizer/ │ │ │ │ │ └── Desensitizer.kt │ │ │ │ ├── message/ │ │ │ │ │ └── protocol/ │ │ │ │ │ └── MessageDecodingRecorder.kt │ │ │ │ ├── notice/ │ │ │ │ │ └── RecordingNoticeHandler.kt │ │ │ │ ├── rules/ │ │ │ │ │ └── DisabledOnPlatform.kt │ │ │ │ └── test/ │ │ │ │ └── RecordingNoticeProcessorTest.kt │ │ │ └── utils/ │ │ │ ├── CombinedExternalResourceTest.kt │ │ │ ├── StructureToStringTransformerNew.kt │ │ │ └── test/ │ │ │ └── StructureToStringTransformerNewTest.kt │ │ └── resources/ │ │ └── META-INF/ │ │ └── services/ │ │ └── net.mamoe.mirai.utils.StructureToStringTransformer │ ├── jvmMain/ │ │ └── kotlin/ │ │ ├── package.kt │ │ └── utils/ │ │ └── crypto/ │ │ └── EcdhJvmDesktop.kt │ └── jvmTest/ │ ├── README.md │ ├── kotlin/ │ │ ├── AtomicResizeCacheListTest.kt │ │ ├── JavaApiTests.java │ │ ├── bootstrap/ │ │ │ ├── RunMessageDecodingRecorder.kt │ │ │ └── RunNoticeRecorder.kt │ │ ├── directboot/ │ │ │ ├── DebugRunHelper.kt │ │ │ └── envprepare.kt │ │ ├── netinternalkit/ │ │ │ ├── Ansi.kt │ │ │ ├── LogCapture.kt │ │ │ └── NetReplayHelper.kt │ │ ├── package.kt │ │ ├── test/ │ │ │ └── initializeTestJvm.kt │ │ └── testFramework/ │ │ └── currentPlatform.kt │ └── resources/ │ └── account.yml ├── mirai-core-all/ │ └── build.gradle.kts ├── mirai-core-api/ │ ├── README.md │ ├── build.gradle.kts │ ├── compatibility-validation/ │ │ ├── android/ │ │ │ └── api/ │ │ │ └── android.api │ │ └── jvm/ │ │ └── api/ │ │ └── jvm.api │ └── src/ │ ├── androidMain/ │ │ ├── AndroidManifest.xml │ │ └── kotlin/ │ │ ├── package.kt │ │ └── utils/ │ │ ├── LoginSolver.android.kt │ │ ├── PlatformLogger.android.kt │ │ └── SingleFileLogger.android.kt │ ├── commonMain/ │ │ └── kotlin/ │ │ ├── Bot.kt │ │ ├── BotFactory.kt │ │ ├── IMirai.kt │ │ ├── LowLevelApiAccessor.kt │ │ ├── auth/ │ │ │ ├── BotAuthorization.kt │ │ │ └── QRCodeLoginListener.kt │ │ ├── contact/ │ │ │ ├── AnonymousMember.kt │ │ │ ├── AudioSupported.kt │ │ │ ├── AvatarSpec.kt │ │ │ ├── Contact.kt │ │ │ ├── ContactList.kt │ │ │ ├── ContactOrBot.kt │ │ │ ├── Exceptions.kt │ │ │ ├── FileSupported.kt │ │ │ ├── Friend.kt │ │ │ ├── Group.kt │ │ │ ├── Member.kt │ │ │ ├── MemberPermission.kt │ │ │ ├── NormalMember.kt │ │ │ ├── OtherClient.kt │ │ │ ├── Stranger.kt │ │ │ ├── TempUser.kt │ │ │ ├── User.kt │ │ │ ├── UserOrBot.kt │ │ │ ├── active/ │ │ │ │ ├── ActiveChart.kt │ │ │ │ ├── ActiveHonorInfo.kt │ │ │ │ ├── ActiveHonorList.kt │ │ │ │ ├── ActiveRankRecord.kt │ │ │ │ ├── ActiveRecord.kt │ │ │ │ ├── GroupActive.kt │ │ │ │ ├── MemberActive.kt │ │ │ │ ├── MemberMedalInfo.kt │ │ │ │ └── MemberMedalType.kt │ │ │ ├── announcement/ │ │ │ │ ├── Announcement.kt │ │ │ │ ├── AnnouncementImage.kt │ │ │ │ ├── AnnouncementParameters.kt │ │ │ │ ├── AnnouncementParametersBuilder.kt │ │ │ │ ├── Announcements.kt │ │ │ │ ├── OfflineAnnouncement.kt │ │ │ │ └── OnlineAnnouncement.kt │ │ │ ├── essence/ │ │ │ │ ├── EssenceMessageRecord.kt │ │ │ │ └── Essences.kt │ │ │ ├── file/ │ │ │ │ ├── AbsoluteFile.kt │ │ │ │ ├── AbsoluteFileFolder.kt │ │ │ │ ├── AbsoluteFolder.kt │ │ │ │ └── RemoteFiles.kt │ │ │ ├── friendgroup/ │ │ │ │ ├── FriendGroup.kt │ │ │ │ └── FriendGroups.kt │ │ │ └── roaming/ │ │ │ ├── RoamingMessageFilter.kt │ │ │ ├── RoamingMessages.kt │ │ │ └── RoamingSupported.kt │ │ ├── data/ │ │ │ ├── FriendInfo.kt │ │ │ ├── GroupHonorType.kt │ │ │ ├── GroupInfo.kt │ │ │ ├── MemberInfo.kt │ │ │ ├── OnlineStatus.kt │ │ │ ├── Profile.kt │ │ │ ├── RequestEventData.kt │ │ │ ├── StrangerInfo.kt │ │ │ ├── UserInfo.kt │ │ │ └── UserProfile.kt │ │ ├── event/ │ │ │ ├── Event.kt │ │ │ ├── EventChannel.kt │ │ │ ├── EventChannelKotlinExtensions.kt │ │ │ ├── ExceptionInEventChannelFilterException.kt │ │ │ ├── Extensions.kt │ │ │ ├── GlobalEventChannel.kt │ │ │ ├── JvmMethodListeners.kt │ │ │ ├── Listener.kt │ │ │ ├── MessageSelectBuilderUnit.kt │ │ │ ├── MessageSubscribersBuilder.kt │ │ │ ├── deprecated.nextEvent.kt │ │ │ ├── deprecated.nextEventAsync.kt │ │ │ ├── deprecated.syncFromEvent.kt │ │ │ ├── events/ │ │ │ │ ├── EventCancelledException.kt │ │ │ │ ├── ImageUploadEvent.kt │ │ │ │ ├── MessageEvent.kt │ │ │ │ ├── MessagePostSendEvent.kt │ │ │ │ ├── MessagePreSendEvent.kt │ │ │ │ ├── MessageRecallEvent.kt │ │ │ │ ├── MessageSyncEvent.kt │ │ │ │ ├── NudgeEvent.kt │ │ │ │ ├── ShortVideoUploadEvent.kt │ │ │ │ ├── SignEvent.kt │ │ │ │ ├── bot.kt │ │ │ │ ├── friend.kt │ │ │ │ ├── group.kt │ │ │ │ ├── otherClient.kt │ │ │ │ ├── stranger.kt │ │ │ │ └── types.kt │ │ │ ├── select.kt │ │ │ └── subscribeMessages.kt │ │ ├── internal/ │ │ │ ├── event/ │ │ │ │ ├── JvmMethodListenersInternal.kt │ │ │ │ ├── VerboseEvent.kt │ │ │ │ └── messageSubscribersInternal.kt │ │ │ ├── message/ │ │ │ │ ├── AbstractPolymorphicSerializer.kt │ │ │ │ └── MessageSerializersImpl.kt │ │ │ ├── network/ │ │ │ │ └── Packet.kt │ │ │ └── utils/ │ │ │ ├── ExternalResourceImpls.kt │ │ │ ├── ExternalResourceLeakObserver.kt │ │ │ ├── LoggerAdapterImpls.kt │ │ │ ├── MarkedMiraiLogger.kt │ │ │ ├── Marker.kt │ │ │ └── StdoutLogger.kt │ │ ├── message/ │ │ │ ├── MessageReceipt.kt │ │ │ ├── MessageSerializers.kt │ │ │ ├── action/ │ │ │ │ ├── AsyncRecallResult.kt │ │ │ │ └── Nudge.kt │ │ │ ├── code/ │ │ │ │ ├── CodableMessage.kt │ │ │ │ ├── MiraiCode.kt │ │ │ │ └── internal/ │ │ │ │ └── impl.kt │ │ │ ├── data/ │ │ │ │ ├── At.kt │ │ │ │ ├── AtAll.kt │ │ │ │ ├── Audio.kt │ │ │ │ ├── CombinedMessage.kt │ │ │ │ ├── ConstrainSingle.kt │ │ │ │ ├── CustomMessage.kt │ │ │ │ ├── Deprecated.kt │ │ │ │ ├── Dice.kt │ │ │ │ ├── Face.kt │ │ │ │ ├── FileMessage.kt │ │ │ │ ├── FlashImage.kt │ │ │ │ ├── ForwardMessage.kt │ │ │ │ ├── HummerMessage.kt │ │ │ │ ├── Image.kt │ │ │ │ ├── MarketFace.kt │ │ │ │ ├── Message.kt │ │ │ │ ├── MessageChain.kt │ │ │ │ ├── MessageChainBuilder.kt │ │ │ │ ├── MessageKey.kt │ │ │ │ ├── MessageOrigin.kt │ │ │ │ ├── MessageSource.kt │ │ │ │ ├── MessageSourceBuilder.kt │ │ │ │ ├── MusicShare.kt │ │ │ │ ├── OfflineMessageSource.kt │ │ │ │ ├── OnlineMessageSource.kt │ │ │ │ ├── PlainText.kt │ │ │ │ ├── PokeMessage.kt │ │ │ │ ├── QuoteReply.kt │ │ │ │ ├── README.md │ │ │ │ ├── RichMessage.kt │ │ │ │ ├── RockPaperScissors.kt │ │ │ │ ├── ShortVideo.kt │ │ │ │ ├── ShowImageFlag.kt │ │ │ │ ├── SingleMessage.kt │ │ │ │ ├── SuperFace.kt │ │ │ │ ├── UnsupportedMessage.kt │ │ │ │ ├── VipFace.kt │ │ │ │ ├── Voice.kt │ │ │ │ ├── impl.kt │ │ │ │ └── visitor/ │ │ │ │ └── MessageVisitor.kt │ │ │ └── utils.kt │ │ ├── network/ │ │ │ ├── ForceOfflineException.kt │ │ │ └── LoginFailedException.kt │ │ ├── spi/ │ │ │ ├── AudioToSilkService.kt │ │ │ └── SPIServiceLoader.kt │ │ └── utils/ │ │ ├── AbstractBotConfiguration.kt │ │ ├── AbstractExternalResource.kt │ │ ├── Annotations.kt │ │ ├── BotConfiguration.kt │ │ ├── DeviceInfo.kt │ │ ├── DeviceInfoBuilder.kt │ │ ├── DeviceInfoManager.kt │ │ ├── DeviceInfoV1LegacySerializer.kt │ │ ├── ExternalResource.kt │ │ ├── FileCacheStrategy.kt │ │ ├── FileLogger.kt │ │ ├── LoggerAdapters.kt │ │ ├── LoginSolver.kt │ │ ├── MiraiLogger.kt │ │ ├── MiraiLoggerFactoryImplementationBridge.kt │ │ ├── MiraiUtilsLogger.kt │ │ ├── OverFileSizeMaxException.kt │ │ ├── ProgressionCallback.kt │ │ ├── RemoteFile.kt │ │ ├── SingleFileLogger.kt │ │ └── Streamable.kt │ ├── commonTest/ │ │ ├── kotlin/ │ │ │ ├── logging/ │ │ │ │ ├── AbstractLoggingTest.kt │ │ │ │ ├── Log4j2LoggingTest.kt │ │ │ │ └── LoggingCompatibilityTest.kt │ │ │ ├── message.data/ │ │ │ │ ├── CombinedMessageTest.kt │ │ │ │ ├── ConstrainSingleHelperTest.kt │ │ │ │ ├── ConstrainSingleTest.kt │ │ │ │ ├── ImageTest.kt │ │ │ │ ├── LinearMessageChainImplTest.kt │ │ │ │ ├── MessageChainBuilderTest.kt │ │ │ │ ├── MessageChainImmutableTest.kt │ │ │ │ ├── MessageChainImplTest.kt │ │ │ │ ├── MessageKeyTest.kt │ │ │ │ ├── MessageUtilsTest.kt │ │ │ │ ├── MessageVisitorTest.kt │ │ │ │ └── TestMessageChainDelegate.kt │ │ │ ├── package.kt │ │ │ ├── test/ │ │ │ │ └── TestDSL.kt │ │ │ └── utils/ │ │ │ ├── DeviceInfoTest.kt │ │ │ ├── JvmDeviceInfoTest.kt │ │ │ └── TimeTest.kt │ │ └── resources/ │ │ └── log4j.properties │ ├── jvmMain/ │ │ └── kotlin/ │ │ ├── package.kt │ │ └── utils/ │ │ ├── LoginSolver.TxCaptchaHelper.kt │ │ ├── LoginSolver.jvm.kt │ │ ├── PlatformLogger.jvm.kt │ │ └── SingleFileLogger.jvm.kt │ └── jvmTest/ │ └── kotlin/ │ ├── message/ │ │ └── data/ │ │ └── MessageChainImmutableTestJdk8.kt │ └── package.kt ├── mirai-core-mock/ │ ├── README.md │ ├── build.gradle.kts │ ├── src/ │ │ ├── MockActions.kt │ │ ├── MockBot.kt │ │ ├── MockBotDSL.kt │ │ ├── MockBotFactory.kt │ │ ├── contact/ │ │ │ ├── MockAnonymousMember.kt │ │ │ ├── MockContact.kt │ │ │ ├── MockContactOrBot.kt │ │ │ ├── MockFriend.kt │ │ │ ├── MockGroup.kt │ │ │ ├── MockGroupControlPane.kt │ │ │ ├── MockMember.kt │ │ │ ├── MockMsgSyncSupport.kt │ │ │ ├── MockNormalMember.kt │ │ │ ├── MockOtherClient.kt │ │ │ ├── MockStranger.kt │ │ │ ├── MockUser.kt │ │ │ ├── MockUserOrBot.kt │ │ │ ├── active/ │ │ │ │ ├── MockGroupActive.kt │ │ │ │ └── MockMemberActive.kt │ │ │ ├── announcement/ │ │ │ │ └── MockAnnouncements.kt │ │ │ └── essence/ │ │ │ └── MockEssences.kt │ │ ├── database/ │ │ │ └── MessageDatabase.kt │ │ ├── internal/ │ │ │ ├── MockBotFactoryImpl.kt │ │ │ ├── MockBotImpl.kt │ │ │ ├── MockMiraiImpl.kt │ │ │ ├── components/ │ │ │ │ └── MockEventDispatcherImpl.kt │ │ │ ├── contact/ │ │ │ │ ├── AbstractMockContact.kt │ │ │ │ ├── MockAnnouncementsImpl.kt │ │ │ │ ├── MockAnonymousMemberImpl.kt │ │ │ │ ├── MockFriendImpl.kt │ │ │ │ ├── MockGroupImpl.kt │ │ │ │ ├── MockNormalMemberImpl.kt │ │ │ │ ├── MockStrangerImpl.kt │ │ │ │ ├── active/ │ │ │ │ │ ├── MockGroupActive.kt │ │ │ │ │ └── MockMemberActiveImpl.kt │ │ │ │ ├── essence/ │ │ │ │ │ └── MockEssences.kt │ │ │ │ ├── friendfroup/ │ │ │ │ │ ├── MockFriendGroup.kt │ │ │ │ │ └── MockFriendGroups.kt │ │ │ │ ├── roaming/ │ │ │ │ │ └── MockRoamingMessages.kt │ │ │ │ └── util.kt │ │ │ ├── contactbase/ │ │ │ │ ├── ContactDatabase.kt │ │ │ │ └── ContactInfo.kt │ │ │ ├── db/ │ │ │ │ └── MsgDatabaseImpl.kt │ │ │ ├── msgsrc/ │ │ │ │ └── OnlineMsgSrc.kt │ │ │ ├── remotefile/ │ │ │ │ ├── absolutefile/ │ │ │ │ │ ├── MockAbsoluteFile.kt │ │ │ │ │ ├── MockAbsoluteFolder.kt │ │ │ │ │ └── MockRemoteFiles.kt │ │ │ │ └── remotefile/ │ │ │ │ └── MockRemoteFile.kt │ │ │ └── serverfs/ │ │ │ ├── MockServerFileDiskImpl.kt │ │ │ └── TmpResourceServerImpl.kt │ │ ├── package.kt │ │ ├── resserver/ │ │ │ ├── MockServerFileDisk.kt │ │ │ ├── MockServerFileSystem.kt │ │ │ ├── MockServerRemoteFile.kt │ │ │ └── TmpResourceServer.kt │ │ ├── userprofile/ │ │ │ ├── UserProfileService.kt │ │ │ └── contactinfos.kt │ │ └── utils/ │ │ ├── AvatarGenerator.kt │ │ ├── MemberInfo.kt │ │ ├── MockActionsScope.kt │ │ ├── MockConversions.kt │ │ ├── NameGenerator.kt │ │ ├── NudgeDsl.kt │ │ ├── event.kt │ │ ├── http.kt │ │ ├── image.kt │ │ └── mockdsl.kt │ └── test/ │ ├── AbsoluteFileTest.kt │ ├── DslTest.kt │ ├── FsServerTest.kt │ ├── ImageUploadTest.kt │ ├── MockBotTestBase.kt │ ├── MsgDbTest.kt │ ├── TestBase.kt │ ├── TxFsDiskTest.kt │ ├── mock/ │ │ ├── MessageSerializationTest.kt │ │ ├── MessagingTest.kt │ │ ├── MockBotBaseTest.kt │ │ ├── MockBotEventTest.kt │ │ ├── MockFriendGroupsTest.kt │ │ ├── MockFriendTest.kt │ │ ├── MockGroupTest.kt │ │ ├── MockMemberTest.kt │ │ └── MockStrangerTest.kt │ └── package.kt ├── mirai-core-utils/ │ ├── README.md │ ├── build.gradle.kts │ └── src/ │ ├── androidInstrumentedTest/ │ │ └── kotlin/ │ │ └── AndroidUnwrapTest.kt │ ├── androidMain/ │ │ ├── AndroidManifest.xml │ │ └── kotlin/ │ │ └── Actuals.kt │ ├── commonMain/ │ │ └── kotlin/ │ │ ├── Annotations.kt │ │ ├── Arrays.kt │ │ ├── AtomicInteger.kt │ │ ├── Base64.kt │ │ ├── ByteArrayOp.kt │ │ ├── ByteArrayPool.kt │ │ ├── Bytes.kt │ │ ├── CheckableResult.kt │ │ ├── Clock.kt │ │ ├── Closeable.kt │ │ ├── CollectionDiff.kt │ │ ├── Collections.kt │ │ ├── Conversions.kt │ │ ├── CoroutineUtils.kt │ │ ├── Either.kt │ │ ├── ExceptionCollector.kt │ │ ├── File.kt │ │ ├── Files.kt │ │ ├── HtmlEntity.kt │ │ ├── IO.kt │ │ ├── JsonStruct.kt │ │ ├── LateinitMutableProperty.kt │ │ ├── Numbers.kt │ │ ├── RandomUtils.kt │ │ ├── Resources.kt │ │ ├── ResultExtensions.kt │ │ ├── SecretsProtection.kt │ │ ├── Serialization.kt │ │ ├── Services.kt │ │ ├── SizedCache.kt │ │ ├── StandardUtils.kt │ │ ├── Strings.kt │ │ ├── StructureToStringTransformer.kt │ │ ├── Symbol.kt │ │ ├── TimeUtils.kt │ │ ├── TlvMap.kt │ │ ├── TypeSafeMap.kt │ │ ├── UnsafeMutableNonNullProperty.kt │ │ ├── UtilsLogger.kt │ │ ├── annotations/ │ │ │ └── Range.kt │ │ ├── channels/ │ │ │ ├── ChannelState.kt │ │ │ ├── IllegalChannelStateException.kt │ │ │ ├── OnDemandChannelImpl.kt │ │ │ ├── OnDemandSendChannel.kt │ │ │ └── ProducerFailureException.kt │ │ ├── package.kt │ │ └── systemProp.kt │ ├── commonTest/ │ │ └── kotlin/ │ │ └── net/ │ │ └── mamoe/ │ │ └── mirai/ │ │ └── utils/ │ │ ├── CommonByteArrayOpTest.kt │ │ ├── EitherTest.kt │ │ ├── ExceptionCollectorTest.kt │ │ ├── ExternalImageTest.kt │ │ ├── HexToBytesTest.kt │ │ ├── HtmlEscapeTest.kt │ │ ├── ImageIdConversionTest.kt │ │ ├── LateinitMutablePropertyTest.kt │ │ ├── ResourceAccessLockTest.kt │ │ ├── SizedCacheTest.kt │ │ ├── TlvMapTest.kt │ │ ├── TrySafelyTest.kt │ │ ├── TypeSafeMapTest.kt │ │ ├── channels/ │ │ │ └── OnDemandChannelTest.kt │ │ └── testFramework/ │ │ └── AssertNoCoroutineSuspension.kt │ ├── jvmBaseMain/ │ │ └── kotlin/ │ │ ├── ByteArrayOp.kt │ │ ├── Clock.kt │ │ ├── Closeable.kt │ │ ├── Collections.kt │ │ ├── ConcurrentLinkedQueue.kt │ │ ├── CoroutineUtils.kt │ │ ├── ExceptionCollector.kt │ │ ├── Files.kt │ │ ├── IO.jvm.shared.kt │ │ ├── JvmNioBuffer.kt │ │ ├── MiraiFile.kt │ │ ├── Reflections.kt │ │ ├── Resources.kt │ │ ├── SecretsProtection.kt │ │ ├── Serialization.kt │ │ ├── Services.kt │ │ ├── StandardUtils.kt │ │ ├── Streams.kt │ │ ├── StructureToStringTransformer.kt │ │ ├── StructureToStringTransformerLegacy.kt │ │ ├── ThreadLocal.kt │ │ ├── TimeUtils.kt │ │ ├── WeakRef.kt │ │ ├── annotations/ │ │ │ └── Range.kt │ │ ├── package.kt │ │ └── systemProp.kt │ ├── jvmBaseTest/ │ │ └── kotlin/ │ │ ├── ByteArrayOpTest.kt │ │ ├── KotlinFlowToJdkStreamTest.kt │ │ ├── LateinitMutablePropertyTestJvm.kt │ │ └── package.kt │ ├── jvmMain/ │ │ └── kotlin/ │ │ ├── Actuals.kt │ │ └── IO.jvm.kt │ └── jvmTest/ │ └── kotlin/ │ ├── AndroidUnwrapTest.kt │ └── SecretsProtectionTest.kt ├── mirai-deps-test/ │ ├── .gitignore │ ├── README.md │ ├── build.gradle.kts │ ├── gradle.properties │ └── test/ │ ├── AbstractTest.kt │ ├── CoreDependencyResolutionTest.kt │ ├── CoreShadowRelocationTest.kt │ └── package.kt ├── mirai-dokka/ │ ├── .gitignore │ ├── README.md │ ├── build.gradle.kts │ ├── frontend/ │ │ └── ext.js │ └── src/ │ ├── BuildVersionList.kt │ ├── DeployToGitHub.kt │ ├── Prepare.kt │ └── system.kt └── settings.gradle.kts
SYMBOL INDEX (64 symbols across 9 files)
FILE: mirai-console/backend/mirai-console/test/command/JSimpleTest.java
class JSimpleTest (line 16) | public class JSimpleTest {
class Main (line 17) | @SuppressWarnings("PluginMainServiceNotConfiguredJava")
method Main (line 19) | public Main(JvmPluginDescription description) {
class T (line 24) | static class T extends JSimpleCommand {
method T (line 25) | public T() {
FILE: mirai-console/frontend/mirai-android/app/src/main/java/io/github/mzdluo123/mirai/android/utils/DeviceStatus.java
class DeviceStatus (line 16) | public class DeviceStatus {
method getSystemAvaialbeMemorySize (line 17) | public static String getSystemAvaialbeMemorySize(Context context) {
method getTotalMemory (line 29) | public static String getTotalMemory(Context context) {
type NetState (line 48) | enum NetState {
method NetState (line 53) | NetState(String type, int state) {
method getCurrentNetType (line 59) | public static String getCurrentNetType(Context context) {
FILE: mirai-console/frontend/mirai-android/app/src/main/java/io/github/mzdluo123/mirai/android/utils/DexCompiler.java
class DexCompiler (line 18) | public class DexCompiler {
method DexCompiler (line 21) | public DexCompiler(File fileDir, File cache) {
method compile (line 29) | public File compile(File jarFile, Boolean desugaring) throws Compilati...
method copyResourcesAndMove (line 55) | public void copyResourcesAndMove(File origin, File newFile) throws IOE...
FILE: mirai-console/frontend/mirai-android/app/src/main/java/io/github/mzdluo123/mirai/android/utils/LoopQueue.java
class LoopQueue (line 18) | @SuppressWarnings("unchecked")
method LoopQueue (line 26) | public LoopQueue(int size) {
method size (line 30) | @Override
method isEmpty (line 38) | @Override
method contains (line 43) | @Override
method iterator (line 57) | @NotNull
method toArray (line 78) | @NotNull
method toArray (line 91) | @NotNull
method nextElementPos (line 110) | private void nextElementPos() {
method nextInsertPos (line 115) | private void nextInsertPos() {
method assertElementNotNull (line 119) | @Contract(value = "null -> fail; !null -> param1", pure = true)
method elementIndexOf (line 127) | private int elementIndexOf(int offset) {
method add (line 131) | @Override
method remove (line 143) | @Override
method containsAll (line 148) | @Override
method addAll (line 153) | @Override
method removeAll (line 158) | @Override
method retainAll (line 163) | @Override
method clear (line 168) | @Override
method offer (line 175) | @Override
method remove (line 180) | @Override
method poll (line 185) | @Override
method element (line 193) | @Override
method peek (line 198) | @Override
FILE: mirai-console/frontend/mirai-android/app/src/main/java/java/awt/image/BufferedImage.java
class BufferedImage (line 4) | public class BufferedImage {
FILE: mirai-console/tools/intellij-plugin/run/projects/test-project/src/main/java/test/ResourceNotClosedInspectionTestJava.java
class ResourceNotClosedInspectionTestJava (line 13) | public class ResourceNotClosedInspectionTestJava {
method funA (line 15) | public static Object funA() {
method funB (line 19) | public static void funB(Object obj) {
method main (line 23) | public static void main(String[] args) {
method useImage (line 40) | static void useImage(Image image) {
FILE: mirai-console/tools/intellij-plugin/run/projects/test-project/src/main/java/test/TestJavaPlugin.java
class TestJavaPlugin (line 15) | public class TestJavaPlugin extends JavaPlugin {
method TestJavaPlugin (line 16) | public TestJavaPlugin(@NotNull JvmPluginDescription description) {
class TestCommand (line 21) | class TestCommand extends JSimpleCommand {
method TestCommand (line 23) | public TestCommand(@NotNull CommandOwner owner, @NotNull String primar...
method test (line 27) | @Handler
class TestCommand2 (line 33) | class TestCommand2 extends JCompositeCommand {
method TestCommand2 (line 34) | public TestCommand2(@NotNull CommandOwner owner, @NotNull String prima...
method test (line 38) | @SubCommand("test")
method subCmd (line 41) | @SubCommand({})
FILE: mirai-core/src/jvmBaseTest/kotlin/event/EventChannelJavaTest.java
class EventChannelJavaTest (line 21) | public class EventChannelJavaTest {
method main (line 23) | public static void main(String[] args) {
FILE: mirai-core/src/jvmTest/kotlin/JavaApiTests.java
class JavaApiTests (line 36) | @SuppressWarnings({"unused", "UnusedAssignment"})
method JavaApiTests (line 41) | public JavaApiTests(@NotNull Bot bot) {
method generalCalls (line 45) | public void generalCalls() {
method events (line 52) | public void events() {
method magic (line 76) | @NotNull
method messages (line 87) | public void messages() {
method externalResource (line 110) | public void externalResource() throws IOException {
method main (line 148) | public static void main(String[] args) {
Copy disabled (too large)
Download .json
Condensed preview — 1801 files, each showing path, character count, and a content snippet. Download the .json file for the full structured content (13,625K chars).
[
{
"path": ".editorconfig",
"chars": 35264,
"preview": "[*]\ncharset = utf-8\nend_of_line = lf\nindent_size = 4\nindent_style = space\ninsert_final_newline = false\nmax_line_length ="
},
{
"path": ".gitattributes",
"chars": 101,
"preview": "* text=auto\n* eol=lf\n*.png binary\n*.jar binary\n*.jpg binary\n*.jpeg binary\n*.webp binary\n*.bin binary\n"
},
{
"path": ".github/ISSUE_TEMPLATE/bug.yml",
"chars": 2711,
"preview": "name: Bug 报告\ndescription: 提交一个 bug\nlabels:\n - \"z:question\"\n\nbody:\n - type: markdown\n attributes:\n value: |\n "
},
{
"path": ".github/ISSUE_TEMPLATE/config.yml",
"chars": 112,
"preview": "blank_issues_enabled: true\n\ncontact_links:\n - name: Mirai Forum\n url: https://mirai.mamoe.net\n about: 论坛\n"
},
{
"path": ".github/ISSUE_TEMPLATE/feature.md",
"chars": 270,
"preview": "---\nname: 特性申请\nabout: 申请 mirai 添加新的特性\ntitle: ''\nlabels: 't:feature'\nassignees: ''\n\n---\n\n<!-- \n 感谢你来到这里,\n 在反馈前, 请确认你已经做"
},
{
"path": ".github/workflows/build.yml",
"chars": 3535,
"preview": "name: Build\n\n\non:\n push:\n paths-ignore:\n - 'docs/**'\n - 'mirai-console/docs/**'\n - '**/*.md'\n pull_r"
},
{
"path": ".github/workflows/check-publishing.yml",
"chars": 4844,
"preview": "# 当修改构建脚本 (包括修改依赖版本) 时检查配置是否能正常发版\n# 发版检查非常慢, 因此不在 build.yml 做\n\nname: Check Publishing\n\n\non:\n push:\n paths:\n - '"
},
{
"path": ".github/workflows/doc.yml",
"chars": 759,
"preview": "name: mirai-doc Publish\n\non:\n push:\n tags:\n - 'v*' # 正式版本\n\n\njobs:\n mirai-docs:\n runs-on: macos-12 # 14G mem"
},
{
"path": ".github/workflows/release.yml",
"chars": 5490,
"preview": "name: Release Publish\n\non:\n push:\n tags:\n - 'v*' # 正式版本\n paths-ignore:\n - 'docs/**'\n - 'mirai-cons"
},
{
"path": ".gitignore",
"chars": 568,
"preview": "# Compiled class file\n*.class\n\n# Log file\n*.log\n\n# BlueJ files\n*.ctxt\n\n# Mobile Tools for Java (J2ME)\n.mtj.tmp/\n\n# Packa"
},
{
"path": ".run/Check Binary Compatibility.run.xml",
"chars": 1283,
"preview": "<!--\n ~ Copyright 2019-2021 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Compile everything.run.xml",
"chars": 1387,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Compile mirai-console.run.xml",
"chars": 1405,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Compile mirai-core for JVM.run.xml",
"chars": 1793,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Dump API Changes for mirai-console-frontend-base.run.xml",
"chars": 1460,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Dump API Changes for mirai-console.run.xml",
"chars": 980,
"preview": "<component name=\"ProjectRunConfigurationManager\">\n <configuration default=\"false\" name=\"Dump API Changes for mirai-cons"
},
{
"path": ".run/Dump API Changes for mirai-core-api.run.xml",
"chars": 1307,
"preview": "<!--\n ~ Copyright 2019-2021 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Publish deps test artifacts.run.xml",
"chars": 1693,
"preview": "<!--\n ~ Copyright 2019-2023 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Publish local artifacts.run.xml",
"chars": 1476,
"preview": "<!--\n ~ Copyright 2019-2023 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Run IDE.run.xml",
"chars": 922,
"preview": "<component name=\"ProjectRunConfigurationManager\">\n <configuration default=\"false\" name=\"Run IDE\" type=\"GradleRunConfigu"
},
{
"path": ".run/Run core tests.run.xml",
"chars": 1524,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/RunMessageDecodingRecorderKt.run.xml",
"chars": 1157,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/RunRecorderKt.run.xml",
"chars": 1129,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Test everything.run.xml",
"chars": 1381,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Test mirai-console.run.xml",
"chars": 1596,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": ".run/Test mirai-core for JVM.run.xml",
"chars": 1942,
"preview": "<!--\n ~ Copyright 2019-2022 Mamoe Technologies and contributors.\n ~\n ~ 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE ver"
},
{
"path": "CONTRIBUTING.md",
"chars": 101,
"preview": "# CONTRIBUTING\n\n-----------------------------\n\n欢迎你来到这里, 请移步 [`docs/contributing`](docs/contributing)\n"
},
{
"path": "LICENSE",
"chars": 34523,
"preview": " GNU AFFERO GENERAL PUBLIC LICENSE\n Version 3, 19 November 2007\n\n Copyright (C)"
},
{
"path": "README-eng.md",
"chars": 5464,
"preview": "# Mirai\n\nMirai is a high-performance multi-platform library, as well as a framework, providing protocol support for Tenc"
},
{
"path": "README.md",
"chars": 4383,
"preview": "<div align=\"center\">\n <img width=\"160\" src=\"docs/mirai.png\" alt=\"logo\"></br>\n\n <img width=\"95\" src=\"docs/mirai.svg\" "
},
{
"path": "build.gradle.kts",
"chars": 5230,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/build.gradle.kts",
"chars": 2726,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/settings.gradle.kts",
"chars": 321,
"preview": "/*\n * Copyright 2019-2020 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "buildSrc/src/main/kotlin/Android.kt",
"chars": 11512,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/BinaryCompatibilityConfigurator.kt",
"chars": 4393,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/DependencyDumper.kt",
"chars": 4589,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/HmppConfigure.kt",
"chars": 5375,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/JvmDependencies.kt",
"chars": 1902,
"preview": "/*\n * Copyright 2020 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证"
},
{
"path": "buildSrc/src/main/kotlin/JvmPublishing.kt",
"chars": 4513,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/KotlinMetadataPatcher.kt",
"chars": 6399,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/LocalProperties.kt",
"chars": 3222,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/Mpp.kt",
"chars": 3184,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/MppPublishing.kt",
"chars": 12257,
"preview": "/*\n * Copyright 2020 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证"
},
{
"path": "buildSrc/src/main/kotlin/ProjectConfigure.kt",
"chars": 9410,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/PublishingHelpers.kt",
"chars": 3504,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "buildSrc/src/main/kotlin/Stdlib.kt",
"chars": 393,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/TestDependencies.kt",
"chars": 1196,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/UpdateSnapshotPage.kt",
"chars": 2180,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/Versions.kt",
"chars": 15958,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/analyzes/AndroidApiLevelCheck.kt",
"chars": 10905,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "buildSrc/src/main/kotlin/analyzes/AsmUtil.kt",
"chars": 3427,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "buildSrc/src/main/kotlin/analyzes/CompiledCodeVerify.kt",
"chars": 3615,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "buildSrc/src/main/kotlin/analyzes/NoSuchMethodAnalyzer.kt",
"chars": 3539,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "buildSrc/src/main/kotlin/explicit-api.gradle.kts",
"chars": 1430,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/keys/SecretKeys.kt",
"chars": 4393,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "buildSrc/src/main/kotlin/shadow/Relocation.kt",
"chars": 10042,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/shadow/RelocationConfig.kt",
"chars": 761,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/shadow/Shadow.kt",
"chars": 5329,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/kotlin/utils.kt",
"chars": 2122,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "buildSrc/src/main/resources/androidutil/api-versions.xml",
"chars": 4312933,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<api version=\"2\">\n\t<class name=\"android/Manifest\" since=\"1\">\n\t\t<extends name=\"jav"
},
{
"path": "buildSrc/src/main/resources/binary-compatibility-validator-build.txt",
"chars": 1513,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "buildSrc/src/main/resources/binary-compatibility-validator-ignore.txt",
"chars": 27,
"preview": "build.gradle.kts\n.gitignore"
},
{
"path": "ci-release-helper/.gitignore",
"chars": 21,
"preview": "/stage-repo\n/stage-*\n"
},
{
"path": "ci-release-helper/build.gradle.kts",
"chars": 6671,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "ci-release-helper/changelogs/2.10.1.md",
"chars": 463,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复取消发送 `FriendMessage` 却显示 'cancelled by\n GroupMessagePreSendEvent'\n 的问题 (#1851)\n- 优化日志性能 "
},
{
"path": "ci-release-helper/changelogs/2.10.2.md",
"chars": 135,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复登录时遇到 'Timeout waiting for ConfigPush' 等 ConfigPush\n 有关问题 (#1899, #1991)\n- 修复 `Image.size"
},
{
"path": "ci-release-helper/changelogs/2.11.0-M1.md",
"chars": 2099,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复取消发送 `FriendMessage` 却显示 'cancelled by\n GroupMessagePreSendEvent'\n 的问题 (#1851)\n- 优化日志性能 "
},
{
"path": "ci-release-helper/changelogs/2.11.0-RC.md",
"chars": 2252,
"preview": "## mirai-core\n\n### 不兼容变更\n\n- 弃用 `IMirai.Http`\n- 弃用 `BotConfiguration.json`\n\n### 新特性\n\n- 在达到 `AtAll` 每日使用上限后以新的 `reason` `A"
},
{
"path": "ci-release-helper/changelogs/2.11.0.md",
"chars": 489,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复 `AbsoluteFolder.resolveFileById` 在一些情况下会找不到文件的问题 (\n #2033)\n- 修复一些情况下心跳超时后不会重连的问题 (#2024)"
},
{
"path": "ci-release-helper/changelogs/2.12.0-RC.md",
"chars": 4143,
"preview": "## mirai-core\n\n2.12 带来以下主要更新:\n\n- `EventChannel` 到协程 `Flow` 的对接;\n- 消息链性能优化;\n- 针对开发易用性的优化;\n- 对调试插件的更好支持;\n- 大量文档更新;\n- 以及一些问"
},
{
"path": "ci-release-helper/changelogs/2.12.0.md",
"chars": 198,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复部分情况下发送图片无法显示和发送 GIF 后图片不播放的问题 (#2114 by\n @sandtechnology)\n > 此问题并非 2.12.0-RC 引入\n\n## mir"
},
{
"path": "ci-release-helper/changelogs/2.12.1.md",
"chars": 283,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复合并转发消息显示昵称错误的问题 (#2114)\n\n## mirai-console\n\n### 优化和修复\n\n- 修复前置插件存在私有依赖时, 插件无法链接相同依赖的问题 (#210"
},
{
"path": "ci-release-helper/changelogs/2.12.2.md",
"chars": 67,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复上传文件时没有发送文件消息的问题 (#2195)\n > 自 2.12.0"
},
{
"path": "ci-release-helper/changelogs/2.12.3.md",
"chars": 54,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复合并转发内容中用户昵称错误的问题 (#2187)"
},
{
"path": "ci-release-helper/changelogs/2.13.0-M1.md",
"chars": 1810,
"preview": "2.13.0-M1 包含:\n\n[贡献相关文档]: ../../docs/contributing/README.md\n\n- Core 新的 native 编译目标\n- 支持修改好友备注\n- Console 指令参数支持 vararg 和原生"
},
{
"path": "ci-release-helper/changelogs/2.13.0-RC.md",
"chars": 1997,
"preview": "2.13.0-RC 包含:\n\n- 支持使用短信验证码进行设备锁验证\n- 支持查看和修改好友分组\n- 支持查询和修改群员头衔等活跃数据\n- Core 模拟测试框架\n- Console 下载进度条\n- 一些问题修复\n\n## mirai-core"
},
{
"path": "ci-release-helper/changelogs/2.13.0-RC2.md",
"chars": 594,
"preview": "2.13.0-RC2 包含对 2.13 的补充和对 2.13.0-RC 的修复.\n\n## mirai-core\n\n### 优化和修复\n\n- 修复无法加载 2.9.0 以前版本生成的设备信息的问题 (#2280)\n- 修复因好友分组列表加载失"
},
{
"path": "ci-release-helper/changelogs/2.13.0.md",
"chars": 1161,
"preview": "2.13.0 包含对 2.13 前几个预览版本的修复和一些优化\n\n## mirai-core\n\n### 优化和修复\n\n[81a09549]: https://github.com/mamoe/mirai/commit/81a09549e7a"
},
{
"path": "ci-release-helper/changelogs/2.13.1.md",
"chars": 595,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复找不到 OkHttp 等问题 (#2324, #2331)\n- 优化 `UnsupportedSliderCaptchaException` 的错误提示 <!--(85bf607b"
},
{
"path": "ci-release-helper/changelogs/2.13.2.md",
"chars": 92,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复发送图片时发生 `java.lang.NoSuchMethodError` 的问题 (#2381)\n > 自 2.13.0"
},
{
"path": "ci-release-helper/changelogs/2.13.3.md",
"chars": 251,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复登录时出现 `DecryptionFailedException` 的问题 (#2167, #2419 by @sandtechnology)\n- 修复使用 `ANDROID_P"
},
{
"path": "ci-release-helper/changelogs/2.13.4.md",
"chars": 86,
"preview": "## mirai-core\n\n### 优化和修复\n\n- 修复无法登录的问题 (#2433 by @sandtechnology)\n\n> 此修复也在 2.14.0-RC 包含"
},
{
"path": "ci-release-helper/changelogs/2.14.0-RC.md",
"chars": 2677,
"preview": "## mirai-core\n\n### 不兼容变更\n\n- 删除 SwingLoginSolver (#2410)\n\n> 它以前是设计给解决图形验证码, 而现在基本不会遇到图形验证码了。现在将默认使用命令行版本 LoginSolver。\n> 以"
},
{
"path": "ci-release-helper/changelogs/2.14.0.md",
"chars": 2708,
"preview": "## mirai-core\n\n### 不兼容变更\n\n- 删除 SwingLoginSolver (#2410)\n> 它以前是设计给解决图形验证码, 而现在基本不会遇到图形验证码了。现在将默认使用命令行版本 LoginSolver。\n> 以前"
},
{
"path": "ci-release-helper/changelogs/2.15.0-M1.md",
"chars": 2010,
"preview": "## mirai-core\n\n### 不兼容变更\n\n- 删除了旧版的为兼容 Java 生成的阻塞式方法桥\n > 这只会导致依赖 mirai [2.1.0](https://github.com/mamoe/mirai/releases/t"
},
{
"path": "ci-release-helper/changelogs/README.md",
"chars": 28,
"preview": "# Changelogs\n\n本目录存档历史版本的变更记录"
},
{
"path": "ci-release-helper/scripts/kill-java.js",
"chars": 708,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "ci-release-helper/src/CiHelper.kt",
"chars": 12242,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "ci-release-helper/src/buildIndex/Index.kt",
"chars": 1615,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "ci-release-helper/src/buildIndex/SnapshotVersions.kt",
"chars": 3960,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "ci-release-helper/src/package.kt",
"chars": 333,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "docs/.conf/nav.js",
"chars": 1721,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "docs/Bots.md",
"chars": 11490,
"preview": "# Mirai - Bots\n\n**目录**\n\n- [1. 创建和配置 `Bot`](#1-创建和配置-bot)\n - [配置 Bot](#配置-bot)\n - [重要配置](#重要配置)\n - [切换心跳策略](#切换心跳策略)"
},
{
"path": "docs/ConciseAPI.md",
"chars": 4520,
"preview": "# Mirai - Concise API\n\n> 注:\n> - 本章节展示关于 `mirai-core-api` 比较常用的 API 示例\n> - 请配合 `mirai-core-api` 源码查看\n> - 本章仅提供 API 粗略介绍\n\n"
},
{
"path": "docs/ConfiguringMultiplatformProjects.md",
"chars": 1129,
"preview": "# Mirai - Configuring Projects\n\n本文介绍如何在一个 Kotlin 多平台项目中使用 mirai。\n\n### 选择版本\n\n可参考 [ConfiguringProjects](ConfiguringProject"
},
{
"path": "docs/ConfiguringProjects.md",
"chars": 3489,
"preview": "# Mirai - Configuring Projects\n\n本文介绍如何在一个 JVM 项目中使用 mirai。\n\n具体项目可参考 [mirai-hello-world](https://github.com/project-mirai"
},
{
"path": "docs/ConsoleTerminal.md",
"chars": 6895,
"preview": "# Mirai - Console Terminal\n\n本文介绍如何使用 Mirai Console 的纯控制台前端,即 `mirai-console-terminal`\n。本文部分内容实际上对所有前端都通用。\n\n本文面向用户,若要开发 M"
},
{
"path": "docs/Contacts.md",
"chars": 6202,
"preview": "# Mirai - Contacts\n\n[\n\n> 在 Git"
},
{
"path": "docs/DebuggingNetwork.md",
"chars": 4015,
"preview": "# Mirai - DebuggingNetwork\n\n本章节介绍调试网络层的方法。\n\n## 环境变量\n\n可通过 JVM 环境变量改变网络层的行为。一般用户通常不需要手动变更这些功能。\n\n[launch-undispatched]: htt"
},
{
"path": "docs/EventList.md",
"chars": 2975,
"preview": "# 事件\n\n## 事件列表一览\n\n提示:\n- 在 IntelliJ 平台双击 shift 可输入类名进行全局搜索\n- 在 IntelliJ 平台, 按 alt + 7 可打开文件的结构, [效果图](/.github/EZSLAB`K@YF"
},
{
"path": "docs/Events.md",
"chars": 15037,
"preview": "# Mirai - Events\n\n## 目录\n\n- [事件系统](#事件系统)\n- [快速指导](#快速指导)\n- [事件通道](#事件通道)\n- [通道操作](#通道操作)\n - [过滤](#过滤)\n - [添加 `Coroutin"
},
{
"path": "docs/Evolution.md",
"chars": 1235,
"preview": "# Mirai - Evolution\n\n### Mirai 演进\n\nMirai 是不断前进的库,目标是提供稳定且高效的 API。 \n维护者会严谨地推进每一项修改,并提供迁移周期(至少 2 个次版本)。\n\n### 版本规范\n\nMirai "
},
{
"path": "docs/KotlinAndJava.md",
"chars": 5047,
"preview": "# Mirai - Kotlin And Java\n\n\n本章介绍部分 Kotlin 定义对应的 Java 定义,以帮助 Java 使用者理解 Mirai 的源代码。\n\n每部分第一个代码块为 Kotlin 代码,第二个代码块为 Java 代码"
},
{
"path": "docs/Messages.md",
"chars": 20994,
"preview": "# Mirai - Messages\n\n## 目录\n- [消息系统](#消息系统)\n- [消息类型](#消息类型)\n- [消息元素](#消息元素)\n- [消息链](#消息链)\n - [发送消息](#发送消息)\n - [构造消息链](#构"
},
{
"path": "docs/MigrationFrom1x.md",
"chars": 2856,
"preview": "# Mirai - Migration From 1.x\n\n本文介绍如何从 1.x 升级到 2.x。\n\n根据你的语言选择:[Kotlin](#使用-kotlin) | [Java](#使用-java)\n\n## 使用 Kotlin\n\n### "
},
{
"path": "docs/Preparations.md",
"chars": 2419,
"preview": "# Mirai - Preparations\n\n本章节介绍 Mirai 的 JVM 环境和开发准备工作。\n\n## JVM 环境要求\n\n- 桌面 JVM:最低 Java 8,但推荐 Java 17(要使用一键启动器,需要 11 及以上)\n- "
},
{
"path": "docs/Questions.md",
"chars": 4156,
"preview": "# Mirai - Questions\n\n## 用户常见问题\n\n> 'java' 不是内部或外部命令,也不是可运行的程序\n\n没有安装 Java。\n\n> `Failed to fetch announcement for ...`\n\n[MCL"
},
{
"path": "docs/README.md",
"chars": 8538,
"preview": "# Mirai\n\n欢迎来到 mirai 开发文档。\n\n本文面向要进行开发的用户。对于只使用现成插件的用户,请阅读 [用户手册](UserManual.md)。\n\n[Mirai 生态概览](mirai-ecology.md)\n\n[Mirai "
},
{
"path": "docs/UserManual.md",
"chars": 1567,
"preview": "# Mirai - UserManual\n\n这里是 Mirai 用户手册。本文面向对开发并不熟悉,但希望使用 Mirai 提供的 QQ 机器人服务支持的用户。\n如果你要开发 Mirai 插件或参与贡献 Mirai 项目,请先阅读 [开发文档"
},
{
"path": "docs/UsingSnapshots.md",
"chars": 2424,
"preview": "# Mirai - Using Snapshots\n\n每个 commit 在构建成功后都会发布一个开发测试版本到 mirai 仓库。如有需要,可添加仓库并使用。开发测试版本非常不稳定,仅用于测试某 commit 对一个问题的修复情况,而不建"
},
{
"path": "docs/contributing/ImplementingProtocol.md",
"chars": 13871,
"preview": "# 实现协议\n\n本文将说明实现一些协议的通常步骤,并以示例逐步演示。本文还将介绍 mirai 的消息处理流程。\n\n通常请于 `commonMain` 编写代码。`commonMain` 的 Kotlin\n代码将可以用于全平台,即同时(自动)"
},
{
"path": "docs/contributing/README.md",
"chars": 11348,
"preview": "# 贡献\n\n本文是关于向 mirai 贡献的指南。mirai 欢迎并感谢一切形式的贡献。\n\n[mirai-core-api]: ../../mirai-core-api\n\n[mirai-core-utils]: ../../mirai-co"
},
{
"path": "docs/contributing/SimpleInstructions.md",
"chars": 1091,
"preview": "# 简单命令\n\n以下为你可能想做的事情的示例命令:\n\n1. clone 项目\n2. 在项目根目录创建 local.properties,并加入如下内容:\n ```properties\n projects.mirai-console-"
},
{
"path": "docs/contributing/VerifyingABI.md",
"chars": 483,
"preview": "# 进行 ABI 验证\n\nmirai\n通过 [binary-compatibility-validator](https://github.com/Kotlin/binary-compatibility-validator))\n维护 [AB"
},
{
"path": "docs/contributing/building/BuildingCoreAndroid.md",
"chars": 951,
"preview": "# 构建 mirai-core Android 目标\n\nmirai 项目支持两种方式构建 Android 目标。\n\n若主机在 `local.properties` 中配置了 `sdk.dir` 为 Android SDK 路径(就像普通 A"
},
{
"path": "docs/contributing/building/README.md",
"chars": 1058,
"preview": "# 构建\n\n本文介绍如何构建 mirai 的各模块。\n\n## 构建 JVM 目标\n\n要构建只有 JVM 目标的项目(如 `mirai-console`,只需在项目根目录使用如下命令执行\nGradle 任务:\n\n```shell\n./grad"
},
{
"path": "docs/contributing/mock/SpaceAllocation.md",
"chars": 1405,
"preview": "# TmpFsServer\n\n> 此文件是关于 `mirai-core-mock` 是如何分配文件资源路径的具体说明\n> \n> 所有的临时资源的路径 (包括: 图片, 语音, 群文件, etc.)\n>\n> 注:\n> - 此文档说明只适用于默"
},
{
"path": "docs/files/install-20210412.cmd",
"chars": 754,
"preview": "@echo off\npowershell (new-object System.Net.WebClient).DownloadFile( 'https://github.com/iTXTech/mcl-installer/releases/"
},
{
"path": "docs/mirai-ecology.md",
"chars": 25824,
"preview": "# A brief introduction of Mirai Ecosystem\n\nMirai是一个免费开源的QQ机器人框架,由于其开源和易拓展的优势,现在已经有很多基于Mirai的官方和非官方衍生框架和应用(下文统一称为**项目**),"
},
{
"path": "docs/mocking/Mocking.md",
"chars": 847,
"preview": "# Mirai - Mocking\n\n本章节介绍 mirai 模拟环境\n\n> mirai 模拟环境从 `2.13` 开始支持\n>\n> 注:\n> - **不支持**同时运行模拟环境和真实环境\n> - **不支持**从模拟环境切换回真实环境\n\n"
},
{
"path": "docs/src/Contacts.mermaid.md",
"chars": 1198,
"preview": "```mermaid\nclassDiagram\n\nclass Bot {\n +friends: ContactList\n +groups: ContactList\n +getFriend(Long) Friend?\n "
},
{
"path": "docs/src/Messages.mermaid.md",
"chars": 787,
"preview": "```mermaid\nclassDiagram\n\nclass MessageChain\nMessageChain : List~SingleMessage~\n\nMessage<|--MessageChain\nMessage<|--Singl"
},
{
"path": "gradle/wrapper/gradle-wrapper.properties",
"chars": 506,
"preview": "#\n# Copyright 2019-2023 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "gradle.properties",
"chars": 1149,
"preview": "#\n# Copyright 2019-2023 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "gradlew",
"chars": 7754,
"preview": "#!/bin/sh\n\n#\n# Copyright 2019-2023 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE v"
},
{
"path": "gradlew.bat",
"chars": 2674,
"preview": "@rem\n@rem Copyright 2015 the original author or authors.\n@rem\n@rem Licensed under the Apache License, Version 2.0 (the \""
},
{
"path": "install.sh",
"chars": 358,
"preview": "#\n# Copyright 2019-2022 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "logging/README.md",
"chars": 2288,
"preview": "# mirai-logging\n\nMirai 日志转接模块,用于使用各大主流日志库接管 Mirai 日志系统以实现统一管理。\n\n请注意,该接管不会影响通过 `redirectBotLogToFile()` 将 Bot 日志重定向到文件以及其"
},
{
"path": "logging/mirai-logging-log4j2/build.gradle.kts",
"chars": 856,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "logging/mirai-logging-log4j2/resources/META-INF/services/net.mamoe.mirai.utils.MiraiLogger$Factory",
"chars": 353,
"preview": "#\n# Copyright 2019-2021 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "logging/mirai-logging-log4j2/src/MiraiLog4JFactory.kt",
"chars": 1052,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "logging/mirai-logging-log4j2/test/MiraiLog4JAdapterTest.kt",
"chars": 1992,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "logging/mirai-logging-slf4j/build.gradle.kts",
"chars": 968,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "logging/mirai-logging-slf4j/test/MiraiSlf4JAdapterTest.kt",
"chars": 2204,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "logging/mirai-logging-slf4j-logback/build.gradle.kts",
"chars": 1027,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "logging/mirai-logging-slf4j-logback/test/MiraiSlf4JLogbackAdapterTest.kt",
"chars": 2240,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "logging/mirai-logging-slf4j-simple/build.gradle.kts",
"chars": 1019,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "logging/mirai-logging-slf4j-simple/test/MiraiSlf4JSimpleAdapterTest.kt",
"chars": 2239,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-bom/build.gradle.kts",
"chars": 1186,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/.gitignore",
"chars": 475,
"preview": "# Compiled class file\n*.class\n\n# Log file\n*.log\n\n# BlueJ files\n*.ctxt\n\n# Mobile Tools for Java (J2ME)\n.mtj.tmp/\n\n# Packa"
},
{
"path": "mirai-console/.gitmodules",
"chars": 117,
"preview": "[submodule \"frontend/mirai-android\"]\n\tpath = frontend/mirai-android\n\turl = https://github.com/mzdluo123/MiraiAndroid\n"
},
{
"path": "mirai-console/README.md",
"chars": 839,
"preview": "# mirai-console\n\n高效率 QQ 机器人框架\n\n## 使用\n\n- **[启动 Console](docs/Run.md)**\n\n### 安装 JAR 插件\n\n将 `jar` 文件放入 `plugins` 并重启 Mirai C"
},
{
"path": "mirai-console/backend/codegen/README.md",
"chars": 252,
"preview": "# Mirai Console - Backend.codegen\n\n后端代码生成模块,用于最小化重复代码的人工成本。\n\n- `MessageScope` 代码生成: [MessageScopeCodegen.kt: Line 33](sr"
},
{
"path": "mirai-console/backend/codegen/build.gradle.kts",
"chars": 1062,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "mirai-console/backend/codegen/src/Codegen.kt",
"chars": 4605,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/codegen/src/MessageScopeCodegen.kt",
"chars": 8480,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/codegen/src/ValuePluginDataCodegen.kt",
"chars": 8680,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/codegen/src/old/JSettingCodegen.kt",
"chars": 2571,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "mirai-console/backend/codegen/src/old/SettingValueUseSiteCodegen.kt",
"chars": 5625,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/codegen/src/old/ValueImplCodegen.kt",
"chars": 9140,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/codegen/src/old/ValuesCodegen.kt",
"chars": 6795,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/codegen/src/util.kt",
"chars": 3831,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version"
},
{
"path": "mirai-console/backend/integration-test/README.md",
"chars": 696,
"preview": "# Console - Integration Test\n\nMirai Console 一体化测试单元 (目前仅内部测试)\n\n---\n\n## 使用 Integration Test Framework\n\nTODO\n\n### 添加一个新测试\n"
},
{
"path": "mirai-console/backend/integration-test/build.gradle.kts",
"chars": 2917,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/src/AbstractTestPoint.kt",
"chars": 1144,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/src/AbstractTestPointAsPlugin.kt",
"chars": 2950,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/src/IntegrationTestBootstrap.kt",
"chars": 9954,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/src/MiraiConsoleIntegrationTestLauncher.kt",
"chars": 4616,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/src/utils.kt",
"chars": 4054,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/test/MiraiConsoleIntegrationTestBootstrap.kt",
"chars": 3371,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/test/testpoints/DoNothingPoint.kt",
"chars": 1328,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/test/testpoints/MCITBSelfAssertions.kt",
"chars": 1747,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/test/testpoints/PluginSharedLibraries.kt",
"chars": 1748,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/test/testpoints/plugin/PluginDataRenameToIdTest.kt",
"chars": 2850,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/test/testpoints/plugin/PluginDependOnErrorPlugin.kt",
"chars": 2380,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/test/testpoints/plugin/PluginOnDisableCalledOnlyOnceTest.kt",
"chars": 1197,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/test/testpoints/plugin/PluginWithExceptionTest.kt",
"chars": 2224,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/.gitignore",
"chars": 17,
"preview": "build.gradle.kts\n"
},
{
"path": "mirai-console/backend/integration-test/testers/MCITSelfTestPlugin/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 69,
"preview": "net.mamoe.console.integrationtest.ep.mcitselftest.MCITSelfTestPlugin\n"
},
{
"path": "mirai-console/backend/integration-test/testers/MCITSelfTestPlugin/src/MCITSelfTestPlugin.kt",
"chars": 1061,
"preview": "/*\n * Copyright 2019-2021 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/README.md",
"chars": 391,
"preview": "# Integration Test - Sub Testers\n\nIntegration Test 的测试插件, 放置在本文件夹内的全部插件均为 console 内部测试用插件\n\n如果您不是正在修改 mirai-console, 则不需要"
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/.module-group.txt",
"chars": 0,
"preview": ""
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/mirai-jar-after-2_11/.nested-module.txt",
"chars": 0,
"preview": ""
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/mirai-jar-after-2_11/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 333,
"preview": "#\n# Copyright 2019-2022 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/mirai-jar-after-2_11/src/After211.kt",
"chars": 1165,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/mirai-jar-after-2_11-without-new/.nested-module.txt",
"chars": 0,
"preview": ""
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/mirai-jar-after-2_11-without-new/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 345,
"preview": "#\n# Copyright 2019-2022 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/mirai-jar-after-2_11-without-new/src/After211NoNew.kt",
"chars": 983,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/mirai-jar-before-2_11/.nested-module.txt",
"chars": 0,
"preview": ""
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/mirai-jar-before-2_11/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 335,
"preview": "#\n# Copyright 2019-2022 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/mirai-jar-before-2_11/src/Before211.kt",
"chars": 1035,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/same-pkg-1/.nested-module.txt",
"chars": 0,
"preview": ""
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/same-pkg-1/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 315,
"preview": "#\n# Copyright 2019-2022 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/same-pkg-1/src/P.kt",
"chars": 655,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/same-pkg-2/.nested-module.txt",
"chars": 0,
"preview": ""
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/same-pkg-2/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 315,
"preview": "#\n# Copyright 2019-2022 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "mirai-console/backend/integration-test/testers/mirai-plugin-compatibility/same-pkg-2/src/P.kt",
"chars": 655,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/never-override-jdk-modules/module-jdk-module/.nested-module.txt",
"chars": 0,
"preview": ""
},
{
"path": "mirai-console/backend/integration-test/testers/never-override-jdk-modules/module-jdk-module/resources/mvn.txt",
"chars": 46,
"preview": "net.mamoe.consoleit.issue2141:javax-xml:1.0.0\n"
},
{
"path": "mirai-console/backend/integration-test/testers/never-override-jdk-modules/module-jdk-module/src/javax/xml/parsers/SAXParser.kt",
"chars": 365,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/never-override-jdk-modules/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 353,
"preview": "#\n# Copyright 2019-2022 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
},
{
"path": "mirai-console/backend/integration-test/testers/never-override-jdk-modules/src/NeverOverrideJdkModules.kt",
"chars": 1641,
"preview": "/*\n * Copyright 2019-2022 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/options-properties/independent-plugin/.nested-module.txt",
"chars": 0,
"preview": ""
},
{
"path": "mirai-console/backend/integration-test/testers/options-properties/independent-plugin/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 54,
"preview": "consoleittest.optionproperties.independent.Independent"
},
{
"path": "mirai-console/backend/integration-test/testers/options-properties/independent-plugin/src/Independent.kt",
"chars": 889,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/options-properties/resources/META-INF/mirai-console-plugin/options.properties",
"chars": 194,
"preview": "# suppress inspection \"UnusedProperty\" for whole file\n\nresources.resolve-console-system-resources=true\n\n\nclass.loading.b"
},
{
"path": "mirai-console/backend/integration-test/testers/options-properties/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 53,
"preview": "consoleittest.optionproperties.main.OptionsProperties"
},
{
"path": "mirai-console/backend/integration-test/testers/options-properties/src/OptionsProperties.kt",
"chars": 1257,
"preview": "/*\n * Copyright 2019-2023 Mamoe Technologies and contributors.\n *\n * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version "
},
{
"path": "mirai-console/backend/integration-test/testers/plugin-can-depends-on-mirai-console/resources/META-INF/services/net.mamoe.mirai.console.plugin.jvm.JvmPlugin",
"chars": 392,
"preview": "#\n# Copyright 2019-2023 Mamoe Technologies and contributors.\n#\n# 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可"
}
]
// ... and 1601 more files (download for full content)
About this extraction
This page contains the full source code of the mamoe/mirai GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 1801 files (12.1 MB), approximately 3.3M tokens, and a symbol index with 64 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.