微莹·纤绫
2db9804cf2
Mock Testing Framework ( #1521 )
...
Co-authored-by: Eritque arcus <1930893235@qq.com>
Co-authored-by: Him188 <Him188@mamoe.net>
2022-09-10 12:49:13 +08:00
Him188
f4db93745d
[core] Move structureToString from .core.utils.debug
to .core.utils
...
due to compiler bug.
2022-08-27 01:21:14 +08:00
Him188
965ab57aaa
[core] Move StructureToStringTransformer to mirai-core-utils, and use legacy implementation as fallback. close #2097 .
2022-08-26 18:42:56 +08:00
Him188
fb3f39e328
[core] Improve NetworkHandler exception handling and optimize exception logging:
...
- close #2175
- close #2148
- Fix `Throwable.findCause`
- Rename `mirai.network.handle.selector.logging` to `mirai.network.handler.selector.logging`
- Hide rather long and complicated `CancellationException`s, use `mirai.network.handler.cancellation.trace` to re-enable it
2022-08-26 15:20:04 +08:00
Him188
8dcc93089c
[core] Optimize ExceptionCollector, flatten suppressed exceptions and add them only to the last exception
2022-08-26 15:20:04 +08:00
Him188
5358b3e4d0
[core] slightly improve performance of toUHexString
2022-08-25 13:20:09 +08:00
Him188
eeb10cc89a
[core] Update docs for implementations
2022-07-31 15:44:48 +08:00
Him188
fd67ba9204
Configure shadow relocation and add checks for multiplatform publishing
2022-07-20 00:30:16 +08:00
AdoptOSS
7325c1f7e2
native: 优化 build script 及 actions,修复 ECDH 相关资源释放问题 ( #2110 )
...
* build: fix build on Windows
* test: fix ContentEqualsTest on native
* build: allow disabling targets with property
* fix: free ECDH-related resources properly on native
avoid memory leaking (usually on *nix) or crash (usually on Windows)
Signed-off-by: AdoptOSS <adoptoss@outlook.com>
* build(workflow): remove invalid options
* fix(styling): `mirai.target` property
* build(workflow): try to limit memory usage during mirai-console:tools:gradle-plugin:integTest
* enhance(test): use buildList
* build(workflow): retry
Co-authored-by: ArcticLampyrid <arcticlampyrid@outlook.com>
2022-07-20 00:30:16 +08:00
Him188
f962618bee
Fix compiler warnings
2022-07-20 00:30:16 +08:00
Him188
21c4a5ba04
Use kotlinx-coroutines-test
2022-07-20 00:30:16 +08:00
Him188
7dbb1a5ad7
Add RunConfigurations
2022-07-20 00:30:16 +08:00
Him188
4c6b879873
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.
#2084
2022-07-20 00:30:16 +08:00
Him188
daf9c4a208
Configure GitHub Actions for native
2022-07-20 00:30:16 +08:00
Him188
21d883b630
Introduce higher performance compression/decompression methods for different purposes for common
2022-07-20 00:30:16 +08:00
Him188
4f61417af6
Use Zlib for compression/decompression on native
2022-07-20 00:30:16 +08:00
Him188
13dadd5a95
Implement mirai-core for native
2022-07-20 00:30:16 +08:00
Him188
7088835402
HMPP
2022-07-20 00:30:16 +08:00
Him188
ff2a8acb0c
Implement multiplatform modules
2022-07-20 00:30:16 +08:00
Him188
ce87400998
Use ktor-io to replace kotlinx-io
2022-07-20 00:30:16 +08:00
Him188
0571be1a55
Commonize projects: mirai-core series, and mirai-console-compiler-annotations
2022-07-20 00:30:16 +08:00
Him188
d96641dedb
Configure HMPP project structure
2022-07-20 00:30:16 +08:00
Him188
c8fb354d13
Add LongMessageProtocolTest and various improvements:
...
Change attributes carrying helper objects to components
Make ClockHolder open
Use originalMessage for MessageReceipt
2022-05-25 22:39:53 +01:00
Him188
c1a7dd9843
Add some capability for delegation for TypeSafeMap
2022-05-25 22:39:53 +01:00
Him188
90deacb692
Fix imageType sent from macOS client, fix #1111
2022-05-25 22:39:53 +01:00
Him188
089b403a06
Allow nulls in TypeSafeMap
2022-05-25 22:39:53 +01:00
Him188
a89f6aeaef
Integrate new MessageProtocol with existing code
2022-05-25 22:39:53 +01:00
Him188
c47779c726
MessageProtocol implementations
2022-05-25 22:39:53 +01:00
Him188
a9516b401b
Generalize chineseLength
to mirai-core-utils
2022-05-25 22:39:53 +01:00
Him188
3be16c4644
Code cleanup. Remove duplicated internal utilities.
2022-04-25 14:15:29 +01:00
Him188
e7dcf676fc
Handle leading length for ByteArray.loadAs, fix deserialization problem with RequestPush. Fix #1991 , #1899 .
2022-04-25 14:06:31 +01:00
Him188
499f7beb1d
Add DeprecatedSinceMirai.internalSince
2022-04-13 12:34:30 +01:00
Him188
e78074c1a1
TypeSafeMap: allow using supertypes in get
with default value
2022-04-06 15:50:37 +01:00
Karlatemp
cf39a628a2
Drop emoji when rendering at; fix #1938
2022-03-27 21:49:04 +08:00
Him188
603e29d739
Add Either.flatMapNull
2022-03-16 15:27:11 +00:00
Him188
351357a8e0
Add ExceptionCollector.compressExceptions
2022-03-16 15:27:10 +00:00
Him188
7d3971259d
Review deprecation for 2.10. close #1742 ( #1774 )
2022-01-14 18:26:44 +00:00
Him188
662fbf8d1e
Deprecate experimental CoroutineScopeUtils
2022-01-10 23:27:23 +00:00
Karlatemp
6d16d77dad
Secrets Protection
2022-01-03 17:38:34 +00:00
Him188
ecc4425463
Move KClass.createInstance to mirai-core-utils and optimize TestPointPluginImpl.<init>
2021-12-23 01:37:11 +00:00
Him188
7faf630454
Update kotlin-jvm-blocking-bridge to 2.0.0-160.2
2021-12-23 01:37:11 +00:00
Him188
0711b5ae2e
Add TypeSafeMap.toMutableTypeSafeMap
2021-12-21 03:32:27 +00:00
Karlatemp
1d1a77ff1a
Test of rename folder
2021-12-19 00:46:46 +08:00
Him188
2367ee0fd9
Revert prohibition of sending file message: ( #1716 )
...
* Revert prohibition of sending file message:
- close #1715
- Report a warning in logging with stacktrace
- Show stacktrace only once
* Update util.kt
2021-12-06 15:32:51 +00:00
Karlatemp
561d333cc7
NetInternalKit
2021-12-05 18:28:44 +08:00
Him188
d5d0b35806
Add DeviceInfo.random(Random)
and implement equals
and hashCode
for DeviceInfo
2021-11-29 14:33:20 +00:00
Him188
a8e3916261
Add @DeprecatedSinceMirai
, close #1669
2021-11-26 17:50:25 +00:00
Karlatemp
cf2b4a193c
Fix bytecode analyze
2021-11-16 18:13:22 +08:00
Karlatemp
2422aa34b5
Add image caches; Fix deserialized image not rendering in ForwardMessage
; fix #1507 , fix #1636
2021-11-16 12:32:28 +08:00
Karlatemp
b5d8c708bd
Redesign MultiMsg; Support nested ForwardMessage sending; close #1198
2021-11-16 12:32:28 +08:00