Him188
802ab56311
Fix SelectorRecoveryTest
2022-06-08 23:41:00 +01:00
Him188
afa1cd2395
core: Close and join all jobs after each test
2022-06-08 23:41:00 +01:00
Him188
503704a61b
core, network: Guard changing state
2022-06-08 23:41:00 +01:00
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.
#2084
2022-06-08 23:40:59 +01:00
Him188
92b0cc5787
Broadcast BotOfflineEvent.Active after state OK -> CLOSED
2022-06-08 23:40:25 +01:00
Him188
58409f602b
core, network: Protect state overriding when setting a state
2022-06-08 23:40:25 +01:00
Him188
c180e96be5
Cancel TestEventDispatcher jobs after test
2022-06-08 23:40:25 +01:00
Him188
ca1043e7ff
Always close NetworkHandlerSupport even if CommonNetworkHandler is in CLOSED state
2022-06-08 23:40:24 +01:00
Him188
4de2f54f92
Use different types for TestState to try to fix JVM tests on Windows
2022-06-08 23:37:51 +01:00
Him188
d01dc577a2
Configure GitHub Actions for native
2022-06-08 23:37:51 +01:00
Him188
0030fe869c
Add dummy android.util.Log implementation for tests
2022-06-04 16:59:29 +01:00
Him188
611583fec3
Introduce higher performance compression/decompression methods for different purposes for common
2022-06-04 16:59:29 +01:00
Him188
1fb3305659
Remove debugging logs in EcdhInitialPublicKeyUpdater
2022-06-04 16:59:29 +01:00
Him188
8674573094
Ensure tests are consistent on all platforms, ensure order of MessageProtocols are consistent.
2022-06-04 16:59:28 +01:00
Him188
dfcc503951
Move JVM-specific tests from commonMain to jvmBaseMain
2022-06-04 16:59:28 +01:00
Him188
2f6b124e68
Move JVM-specific tests from commonMain to jvmBaseMain
2022-06-04 16:59:28 +01:00
Him188
872bfa9063
Fix MessageProtocolFacadeTest
2022-06-04 16:59:27 +01:00
Him188
40c622dfad
Fix LengthDelimitedPacketReader
2022-06-04 16:59:27 +01:00
Him188
853bcc22a4
Commonize PacketDecodePipeline for PacketCodec for all platforms
2022-06-04 16:59:27 +01:00
Him188
900c7feac7
Fix LengthDelimitedPacketReader
2022-06-04 16:59:26 +01:00
Him188
8085d94dfe
Fix socket issues
2022-06-04 16:59:26 +01:00
Him188
b5246d8a30
Add native test entrance
2022-06-04 16:59:26 +01:00
Him188
29c8d13795
Implement ECDH on native with OpenSSL
2022-06-04 16:59:26 +01:00
Him188
8655f44a50
Rewrite MessageSerializers, register serializers in each MessageProtocol, implement for native targets
2022-06-04 16:59:26 +01:00
Him188
900a7ed92d
Fix MessageProtocol loading
2022-06-04 16:59:25 +01:00
Him188
aabcff628a
Fix resolveIpFromHost
2022-06-04 16:59:25 +01:00
Him188
7a3576fe3e
Multiplatform HttpClient and fix time formatting
2022-06-04 16:59:25 +01:00
Him188
b94d431cd8
Implement mirai-core
2022-06-04 16:59:25 +01:00
Him188
8d65a22f01
Multiplatform MiraiFile and BinaryOps implementations
2022-06-04 16:59:24 +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
18a29415a7
Services
2022-05-27 00:10:52 +01:00
Him188
a1832a4de7
Implement ByteArrayOp
2022-05-26 22:39:23 +01:00
Him188
17430857a8
Rename MutableTypeSafeMap to createMutableTypeSafeMap and so for TypeSafeMap, to avoid linking issue
2022-05-26 19:13:11 +01:00
Him188
ee71263f41
Configure Rust interop
2022-05-26 02:45:32 +01:00
Him188
b9957bb5d4
Implement MiraiLogger for native
2022-05-26 01:29:44 +01:00
Him188
1083cd3a9e
Improve setState stability
2022-05-26 00:54:00 +01:00
Him188
c9d343db89
Fix jvmBase bugs caused by migration to common
2022-05-26 00:54:00 +01:00
Him188
72c108bc54
Add coroutine DebugProbes for commonMain
2022-05-25 22:58:20 +01:00
Him188
2396851b63
Change tests to multiplatform
2022-05-25 22:58:20 +01:00
Him188
20704b89b4
Introduce CommonNetworkHandler to share logic between different NetworkHandler implementations
2022-05-25 22:58:19 +01:00
Him188
dea435e24f
Make mirai-core and mirai-console relevant modules multiplatform
2022-05-25 22:57:20 +01:00
Him188
26cf9a9995
Use ktor-io to replace kotlinx-io
2022-05-25 22:56:50 +01:00
Him188
fb0f670986
Make mirai-core-api multiplatform
2022-05-25 22:42:17 +01:00
Him188
267ba3b58c
HMPP
2022-05-25 22:42:15 +01:00
Him188
297592b9f2
Do not throw exception when failed to locate desensitization rules, for tests on CI
2022-05-25 22:39:53 +01:00
Him188
c4a2f19db6
Use empty internalIds for all OnlineMessageSourceToGroupImpl to speed up tests.
2022-05-25 22:39:53 +01:00
Him188
ab3280f6b7
Add more MessageProtocolTest:
...
Add fragmented test
Fix MusicShareProtocol and implement sending tests for MusicShareProtocolTest
OutgoingMessagePipelineImpl: set stopWhenConsumed
Fix `currentMessageChain` not updated in `processAlso`, add strong message packets checks, add tests for converting messages failed to send at FIRST step to LongMessageInternal
Add notes for receiving ForwardMessage
Add facade parameters to `download ForwardMessage*`
Add ForwardMessageProtocolTest
Add QuoteReplyProtocolTest
Add CONTAINING_MSG for MessageDecoderContext.attributes, for information-use only
Fix MessageReceiptTest
Fix QuoteReplyProtocolTest
2022-05-25 22:39:53 +01:00
Him188
c75d1f7074
Add MessageSource.isOriginalMessageInitialized
2022-05-25 22:39:53 +01:00