1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-05 07:10:11 +08:00
Commit Graph

7995 Commits

Author SHA1 Message Date
Him188
802ab56311
Fix SelectorRecoveryTest 2022-06-08 23:41:00 +01:00
Him188
7999aa2aea
Fix measureTimeMillis 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
1b0a8cb2d5
Give minimum value of 4 for
`availableProcessors` on Windows
2022-06-08 23:41:00 +01:00
Him188
ca8dad5ae7
Use read mode rb and wb for MiraiFile on Linux and macOS 2022-06-08 23:40:59 +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.
2022-06-08 23:40:59 +01:00
Him188
7b5dc7c672
Configure apiBuild dependsOn jar tasks only 2022-06-08 23:40:26 +01:00
Him188
92b0cc5787
Broadcast BotOfflineEvent.Active after state OK -> CLOSED 2022-06-08 23:40:25 +01:00
Him188
3d57f4cb68
Implement MiraiFile on Windows 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
23016f7732
Use macosX64 and macosArm64 for MAC_TARGETS only, if not in IDEA 2022-06-04 19:46:04 +01:00
Him188
780bee4836
Fix JVM ABI 2022-06-04 17:21:45 +01:00
Him188
0030fe869c
Add dummy android.util.Log implementation for tests 2022-06-04 16:59:29 +01:00
Him188
df783bf566
Fix failed PluginDataRenameToIdTest due to previous MPP change 2022-06-04 16:59:29 +01:00
Him188
f10b40591d
Document ByteArray from/to Number conversions 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
48e8268461
Fix fileBasedDeviceInfo on native: exception when file does not exist 2022-06-04 16:59:28 +01:00
Him188
6daef11399
Use Zlib for compression/decompression on native 2022-06-04 16:59:28 +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
2a67d5138a
Add linkage workaround for 32bit targets 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
d7be842853
Fix currentTimeMillis 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
1f5493ba97
Change common ByteArrayPool to 128 * 4096 2022-06-04 16:59:27 +01:00
Him188
419f373189
Ensure default MiraiLogger.Factory behaves the same on 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
06616bac35
Fix loading deviceJson from JSON string on JVM; fix loading deviceJson from JSON string and file on native. 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
4fe56409ec
HMPP 2022-06-04 16:59:25 +01:00
Him188
b94d431cd8
Implement mirai-core 2022-06-04 16:59:25 +01:00
Him188
b7e4ed75d7
Migrate -Xopt-in to -opt-in 2022-06-04 16:59:25 +01:00
Him188
9f6a09061d
Ensure for all MessageChain subclasses, equals, hashCode give consistent results. 2022-06-04 16:59:24 +01:00
Him188
bcfd613103
Fix MiraiFileImpl on unix targets 2022-06-04 16:59:24 +01:00
Him188
322ae8b58e
HMPP 2022-06-04 16:59:24 +01:00
Him188
8d65a22f01
Multiplatform MiraiFile and BinaryOps implementations 2022-06-04 16:59:24 +01:00