Commit Graph

782 Commits

Author SHA1 Message Date
Him188
dba3cb5707 Simplify expression 2020-03-07 12:45:34 +08:00
Him188
e222465ded Make account internal 2020-03-07 00:24:37 +08:00
Him188
472da8d3f6 List support 2020-03-06 22:05:55 +08:00
Him188
92df108740 Support Lists 2020-03-06 19:09:34 +08:00
Him188
2260d331d4 Support ByteArray 2020-03-06 18:33:01 +08:00
Him188
d01c3c4675 Support optional elements 2020-03-06 17:51:48 +08:00
Him188
e52a394060 Add tests 2020-03-06 15:16:33 +08:00
Him188
19cc131247 Suppress false positive warnings 2020-03-06 15:15:39 +08:00
Him188
24983d8bbe Throws EOFException rather than IllegalStateException 2020-03-06 15:14:51 +08:00
Him188
115ccec9ed Rearrange classes 2020-03-06 14:41:15 +08:00
Him188
d8c64286e2 Use constant 2020-03-06 14:17:30 +08:00
Him188
4085ecbdd8 Fix warnings 2020-03-05 21:39:53 +08:00
Him188
3b16f0a226 Fix warnings 2020-03-05 21:36:46 +08:00
Him188
b0abd0df28 Skip field when preparing next head 2020-03-05 21:21:06 +08:00
Him188
bfcb8606a2 Merge branch 'master' into kotlin-1.3.70 2020-03-05 15:49:48 +08:00
Him188
cde198759c Rewrite Jce 2020-03-05 14:52:35 +08:00
Him188
8c48ca8136 Use new serialization 2020-03-05 14:52:12 +08:00
Him188
8777d583b0 Merge remote-tracking branch 'origin/kotlin-1.3.70' into kotlin-1.3.70
# Conflicts:
#	mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/highway/HighwayHelper.kt
#	mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/chunked.kt
2020-03-05 09:45:12 +08:00
Him188
9bff0f77ec Kotlin 1.3.70 2020-03-05 09:44:50 +08:00
Him188
33d562a296 Merge remote-tracking branch 'origin/kotlin-1.3.70' into kotlin-1.3.70 2020-03-04 21:50:49 +08:00
Him188
9a039e1602 Fix reference
(cherry picked from commit 8dabeba40d)
2020-03-04 21:50:17 +08:00
Him188
8dabeba40d Fix reference 2020-03-04 21:21:23 +08:00
Him188
c962bd2641 Revert "Adapt new kotlinx.serialization"
This reverts commit 0a6b39e6
2020-03-04 14:11:36 +08:00
Him188
60b6eab73e Revert "Update to Kotlin 1.3.70"
This reverts commit 2e57e358
2020-03-04 13:58:01 +08:00
Him188
b62151ea6e Fix dependency 2020-03-04 12:23:33 +08:00
Him188
0a6b39e62c Adapt new kotlinx.serialization 2020-03-04 10:50:54 +08:00
Him188
30b6181e3e Fix #105 2020-03-04 09:32:32 +08:00
Him188
095feaf5cb Fix #106 2020-03-04 09:27:37 +08:00
Him188
b9d5fa4c14 Fix #107 2020-03-04 09:14:53 +08:00
Him188
a5c3e9f5ba Misc improvements 2020-03-04 09:01:34 +08:00
Him188
2e57e358c3 Update to Kotlin 1.3.70 2020-03-04 08:54:56 +08:00
Him188
e6cb229b18 Unified packet sending 2020-03-03 20:51:55 +08:00
Him188
a448dbbaf8 Fix relogin 2020-03-03 20:14:35 +08:00
Him188
a9753c4414 Fix sendMessage 2020-03-03 16:43:18 +08:00
Him188
12ebfa1db5 Unified Image types: Online/Offline Image, Group/Friend Image 2020-03-03 13:45:33 +08:00
Him188
3c25c3df65 Simplify calls 2020-03-03 10:26:50 +08:00
Him188
9047fd0d4c Bump version to 8.2.7 2020-03-03 09:47:33 +08:00
Him188
8042249f51 Rename toChain to asMessageChain, add more java-friendly apis 2020-03-03 09:31:01 +08:00
Him188
56bf626a59 Pass @LowLevelAPI annotation 2020-03-03 08:47:32 +08:00
Him188
9b1f17b074 Specify JvmNames 2020-03-03 08:47:18 +08:00
Him188
dc7d73f148 Misc improvements 2020-03-03 08:43:32 +08:00
Him188
cadbd7ff3a Deprecate Bot.qq, Bot.get, Bot.contains 2020-03-03 08:32:39 +08:00
Him188
28c0530268 Add more builders for Bot 2020-03-03 08:26:15 +08:00
Him188
6a324d4ab7 Use strong reference to qq in Member 2020-03-02 16:01:40 +08:00
Him188
d97bd5b960 Use strong reference to qq in Member 2020-03-02 15:59:30 +08:00
Him188
52138ec34d Fix versions 2020-03-02 14:33:02 +08:00
Him188
b7fa7adf99 Add Java-friendly APIs for Contacts 2020-03-01 20:13:52 +08:00
Him188
ed712295fe Add Java-friendly APIs 2020-03-01 17:10:55 +08:00
Him188
bd1a968db9 misc 2020-03-01 16:55:33 +08:00
Him188
ca0d0969b9 Add fast-paths 2020-03-01 15:46:04 +08:00
Him188
49e34f8302 Fix filter 2020-03-01 15:38:33 +08:00
Him188
da610ee8b7 Remove debugging log 2020-03-01 15:35:55 +08:00
Him188
83faf81fb2 Better API visibility 2020-03-01 15:26:46 +08:00
Him188
bbf991103d Add MessageSource.originalMessage 2020-03-01 14:40:51 +08:00
Him188
58b1a4d7e3 Reduce code complexity 2020-03-01 14:40:24 +08:00
Him188
03e22bcfef Replace mirai_version with miraiVersion 2020-03-01 13:01:36 +08:00
Him188
3748963a03 Support MessageReceipt.quoteReply for group 2020-03-01 01:55:03 +08:00
Him188
3d6fe5a803 Add Cmd0x858 2020-03-01 00:31:53 +08:00
Him188
1dd4caa057 Support recall events, close #88 2020-02-29 23:48:44 +08:00
Him188
6a85769e0d Use io.ktor.utils.io than kotlinx.io 2020-02-29 23:19:53 +08:00
Him188
ffee2e26fc Use ktor.io than kotlinx.io 2020-02-29 21:25:30 +08:00
Him188
1e9b34a636 Add low-level apis 2020-02-29 14:46:40 +08:00
Him188
067a949630 Rename MessageSource.senderId to MessageSource.qqId 2020-02-29 13:58:27 +08:00
Him188
756e8b537e Improve equals 2020-02-29 13:24:24 +08:00
Him188
6afc11df45 Remove debugging printlns 2020-02-28 22:05:17 +08:00
Him188
01ff846929 Fix copyTo 2020-02-28 22:02:34 +08:00
Him188
469181e249 Fix imageUpload 2020-02-28 21:38:11 +08:00
Him188
e2170175c9 Fix image uploading 2020-02-28 20:23:09 +08:00
Him188
ccf5df944e ImageUpload: enhance performance using ByteArrayPool, send chunked packets separately 2020-02-28 19:17:32 +08:00
Him188
932a3ef1f2 Review: misc improvements 2020-02-28 19:16:22 +08:00
Him188
a7755cd736 Rename readPacket to readPacketExact 2020-02-28 13:27:46 +08:00
Him188
fca3d6bd7a Make HttpClient.postImage not suspend 2020-02-28 13:11:28 +08:00
Him188
0d08956349 Add timeout check for uploading image 2020-02-28 10:26:52 +08:00
Him188
be63ec48fa Review: misc improvements 2020-02-26 12:54:06 +08:00
Him188
753f3261e0 Review: misc improvements 2020-02-26 10:36:14 +08:00
Him188
8b9cef05d7 Specify OverFileSizeMaxException throws 2020-02-24 17:09:08 +08:00
Him188
6cbc69cd68 Fix sequenceId for FriendMessage 2020-02-24 10:26:27 +08:00
Him188
babc21198c Add timeout 2020-02-23 19:31:26 +08:00
Him188
10da499039 Structured Message 2020-02-23 18:14:26 +08:00
Him188
ccc6826e3a Redesign MessageChain:
Make MessageChain immutable
Introduce CombinedMessage, a left-biased list
Introduce MessageChainBuilder
2020-02-23 16:47:21 +08:00
Him188
5590ef510d Powerful ExternalImage: support various types of input 2020-02-23 12:22:51 +08:00
Him188
ec30eef250 Powerful QuoteReply 2020-02-23 02:12:04 +08:00
Him188
5f141cdb6d Supports friend message quote reply 2020-02-23 01:29:21 +08:00
Him188
17aff7d599 Make quoteReply common to MessagePacket 2020-02-23 01:01:20 +08:00
Him188
ee2dcc8584 Fix improper receiver use 2020-02-22 23:45:40 +08:00
Him188
692e7c950c Image download support, close #49 2020-02-22 23:32:47 +08:00
Him188
b70bf5e042 Rewrite recall and MessageSource.id 2020-02-22 21:47:02 +08:00
Him188
8454d78293 Move recall from Contact to Group 2020-02-22 21:12:32 +08:00
Him188
3d8485fee5 Fix .last bug 2020-02-22 16:22:49 +08:00
Him188
0015b7bcc1 Make MessageSource.messageUid int 2020-02-22 13:48:13 +08:00
Him188
0e30d3d69b Better memory management 2020-02-22 11:36:19 +08:00
Him188
da2b279a19 Merge remote-tracking branch 'origin/master' 2020-02-22 11:24:41 +08:00
Him188
616957430a Remove MessageSource.sourceMessage 2020-02-22 10:59:27 +08:00
ryoii
876da07144 tool man fixes bugs which he doesnt know at all 2020-02-22 00:40:40 +08:00
Him188
8d11578265 Use newly introduced linear processing 2020-02-21 22:29:58 +08:00
Him188
b26b3bbfbc Fix MemberImpl.equals 2020-02-21 22:29:17 +08:00
Him188
e580992e0b Fix At 2020-02-21 21:07:00 +08:00
Him188
b09dadce99 Add toString 2020-02-21 20:29:57 +08:00
Him188
0015f3817c Unified group imageId 2020-02-21 20:28:48 +08:00
Him188
97da6fce60 Ensure sequenceId available 2020-02-21 19:04:29 +08:00
Him188
587fab23e1 Support recall, add MessageReceipt 2020-02-21 18:21:58 +08:00
Him188
ff8e6e8b80 Add sequenceId to MessageSource 2020-02-21 16:29:39 +08:00
Him188
776e591556 Support MemberLeaveEvent.Quit, close #51 2020-02-21 15:33:16 +08:00
jiahua.liu
cdf8347c18 try to fix Chinese Groupcard support 2020-02-20 23:38:34 +08:00
Him188
1f4a41239e Suppress warnings 2020-02-20 22:55:29 +08:00
Him188
629c354e38 Fix build. close #82 2020-02-20 22:46:04 +08:00
Him188
086f04e1f5 Add member.muteTimeRemaining 2020-02-20 22:36:19 +08:00
Him188
68140a14ff Fix botMuteTimeRemaining updating 2020-02-20 22:20:16 +08:00
Him188
cb06520b8e Explicitly override hashCode and toString in interface Contact, close #80 2020-02-20 22:01:34 +08:00
Him188
9437d1528d Unified relogin cause 2020-02-20 21:42:20 +08:00
Him188
48682f3090 correct filename 2020-02-20 21:33:52 +08:00
Him188
828332b7d9 Fix At, close #73 2020-02-20 21:31:09 +08:00
Him188
45c6c4dbfa Adapt for concurrent events 2020-02-20 21:19:59 +08:00
Him188
3d4ff807af Add MessageSource.time 2020-02-20 13:24:27 +08:00
Him188
797dd598b3 Fix heartbeat 2020-02-20 11:33:10 +08:00
Him188
c04a00414e Make fast relogin faster 2020-02-20 11:26:51 +08:00
Him188
7838ccf042 Adjust file names 2020-02-20 11:23:37 +08:00
Him188
57dfd0f1eb Log only once 2020-02-19 21:20:28 +08:00
Him188
31adf3510e Fix "Received: null" 2020-02-19 21:00:46 +08:00
Him188
a81eea422b Face decoding 2020-02-19 20:28:10 +08:00
Him188
7de048245e Fix null packet 2020-02-19 20:27:55 +08:00
Him188
f0fbebebc6 Add toString 2020-02-19 18:29:14 +08:00
Him188
2deb1601a8 No broadcast for events from friend message syncing 2020-02-19 18:28:58 +08:00
Him188
bcaafbbe76 Fix inappropriate Event extend 2020-02-19 18:02:27 +08:00
Him188
e878307c13 Fix event broadcasting 2020-02-19 14:43:31 +08:00
Him188
3e3a792c6c Suppress warnings 2020-02-19 14:24:23 +08:00
Him188
9aa79e69b0 Add doc 2020-02-19 14:22:55 +08:00
Him188
171929d938 Add warning log 2020-02-19 14:21:30 +08:00
Him188
d1153e3c02 Remove redundant log 2020-02-19 14:16:51 +08:00
Him188
8f94935e08 Remove redundant log 2020-02-19 14:16:22 +08:00
Him188
9de13ca6fd Fix ECDH 2020-02-19 14:15:38 +08:00
Him188
0508e8d894 Add details in exception 2020-02-19 13:32:43 +08:00
Him188
985f368f7d Fix friend message syncing 2020-02-19 13:09:05 +08:00
Him188
41a12089e3 Improve performance: use object 2020-02-19 13:08:44 +08:00
Him188
64a02f1ea6 Unwrap inline class 2020-02-19 13:08:10 +08:00
Him188
9488ea2634 Make generic type TPacket nullable 2020-02-19 13:07:11 +08:00
Him188
f6ab87f1ef Unified bot.logger and network.logger 2020-02-19 12:23:09 +08:00
Him188
b2e0114e4f Adjust job cancelling hence fix #65 2020-02-19 11:28:23 +08:00
Him188
0ce0b336a1 Fix #62 2020-02-19 10:59:29 +08:00
Him188
866a5ac6c8 F**k kotlin compiler 2020-02-18 13:45:21 +08:00
Him188
fc4fb4f297 Retry fetch group on fail 2020-02-18 13:35:28 +08:00
Him188
4bec7d753b Make java user happier 2020-02-18 13:18:30 +08:00
Him188
29091e817f Fix gradle dependency 2020-02-18 13:03:51 +08:00
Him188
7d283808f7 Rename awaitDisconnection to join 2020-02-17 09:26:32 +08:00
Him188
b59ae076ec Add context getter 2020-02-17 00:16:50 +08:00
Him188
ef4588832b Fix publish 2020-02-16 13:54:42 +08:00
Him188
7f82767c40 Remove unused file 2020-02-16 00:56:55 +08:00
Him188
a402e3a5da
Update README.md 2020-02-16 00:31:37 +08:00
Him188
7e96aa5a12 Add retry for queryGroupInfo 2020-02-15 23:02:54 +08:00
Him188
a555180493 Fuck bintray publish 2020-02-15 22:54:17 +08:00