Commit Graph

5696 Commits

Author SHA1 Message Date
Him188
f31f525343 Add util Array<Byte>.toUHexString 2021-09-01 13:55:39 +08:00
Him188
a1dba40f80 Add util CollectionDiff 2021-09-01 13:55:39 +08:00
Him188
f1c2393434 Add util readResource 2021-09-01 13:55:39 +08:00
Him188
f40659b1c7 Make TypeSafeMap() returns TypeSafeMap.EMPTY 2021-09-01 13:55:39 +08:00
Him188
1ffa9eb957 Add toString for TypeSafeMap implementations 2021-09-01 13:55:39 +08:00
Him188
49c6734722 Fix ParseErrorPacket not logged 2021-09-01 13:55:39 +08:00
Him188
da9dd1e353 Add gradle configuration "use.maven.local" 2021-09-01 13:55:39 +08:00
Him188
8663978d65 Add RecordingNoticeProcessor 2021-09-01 13:55:39 +08:00
Him188
a86c0384d4 Add AbstractPipelineContext 2021-09-01 13:55:39 +08:00
Him188
93ae89500a Fix EventBroadcasterPacketHandler.impl 2021-09-01 13:55:39 +08:00
Him188
4efbec6570 Make UnconsumedNoticesAlerter disabled by default 2021-09-01 13:55:39 +08:00
Him188
edb1713f91 Add TraceLoggingNoticeProcessor 2021-09-01 13:55:39 +08:00
Him188
f5fe442cc8 Add simple constructor for TypeSafeMap 2021-09-01 13:55:39 +08:00
Him188
f5b2dbc65d Avoid boxing in TypeSafeMap and support serialization 2021-09-01 13:55:39 +08:00
Him188
2696f0b95e Remove .debug in mirai.network.debug.notice.pipeline.log.full 2021-09-01 13:55:39 +08:00
Him188
61c764bfe0 Ensure all items in MultiPacket are visited 2021-09-01 13:55:39 +08:00
Him188
9c272ebf1e Migrate more transformers to NoticeProcessorPipeline 2021-09-01 13:55:39 +08:00
Him188
edf1bc9a2e Migrate more transformers to NoticeProcessorPipeline 2021-09-01 13:55:39 +08:00
Him188
e097c5ab9d Add MutableProcessResult; remove locks 2021-09-01 13:55:39 +08:00
Him188
d15767fa9b Remove outdated todo in FriendNoticeProcessor 2021-09-01 13:55:39 +08:00
Him188
39773cd763 Move bkn from QQAndroidBot to WLoginSigInfo 2021-09-01 13:55:39 +08:00
Him188
8e947cd4e0 Delete empty ProtoBuf.kt 2021-09-01 13:55:39 +08:00
Him188
d7d693ae6a apiDump 2021-09-01 13:55:39 +08:00
Him188
41733e23ef Extract utils into multiple files 2021-09-01 13:55:39 +08:00
Him188
1b80fbc1e6 Redesign notice handling and introduce NoticeProcessorPipeline part 3:
- Extract `SyncController`;
- Add super type `ProtocolStruct` to `ProtoBuf` and `JceStruct` to standardize `NoticeProcessorPipeline.process`
- and other implementations for pipeline
2021-09-01 13:55:39 +08:00
Him188
be4423c993 Fix ByteArray.loadAs 2021-09-01 13:55:39 +08:00
Him188
d6b4bb9fb5 Remove Group.newAnonymousMember 2021-09-01 13:55:39 +08:00
Him188
089d0eed8c Improve performance 2021-09-01 13:55:39 +08:00
Him188
09265190e9 Add UnconsumedNoticesAlerter and cleanup
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-09-01 13:55:39 +08:00
Him188
56cbe2d8a2 Redesign notice handling and introduce NoticeProcessorPipeline part 2
Do not broadcast StrangerAddedEvent if added twice, fix stranger scope not closed

Do not add new instance if there is already one

Close and remove corresponding stranger instance if there is new friend.
2021-09-01 13:55:39 +08:00
Him188
e1ffaa5410 Fix incorrect coroutine scope created for contacts in IMirai.newFriend and IMirai.newStranger 2021-09-01 13:55:39 +08:00
Him188
dc54679acb Redesign notice handling and introduce NoticeProcessorPipeline 2021-09-01 13:55:39 +08:00
Him188
497a458be4 Add TypeSafeMap 2021-09-01 13:55:39 +08:00
Him188
d7b493cd34 Use internal types in implementations of properties in Bot 2021-09-01 13:55:39 +08:00
Him188
975dd8e50b Use NormalMemberImpl for properties of GroupImpl 2021-09-01 13:55:39 +08:00
Him188
03a18724fe Add out variance to generic type of ContactList 2021-09-01 13:55:39 +08:00
Him188
dad2d965ab Add contracts to cast, safeCast and castOrNull; Add uncheckedCast 2021-09-01 13:55:39 +08:00
Him188
f90320bd2b
Snapshots publishing (#1465)
* Add snapshots publishing

* fix workflow

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* Create tag on releasing snapshots

* fix

* fix

* fix

* Publish only when tagged `v*`

* MAMOE_TOKEN

* fix

* fix

* Close repository but not publish on release

* Ignore documentations for snapshots publishing

* Update docs for snapshots

* Remove unused newly added files

* Disable all shadow tasks on snapshots publishing

* Remove concurrency limitation for publish-mirai

* fix

* fix

* fix

* Remove publishMiraiCoreArtifactsToMavenLocal
2021-09-01 13:47:02 +08:00
Him188
c0d85f3e9d Set version to 2.8.0-M1 2021-08-31 11:15:43 +08:00
Him188
8d1884c98a
Fix typo 2021-08-28 01:44:06 +08:00
Him188
8a86c3722f
Update Messages.md 2021-08-28 01:42:37 +08:00
Him188
57ac8780bd Update docs on Voice and Audio in Messages.md 2021-08-27 20:47:42 +08:00
Him188
68a0c7c33b
Update ConfiguringProjects.md
隐藏 "开发"
2021-08-27 20:40:10 +08:00
Karlatemp
8ab6a489d0
Remove jcenter 2021-08-27 16:36:50 +08:00
Him188
9590abd702
Try to fix network when sending lots of packets 2021-08-27 15:40:53 +08:00
Karlatemp
66c209381d
Improve event log 2021-08-26 22:28:33 +08:00
Him188
7358d00bcf Allow NetworkHandler.State.LOADING in SelectorRecoveryTest 2021-08-26 08:01:35 +08:00
Him188
994893605d Set version to 2.8-M1 2021-08-25 16:07:08 +08:00
Him188
2a33fed3a1 Update docs 2021-08-25 16:05:22 +08:00
Him188
b41ee54f6c Release version 2.7.0 2021-08-25 16:04:09 +08:00