Commit Graph

8367 Commits

Author SHA1 Message Date
Karlatemp
2ef6e37b9c
Fix DefaultBotAuthorizationFactory loading 2023-03-16 00:25:12 +08:00
Karlatemp
f3c1ffa1f3
Fix exception collecting 2023-03-16 00:24:28 +08:00
Karlatemp
eca3511521
Fix CoroutineOnDemandValueScope.receiveOrNull exceptional finish 2023-03-16 00:23:40 +08:00
Karlatemp
2256092059
Fix latch death locking 2023-03-16 00:12:27 +08:00
Karlatemp
2c435302e6
Revert protocol changes of MACOS 2023-03-16 00:11:55 +08:00
Karlatemp
fdedf8f08c
Merge remote-tracking branch 'origin/dev' into prs/2502-qrlogin
# Conflicts:
#	mirai-core/src/commonMain/kotlin/utils/MiraiProtocolInternal.kt
2023-03-15 23:31:43 +08:00
cssxsh
b6b1059107
update: MiraiProtocol IPAD MACOS (#2575) 2023-03-15 14:15:34 +00:00
Him188
74bd237c70
Add initialTicket to producerCoroutine 2023-03-12 17:56:47 +00:00
Him188
992f9289ce
Redesign auth 2023-03-12 17:13:25 +00:00
ArgonarioD
4f0f733f4d
修复JvmPlugin无法通过自己的classLoader以getResource的方法获取全局依赖的class文件 (#2536)
* [console] Fixed classLoaders of JvmPlugin cannot getResource(classes of global dependencies), fix #2535

* [core/utils/jvm] new fun: addAll(Enumeration)

* [console] modify DynLibClassLoader.tryFastOrStrictResolveResource to tryFastOrStrictResolveResources

* [console] remove allClassesAsResources field

* [console] add var to control whether class files of mirai dependencies could be load as resources

* [console/integration-test] modify loader test

* [console] dump new apis

* [console] rename JvmPluginClasspath.openMiraiDependenciesClassResource and standardize its KDoc

* [console] modify the KDoc of JvmPluginClasspath.shouldResolveConsoleSystemResource

* [console/integration-test] improve resources loading test cases

* [console/integration-test] modify assert to assertTrue
2023-03-12 22:37:47 +08:00
Him188
5abcd7fb26
Move AuthControl outside SsoProcessor 2023-03-12 12:02:57 +00:00
Him188
44a3472b3e
Merge remote-tracking branch 'origin/dev' into StageGuard_dev
# Conflicts:
#	mirai-core-api/src/jvmMain/kotlin/utils/LoginSolver.jvm.kt
2023-03-11 20:58:26 +00:00
Him188
f941b847cc
Update mirai-core-api/src/jvmMain/kotlin/utils/LoginSolver.jvm.kt 2023-03-11 20:57:26 +00:00
Eritque arcus
3ff2737b3c
Add fallback solution for Services (#2511)
* add fallback solution for Services

* use castUp

* throw exception when prop doesn't match

* cannot use castUp

* improve codes

* improve name of functions

* add both

* add override

* solve conflicts

* [core] Move MiraiCoreServices to common

* [core] Improvement

* update var names

* update func names

---------

Co-authored-by: Karlatemp <kar@kasukusakura.com>
2023-03-11 18:12:56 +08:00
ヒューマンワーキン
2f154b6807
[core] 增加 TxCaptchaHelper 可用性无法保证的警告 (#2564)
* Update LoginSolver.jvm.kt

* revert
2023-03-10 20:00:23 +00:00
ヒューマンワーキン
a0d9047b7b
修复 dumpTlvMap 不正确的返回值 (#2557)
* 修复 dumpTlvMap 不正确的返回值

* Update WtLogin.kt

* Update WtLogin.kt

注意力涣散.jpg
2023-03-08 11:58:24 +00:00
Karlatemp
b45fa8a507
update testing 2023-03-08 18:01:47 +08:00
Karlatemp
e29b4ecf27
Merge remote-tracking branch 'origin/dev' into prs/2502-qrlogin
# Conflicts:
#	mirai-core/src/commonMain/kotlin/utils/MiraiProtocolInternal.kt
2023-03-08 18:00:08 +08:00
sandtechnology
01d2851af1
Update android protocol version (#2551)
Thanks to MiraiGo.
Fixes #2545,#2492,#2453
2023-03-07 12:15:20 +00:00
7aGiven
1e4250a125
修改BotNudgedEvent为NudgeEvent (#2547) 2023-03-05 10:57:26 +00:00
Karlatemp
8ea04dce3b
console login with BotAuthorization 2023-03-05 12:07:16 +08:00
Karlatemp
61318032f9
QRCodeLoginListener.qrCodeStateUpdateInterval & onIntervalLoop 2023-03-04 00:14:25 +08:00
Karlatemp
5d4789ea2d
doc update 2023-03-02 23:10:32 +08:00
Karlatemp
9dfd01516a
Logic fixup 2023-03-02 23:10:32 +08:00
Him188
2d32dbe4db
Rename BotAuthComponent, move internal APIs to internal module 2023-03-02 14:16:06 +00:00
Him188
9d61a675af
Rename BotAuthorizationResult to BotAuthResult 2023-03-02 13:12:40 +00:00
Him188
9819381118
Rename QRCodeLoginListener.onStatusChanged to QRCodeLoginListener.onStateChanged 2023-03-02 12:59:22 +00:00
Him188
c52ae40008
Rename InconsistentBotException to InconsistentBotIdException 2023-03-02 12:56:24 +00:00
Him188
2fd8929add
Make BotAccount.<init> with String password parameter TestOnly 2023-03-02 12:46:31 +00:00
Him188
d11614d792
Remove phoneNumber parameter from BotAccount 2023-03-02 12:45:43 +00:00
Him188
849dd4e828
Rename canDoQRLogin to supportsQRLogin, and specify argument names for MiraiProtocolInternal 2023-03-02 12:44:04 +00:00
赵怡然
cb78ed34a5
[console] 修复在Android系统运行时,被杀后台时抛出的 InterruptedException 导致崩溃 (#2474)
* 修复在Android系统运行时,被杀后台时抛出的 InterruptedException 导致崩溃

* Update mirai-console/backend/mirai-console/src/MiraiConsoleImplementation.kt

Co-authored-by: Him188 <Him188@mamoe.net>

---------

Co-authored-by: Him188 <Him188@mamoe.net>
2023-03-01 17:57:57 +00:00
StageGuard
0285e1ff1b api dump 2023-02-28 09:54:30 +08:00
StageGuard
23f73f340c [core] add simple block for BotAuthorization 2023-02-28 09:10:52 +08:00
StageGuard
ba7557bde9 [core] update DebugRunHelper 2023-02-28 08:37:33 +08:00
Karlatemp
e10c6b7ecf
update docs 2023-02-27 23:37:29 +08:00
Karlatemp
9cf7ef94ad
api dump 2023-02-27 23:20:12 +08:00
Karlatemp
55dc5b3cf7
[core] Introduce UnsupportedCaptchaMethodException & UnsupportedQRCodeCaptchaException 2023-02-27 23:19:48 +08:00
Karlatemp
7038d32aa5
[core] Improve QRCode render 2023-02-27 23:10:53 +08:00
Karlatemp
3d751bd577
Delete LoginCommandTest 2023-02-27 22:42:02 +08:00
Karlatemp
51276a5934
[mock] Add new bot factory function to mock bot factory 2023-02-24 22:23:05 +08:00
StageGuard
5cef365d10
[core] remove passwordMd5 in BotAccount 2023-02-24 22:22:43 +08:00
Karlatemp
8c3e408e38
api dump 2023-02-24 21:14:40 +08:00
Karlatemp
24f8aeccc4
Revert changes of BotConfiguration 2023-02-24 21:13:34 +08:00
Karlatemp
6836368f14
[core] Implementation of BotAuthorization 2023-02-24 21:09:36 +08:00
Karlatemp
e487ec78a4
[core] Add SelectorRequireReconnectException 2023-02-24 21:06:43 +08:00
Karlatemp
02605832a1
[core] Protect data of BotAccount 2023-02-24 21:06:42 +08:00
Karlatemp
b15c0b9cde
[core] Move QRCodeLoginListener to .auth 2023-02-24 21:01:41 +08:00
NoMathExpectation
a6afd9540c
[console] Fixed reaching UNREACHABLE_CLAUSE when running extensions with non-null function results. (#2528) 2023-02-24 02:15:43 +00:00
Karlatemp
6ceff4b6db
[core] BotAuthorization.byXXX 2023-02-23 23:54:14 +08:00