1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-27 14:40:39 +08:00
Commit Graph

338 Commits

Author SHA1 Message Date
Him188
673ef11e75
Upgrade to Ktor 2.0.2, use CIO engine for linux targets; Remove ktor-client-okhttp from mirai-core-api jvmBaseMain
Use Input.readAllText instead of Input.readText, because readText only reads one buffer.
2022-06-08 23:40:59 +01:00
Him188
df783bf566
Fix failed PluginDataRenameToIdTest due to previous MPP change 2022-06-04 16:59:29 +01:00
Him188
7e9e248f2c
HMPP for multiple native targets 2022-06-04 16:59:23 +01:00
Him188
6214ae1e61
fix linking 2022-06-04 16:59:22 +01:00
Him188
51e0ccd324
Implement concurrent collections, remove PriorityQueue and use sortedBy, use Kotlin 1.7.0-RC 2022-06-04 16:59:08 +01:00
Him188
dea435e24f
Make mirai-core and mirai-console relevant modules multiplatform 2022-05-25 22:57:20 +01:00
Him188
0b5f3c2516
Make mirai-console-compiler-annotations multiplatform 2022-05-25 22:42:19 +01:00
Him188
267ba3b58c
HMPP 2022-05-25 22:42:15 +01:00
Him188
b40b681f81 Deprecate EmptyMessageChain in favor of emptyMessageChain() 2022-05-25 22:39:53 +01:00
Him188
a9516b401b Generalize chineseLength to mirai-core-utils 2022-05-25 22:39:53 +01:00
Karlatemp
167a29e0d8
Fix build 2022-05-24 18:10:18 +08:00
Karlatemp
48c2b04a49
Fix plugin's dependencies classes linking; fix 2022-05-24 17:56:29 +08:00
Karlatemp
e25e604c79
Copy modules as maven module 2022-05-24 17:30:58 +08:00
Karlatemp
50e7462b6b
Rename Access to Classpath 2022-05-24 17:00:30 +08:00
Karlatemp
72d248f1e6
Fix DynLibClassLoader class resolving logic 2022-05-23 18:26:33 +08:00
Karlatemp
237320317e
JvmPluginClassLoaderAccess 2022-05-23 18:26:33 +08:00
Karlatemp
b0711ed9ab
Setup vm-names of JvmPluginClassLoader's libraries classloaders 2022-05-23 17:41:51 +08:00
Him188
26c3bca473
Do not require plugin to be loaded for getPluginDescription 2022-05-21 15:25:28 +01:00
Karlatemp
6d0e5adf95
Fix ktor 2.0.0 linking (); Improve console plugin classloader logic
- Drop `io.ktor` in consoleRuntimeClasspath included by `core-api: api(io.ktor)`; Fix 
- Fix IT.plugin-resolve-self-dependencies-over-console-ones
- Fix IT.plugin-use-console-deps-fallback
- Fix plugin dependencies linked to AppClassLoader if any external dependencies used
2022-05-21 21:24:09 +08:00
Him188
12dfc6faa7
Update introductory dev docs 2022-05-19 13:39:29 +01:00
Karlatemp
97a37a196f
Fix nested projects building; Fix 2022-05-18 17:24:39 +08:00
Karlatemp
92a5babf1c
Using a released version to run gradle tests 2022-05-18 17:24:39 +08:00
Him188
0da75d31b9 Fix readStringListFromEnv when no env specified 2022-05-08 09:48:10 +01:00
TheFatCat
9d18d79d66
fix docs and add java example () 2022-05-07 07:36:12 +01:00
Him188
008398bd84
Update README.md 2022-05-06 14:47:17 +01:00
Karlatemp
78d0cdd155
Fix bom dependencies again; Fix 2022-05-05 22:44:48 +08:00
Karlatemp
8250c3da65
Using PlatformClassLoader to resolve java.*; fix 2022-05-04 16:36:13 +08:00
cssxsh
edf7622b0b
fix: ContactOrBot.render () 2022-05-04 16:28:14 +08:00
Karlatemp
115c987c2d
[skip ci] Fix documents building 2022-05-02 19:31:02 +08:00
Him188
61d68c245d Refine docs examples 2022-05-02 11:16:24 +01:00
Him188
8c9d2e4707 添加插件文档 "使用日志" 2022-05-02 11:14:23 +01:00
Him188
7a6c7a89c0
Update docs for console plugin ()
* Update docs for console plugin

* Update [skip ci]

* Update docs

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2022-05-01 18:03:10 +01:00
Him188
6b5f9e2eef Change file suffix of new plugins to '.mirai2.jar'. Ignore '.mirai.jar' if its '.mirai2.jar' counterparts loaded. Close 2022-05-01 17:59:05 +01:00
Him188
4993e59fd0 JavaPluginSchedulerImpl: run jobs with runInterruptible 2022-04-27 12:53:33 +01:00
Him188
bb8cd86daa Update dependencies:
Kotlin 1.6.21
Dokka 1.6.20
coroutines 1.6.1
atomifFU 0.17.2
serialization 1.3.2
ktor 1.6.7
blocking-bridge 2.0.0-162.1
dynamic-delegation 0.3.0-162.2
2022-04-26 11:12:35 +01:00
Him188
e2477645cd Migrate references of JAutoSavePluginConfig in docs 2022-04-25 14:18:14 +01:00
Him188
3be16c4644 Code cleanup. Remove duplicated internal utilities. 2022-04-25 14:15:29 +01:00
Him188
2780fc4761 Fix build 2022-04-24 16:47:42 +01:00
Him188
854b55f216 Add plugin tests PluginResolveSelfDependenciesOverConsoleOnes, close 2022-04-24 16:18:22 +01:00
Him188
556c805448 console IT: Do not delete entire test sandbox, keep libraries 2022-04-24 16:15:17 +01:00
Him188
97ce422b33 Update docs for console IT 2022-04-24 15:45:58 +01:00
Him188
112bf537cc Try useExperimentalAnnotation if optIn not defined 2022-04-24 15:30:02 +01:00
Him188
a4562a7aef buildPlugin: Change output directory back to build/mirai 2022-04-24 15:30:02 +01:00
Him188
0e72fe9757 Use optIn, close 2022-04-24 15:20:14 +01:00
Him188
ffbe540800 Fix AbstractPluginData.findBackingFieldValueNode 2022-04-24 15:05:53 +01:00
Him188
45defb32a2 Fix support for Any and support primitive and reference arrays, close 2022-04-24 15:05:44 +01:00
Him188
d4095fa5c6
Add JavaAutoSavePluginData and deprecate JAutoSavePluginData to fix saving issues. () 2022-04-24 10:37:42 +01:00
Him188
be832c7dbd
Support serializersModule for PluginData, close . Improve PluginData.value type inference behavior: resolve exact returned type. ()
Also support `MessageChain` and others from `MessageSerializers.serializersModule`, fix .
2022-04-24 10:37:10 +01:00
Karlatemp
35c08e8b16
Link mirai-core in console IT, fix non-hard-linked dependencies resolving 2022-04-23 17:15:20 +08:00
Karlatemp
e6e8f77f41
Skip if dependencies have no jars; fix 2022-04-22 23:58:12 +08:00