Him188
f0651c81c6
[core+console] Improve logging hierarchy: ( #2196 )
...
- always use factory API from mirai-core
- Terminal is still overriding standard outputs
- plugins are forbidden to override logging framework (this was allowed but not working before)
2022-08-27 18:46:16 +08:00
Him188
2d393ee0b0
[core+console] Raise deprecation level for 2.13: ( #2213 )
...
- warningSince 2.11 -> errorSince 2.13
- errorSince 2.12 -> hiddenSince 2.13
- some experimental APIs removed
2022-08-27 14:06:03 +08:00
Eritque arcus
fea1d28488
[core] Support friend group ( #2113 )
...
* feat: support friend group
* remove unnecessary modifications
* toByteArray2
* support friendGroup, with api dump
* support rename, with api dump
* modify as required
* modify as required
* reverse
* doc
* FriendGroups
* api dump
* modify as required
* fix CI
* FriendGroup sync notice
* api dump
* modify as required
* immutable
* add friends: ContactList in FriendGroup
* more sync notice
* modify log content
* Change `FriendGroup.friends` to `Collection<Friend>`
* Fix `FriendGroup.friends.isEmpty()`
* modified as require, untested
* del count and online count in info
* change import
* fix missing import
* set @since 2.13 and modified as required
* modified as required
* modified as required
* doc
* change friendGroupId type to Int?
* api dumped
* change friendGroupId type to Int?
* introduce null to friendGroupId
* modified as required
* chore
* api dump
* chore: remark
* change int? to int
* api dump
* Update mirai-core-api/src/commonMain/kotlin/data/FriendGroups.kt
Co-authored-by: Him188 <Him188@mamoe.net>
* Move FriendGroup and FriendGroups to contact.friendgroup
* Make `Friend.friendGroup` not null
* add FriendGroups.default for default group
* Redesign FriendGroup interface
Co-authored-by: Karlatemp <kar@kasukusakura.com>
Co-authored-by: Him188 <Him188@mamoe.net>
2022-08-26 16:56:09 +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
Eritque arcus
b4066ac6d1
NextEventAndIntercept and NextMessageAndIntercept ( #2177 )
...
* rewrote pr, no tested
* test and change param position
* enable ci
* finish test
* modified as required
* typo
2022-08-23 18:07:03 +08:00
Him188
a51f55124c
Mark ExternalResource.isAutoClose
, ExternalResource.useAutoClose
and ExternalResource.runAutoClose
stable
2022-08-16 10:26:45 +08:00
Him188
39074f1764
[build] Update to Kotlin 1.7.10:
...
Kotlin 1.7.10
kotlinx-serialization 1.3.3
kotlinx-coroutines 1.6.4
kotlinx-atomicfu 0.17.3
Ktor 2.1.0
2022-08-15 18:36:40 +08:00
Him188
9dd57de844
[core] Fix cache dir on native. part of #2160 .
2022-08-15 16:18:50 +08:00
Eritque arcus
6b8c054948
[core] Support change friend remark ( #2112 )
...
* feat: support ChangeFriendName
* fix: register factory
[skip ci]
* rebase dev
* kdoc?
* api dump
* kdoc
* rebase dev
* remove unnecessary modification
* info::remark -> info.remark
* rebase dev
* api dump
* try to fix CI
* Add `@since` for `Friend.remark` setter
Co-authored-by: Him188 <Him188@mamoe.net>
2022-08-14 10:15:42 +08:00
Him188
f96c156d82
[core] Implement ConstrainSingle
for Audio
( fix #2093 )
2022-08-12 09:14:16 +08:00
cssxsh
9db5d2c4b5
Add client properties to MessageSyncEvents, add OtherClientCommandSenderOnMessageSync and MessageSyncEvent.toCommandSender
2022-08-03 11:27:39 +08:00
cssxsh
c38740ce2f
在 Image 序列化时支持全部属性 ( #2036 )
...
* fix: Image Serializer Delegate
* use: api dump
* add: test Image serialization
* fix: type (SerialName) and deserialize
* fix: native test
2022-07-22 03:05:08 +08:00
Him188
e5cad1d0ba
Rewrite MessageSerializers for new project structure ( #2159 )
2022-07-20 15:09:09 +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
21c4a5ba04
Use kotlinx-coroutines-test
2022-07-20 00:30:16 +08:00
Him188
cca40b8aa3
Add dummy jvmBase target for IDE
2022-07-20 00:30:16 +08:00
Him188
7dbb1a5ad7
Add RunConfigurations
2022-07-20 00:30:16 +08:00
Him188
4230a6e84c
Remove MiraiLogger.subLogger in mirai-core-api to overcome declaration clash on native
2022-07-20 00:30:16 +08:00
Him188
fe0a4de368
Produce shared libraries and static libraries
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
d27228c8c8
Rewrite MessageSerializers, register serializers in each MessageProtocol, implement for native targets
2022-07-20 00:30:16 +08:00
Him188
13dadd5a95
Implement mirai-core for native
2022-07-20 00:30:16 +08:00
Him188
732e61e37d
Ensure for all MessageChain subclasses, equals
, hashCode
give consistent results.
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
a4e7fda416
Raise deprecation level for 2.12
2022-06-14 11:19:44 +01:00
Him188
1a2241b8b2
Add Java-friendly EventChannel.exceptionHandler API, close #1953
2022-06-08 21:42:20 +01:00
Him188
bcaf9b5060
Fix warningSince for deprecation of GroupEntranceAnnouncementChangeEvent
2022-06-08 21:40:42 +01:00
Him188
67984bfbad
Deprecate GroupEntranceAnnouncementChangeEvent, as per #1873
2022-06-08 21:31:50 +01:00
Him188
38465972ba
Add more details in QuoteReply.toString
2022-05-25 22:39:53 +01:00
Him188
c75d1f7074
Add MessageSource.isOriginalMessageInitialized
2022-05-25 22:39:53 +01:00
Him188
7687749030
Add more details in MessageSource.toString
2022-05-25 22:39:53 +01:00
Him188
3e38f359ba
Add ForwardMessage.BuilderNode.toString
2022-05-25 22:39:53 +01:00
Him188
3b7eb40529
Add implementation notes for MessageSource.originalMessage
2022-05-25 22:39:53 +01:00
Him188
54b3bf405f
Add notes for Dice.name
2022-05-25 22:39:53 +01:00
Him188
08d1fc1f38
Add more MessageProtocolTest
2022-05-25 22:39:53 +01:00
Him188
a8c231485c
SilentLogger: return false for all isEnabled checks
2022-05-25 22:39:53 +01:00
Him188
0bb86a3b11
Rearrange functions in MessageVisitor to correspond their hierarchy
2022-05-25 22:39:53 +01:00
Him188
0cef98dec0
Fix OfflineAudioFactory configuration
2022-05-25 22:39:53 +01:00
Him188
d6a56f1052
Remove generic type on MessageVisitorUnit
2022-05-25 22:39:53 +01:00
Him188
287769799a
Enable kotlin-dynamic-delegation in mirai-core and mirai-core-api
2022-05-25 22:39:53 +01:00
Him188
0c708c8197
Redesign MessageChain hierarchy: Add LinearMessageChainImpl and CombinedMessage
2022-05-25 22:39:53 +01:00
Him188
b40b681f81
Deprecate EmptyMessageChain
in favor of emptyMessageChain()
2022-05-25 22:39:53 +01:00
Him188
3955546868
Add MessageVisitor
, MessageVisitorEx
, Message.accept
and Message.acceptChildren
as internal API
2022-05-25 22:39:53 +01:00
cssxsh
a1a517c03f
fix: FileMessage.Delegate SerialName ( #2041 )
2022-05-18 09:07:31 +01:00
Him188
d8ceb7ae5b
Fix @since
2022-05-16 19:14:14 +01:00