Him188
eb89b6348d
[core] Support solving device verification request by SMS:
...
- close #2190 , helps #717
- deprecate `LoginSolver.onSolveUnsafeDeviceLoginVerify`, add `.onSolveDeviceVerification`
2022-09-11 19:41:16 +08:00
Cyl18
1691172667
add: Chaldene library ( #2243 )
2022-09-10 17:39:10 +08:00
Karlatemp
657b414c90
[mock] remove override of AbstractExternalResource
2022-09-10 13:29:53 +08:00
微莹·纤绫
2db9804cf2
Mock Testing Framework ( #1521 )
...
Co-authored-by: Eritque arcus <1930893235@qq.com>
Co-authored-by: Him188 <Him188@mamoe.net>
2022-09-10 12:49:13 +08:00
Him188
2eb2c3acd0
[core] Add default AbstractExternalResource.input
implementation
2022-09-09 18:43:29 +08:00
Him188
951e835a26
[core] Fix sender name in forwarded messages. close #2187
2022-09-07 13:02:48 +08:00
Karlatemp
3949c9c08c
Fix terminal resolving; Fix terminal logic error
2022-09-06 18:21:41 +08:00
Karlatemp
500ad3cc9e
Fix console integration test
2022-09-06 18:21:40 +08:00
Karlatemp
d24a5912d3
Redesign terminal
2022-09-06 18:21:39 +08:00
Karlatemp
7952f0c15d
Update terminal dependencies
...
- org.jline:jline:3.21.0
- org.fusesource.jansi:jansi:2.4.0
2022-09-06 18:21:38 +08:00
Karlatemp
5ac74a336f
Create module mirai-console-frontend-base
2022-09-06 18:21:37 +08:00
Karlatemp
af2b38d476
Make MultiFilePluginDataStorageImpl.logger
lazy init
2022-09-06 18:21:36 +08:00
Karlatemp
a94c98d990
Add FrontendLoggingInitContext.invokeAfterInitialization
2022-09-06 18:21:25 +08:00
Him188
637fe1a5b9
Upgrade atomicfu to 0.18.3
2022-09-04 20:40:53 +08:00
cssxsh
e00f592b84
[console] feat: login use auto login account configuration ( #2209 )
...
* feat: other account configuration
* add: test
2022-09-02 07:50:08 +08:00
ExMikuPro39
7b11ed509e
add easyMirai Library ( #2221 )
...
add easyMirai Library
2022-09-02 07:47:23 +08:00
cssxsh
7804ca1d7d
fix: watch and macOS ( #2228 )
2022-09-02 07:45:33 +08:00
Karlatemp
df6789889d
Fix jvm test resource directory resolving
...
¿¿ Who wrote it¿¿¿
2022-08-31 21:49:56 +08:00
Karlatemp
969c77f146
[console] Change convention of createLoggerFactory()
2022-08-28 22:52:48 +08:00
Him188
e967b888a3
[build] Run JVM builds no macOS, and concurrently to improve speed
2022-08-28 13:48:56 +08:00
Him188
5935e16029
[build] Remove matrix osmacos-os for Native builds
2022-08-28 12:39:53 +08:00
Him188
428089617f
[build] Run JVM builds on Windows
2022-08-28 12:36:55 +08:00
Him188
15dea7a6b2
[build] Run JVM builds on Windows
2022-08-28 12:36:02 +08:00
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
Him188
f4db93745d
[core] Move structureToString from .core.utils.debug
to .core.utils
...
due to compiler bug.
2022-08-27 01:21:14 +08:00
Him188
965ab57aaa
[core] Move StructureToStringTransformer to mirai-core-utils, and use legacy implementation as fallback. close #2097 .
2022-08-26 18:42:56 +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
eb892da093
[build] Fix build when local.properties
not found
2022-08-26 16:42:18 +08:00
Him188
f87c142a69
[build] Support disabling modules and targets
2022-08-26 16:38:05 +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
Him188
8dcc93089c
[core] Optimize ExceptionCollector, flatten suppressed exceptions and add them only to the last exception
2022-08-26 15:20:04 +08:00
Him188
c1213bb0ca
[docs] Fix typo, close #2207
2022-08-25 16:05:15 +08:00
Novices
59ef90fd53
add SDK mirai-epl ( #2205 )
...
add SDK mirai-epl
2022-08-25 15:19:48 +08:00
Him188
de6bf17f0e
[docs] Fix typo, close #2207
2022-08-25 15:05:10 +08:00
Him188
5358b3e4d0
[core] slightly improve performance of toUHexString
2022-08-25 13:20:09 +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
3ae6c2802e
[console] Change Aliyun public repository to central respiratory. Fix #2184
2022-08-20 16:19:40 +08:00
Him188
648681a2ee
[core] Avoid deserialization error on sending group announcement, helps #2069 .
...
Note this can not actually solve the problem that announcement had failed to send.
2022-08-20 16:15:33 +08:00
微莹·纤绫
85d81efc4a
[console] Console artifacts downloading progress ( #2140 )
...
* Console artifacts downloading progress
* Add missing code
* Update kdoc & naming
* make `terminalDisplay` internal
* improve performance
* Update DownloadingProgress.kt
[skip ci]
* Rename DownloadingProgress to ProcessProgress
* make ProcessProgress stable
2022-08-20 15:58:03 +08:00
Him188
a843729f53
[docs] Add changelog for 2.12.2
2022-08-16 11:41:00 +08:00
Him188
fa9fa2cb89
[docs] Fix minor typo. Fix #2119
2022-08-16 11:39:15 +08:00
Him188
7ff61becee
[core] fix up 2e4cab43
: Rename MiraiInternalMessageFlag
to SkipEventBroadcast
; Do not broadcast pre- and post-message events for FileMessages that sent internally. #2195
...
full rev: 2e4cab4365
2022-08-16 11:33:56 +08:00
Him188
9dc25bb1f3
[core] fix up previous 2e4cab43
: fix omitted change. #2195
2022-08-16 11:33:00 +08:00
Him188
2e4cab4365
[core] Fix sending FileMessage on uploadNewFile
(regression in 2.12.0), fix #2195
2022-08-16 10:54:55 +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
e6bef9ce1e
[core/common] Process packet body in launched coroutines, instead of suspending the processing queue. part of #2160 .
2022-08-15 16:41:17 +08:00
Him188
9dd57de844
[core] Fix cache dir on native. part of #2160 .
2022-08-15 16:18:50 +08:00
Him188
74dfa9b71a
[docs] use relative link for release note for 2.13.0-M1
2022-08-15 16:11:24 +08:00