Commit Graph

8497 Commits

Author SHA1 Message Date
StageGuard
6682782168
[core] cleanup 2023-09-03 13:27:57 +08:00
StageGuard
fcb38d7111
[core] change sig 2023-09-03 13:24:44 +08:00
StageGuard
a01035a1e9
[core] adapt test 2023-08-30 10:04:30 +08:00
StageGuard
272fe60db5
[core] add default parameter for getNewFriendRequestList$default 2023-08-30 10:01:00 +08:00
StageGuard
4c4b714fa9
[core] change argument from NewFriendRequestEvent to NewFriendRequest in LowLevelApiAccessor 2023-08-30 09:09:32 +08:00
StageGuard
76aa8bad8d
api dump 2023-08-29 16:29:19 +08:00
StageGuard
06c9562072
[core] mock impl 2023-08-29 16:23:54 +08:00
StageGuard
5b0e27406c
[core] protocol api of get unsolved friend request 2023-08-29 16:20:19 +08:00
StageGuard
b449270fbc
[core] move sync controller in NewContact to specific notice processor 2023-08-29 15:10:27 +08:00
StageGuard
4acd66711a
[core] avoid potential null cast when refining OnlineShortVideoMsgInternal 2023-08-25 22:16:27 +08:00
StageGuard
5651d642fa
[doc] add ShortVideo to message protocol list 2023-08-25 17:38:58 +08:00
Him188
f6b5a23734
[core] 更新 ANDROID_WATCH 注释, 标注当群被设置为不提醒的的时候, 服务器不会推送消息, close #2546 2023-08-24 10:31:27 +08:00
StageGuard
5b3e508b75
feature: add ShortVideo message support (#2739)
* initial support for ShortVideo message

* dump api

* [core] upload protocol

* [core] short video upload event

* [core] doc

* [core] protocol

* [core] fix mp4 file check

* [core] extract fileName from `OnlineShortVideo` to `ShortVideo`

* [core] ShortVideo.Builder

* [core] mirai code support for `ShortVideo`

* [core] add doc for OnlineShortVideo and OfflineShortVideo

* [core] fix text

* dump api

* update `Contact.uploadShortVideo`·` doc

* [core] remove mirai code support for ShortVideo

* [core] ensure Mirai service is loaded before load other services

* [core] introduce `CombinedExternalResource` to reference multiple external resources for combined calculation.

* [core] move refine context key defined in `OnlineShortVideoMsgInternal` to `RefineContext`

* [core] remove data class

* [core] broadcast `ShortVideoUploadEvent.Failed` event

* [core] warn when cannot determine fromId

* [core] add `contentToString` and `toString` for `OnlineShortVideoMsgInternal`

* [core] optimize imports

* [core] import

* [core] revert

* [core] doc

* [core] auto close resource

* dump api

* keep consistence of param name

* update doc

* move Builder to OfflineShortVideo

* optimize RefineContext

* RefineContext.merge

* dump api

* fix test

* show more video info

* optimize constructor and builder of offline short video

* optimize thumbnail

* move thumbnail to main constructor arg

* dump api

* avoid null cast exception.

* combine format transition

* cleanup
2023-08-20 18:41:05 +08:00
Him188
c4815c9a7f [build] 更新 dev 分支版本号到 2.16.0 2023-08-20 15:36:00 +08:00
Samarium
167ea338f8
[idea] feat: support IDEA 2023.2 (#2775)
feat: support IDEA 2023.2

close #2769
2023-08-20 15:21:57 +08:00
cat.Y
1c7bba8305
[core] 修复 NormalMember.specialTitle 注释中 @see 的错误关联显示,并完善注释 (#2777)
* 修复NormalMember.specialTitle注释中@see的错误关联显示,并完善注释

* 修改NormalMember.specialTitle注释中@suppress的语句表述
2023-08-20 15:20:22 +08:00
Him188
5ef291f648
[core] Remove jvmBase target (#2772)
* [core] Remove jvmBase: Contact, FileSupported, ExternalResource, FileCacheStrategy, RemoteFile

* [core] Remove jvmBase: AbsoluteFolder

* [core] Remove jvmBase: RoamingMessages

* [core] Remove jvmBase: EventChannel

* [core] Remove jvmBase: message

* [core] Remove jvmBase: logging

* [core] Remove jvmBase: Streamable

* [core] Remove jvmBase: AbstractBotConfiguration

* [core] Remove jvmBase: test and cleanup module
2023-08-14 10:42:42 +08:00
Him188
42763fd15c
[core] Move DeviceInfo from jvmBase to common 2023-08-12 16:10:29 +08:00
Him188
af89f4d66d
[build] Use Gradle distribution gradle-8.0-bin.zip 2023-08-12 14:42:38 +08:00
cssxsh
a7d9039901
在 CI 构建时上传 Maven 本地仓库作为构建产物 (#2725)
fix: ci
2023-08-12 14:08:24 +08:00
Hamusuta0320
e61b058153
[core] 修复从可确定图片类型的字符串组成的 mirai code 构造的图片 type 为 UNKNOW 或与期望类型不一致 (#2761)
* [core]修复从可确定图片类型的字符串组成的mirai code构造的图片type为UNKNOW或与期望类型不一致

* [core]修复从可确定图片类型的字符串组成的mirai code构造的图片type为UNKNOW或与期望类型不一致

* [core]修复从可确定图片类型的字符串组成的mirai code构造的图片type为UNKNOW或与期望类型不一致

* Update mirai-core-api/src/commonMain/kotlin/message/data/Image.kt

---------

Co-authored-by: Him188 <Him188@mamoe.net>
2023-08-12 14:05:38 +08:00
cssxsh
0aad162cad
[console] Deprecate PermitteeId.hasChild and replace with PermitteeId.isChildOf (#2762)
* fix: hasChild

* fix: docs

* feat: contains

* add: api dump

* fix: isChildOf
2023-08-12 14:00:53 +08:00
StageGuard
fca4a3cfb4
[api] check device info file permission before upgrade 2023-07-28 10:39:43 +08:00
Karlatemp
575bac4a1e
[core] Fix MiraiInternalFile annotation 2023-07-26 17:00:44 +08:00
cssxsh
d93b55f57a
[console] Add AutoLoginEvent.toString() (#2750)
* feat: AutoLoginEvent.toString

* add: api dump

* fix: AutoLoginEvent.toString

* fix: cause info
2023-07-26 16:27:59 +08:00
cssxsh
7daf2d56bc
[console] Pre check plugin duplication & console requirement (#2703)
* feat: check in load plugin

* feat: console requirement

* feat: dependsOn mirai

* feat: dependsOn docs

* fix: docs

* use: net.mamoe.mirai-console

* revert

* [console] Wrap mirai-console as a plugin

* [console] Fix plugin dependencies checking skipped already loaded plugins

* [console/tests] Check plugin can depends on mirai-console

---------

Co-authored-by: Karlatemp <kar@kasukusakura.com>
2023-07-26 16:27:29 +08:00
cssxsh
5ace423f2a
[console] Refactor org.slf4j.spi.SLF4JServiceProvider service file (#2701)
* move spi

* add: mirai-console self test source
2023-07-26 16:27:05 +08:00
赵怡然
d1295c4e39
default encodeBase64/decodeBase64 mode to NO_WRAP on Android (#2753) 2023-07-26 13:25:22 +08:00
Karlatemp
7859767b56
[console] Fix exception not caught when closing bot while auto login; fix #2740 2023-07-25 19:28:32 +08:00
Karlatemp
61e8501c66
[core] Fix network initialize order; Ensure bot components when network handler allocated; fix #2740 2023-07-25 19:28:30 +08:00
Karlatemp
eab15f9125
[core/test] Disable AuthorizationReasonTest.force offline 2023-07-25 16:39:22 +08:00
Karlatemp
8a8689eb82
[core] Tried to fix AuthorizationReasonTest.force offline 2023-07-25 15:29:32 +08:00
Karlatemp
061bd28798
[build/testing] Add jupiter-api back to testing 2023-07-25 15:29:05 +08:00
微莹·纤绫
861fd8d3c3
[console] Load plugins with plugin.yml (#2735)
* [console] Load plugins with plugin.yml

* api dump

* kdocs; keep old internal constructor
2023-07-25 14:51:47 +08:00
Karlatemp
dd2a9e38e8
[gradle] Skip EUR in runConsole 2023-07-25 14:46:34 +08:00
Karlatemp
d9e3045d65
[console] EndUserReadme 2023-07-25 14:46:33 +08:00
Karlatemp
3763996590
[console/terminal] Fix input queue blocked when previous request was cancelled 2023-07-25 14:46:29 +08:00
赵怡然
6e7dcadcf9
[core] Fix qimei request payload (#2749)
Fix error decoder
2023-07-24 22:53:20 +08:00
ParaN3xus
ee30203e3a
[console] Optimize comments of AutoLogin.yml (#2742) 2023-07-23 09:06:32 +08:00
Karlatemp
bd3f50f848
Bump netty & bcprov version 2023-07-15 09:44:00 +08:00
Karlatemp
405f52d3ad
[core] protocol properties public view 2023-07-11 02:27:37 +08:00
Karlatemp
64f4f8c208
[build] Fix android binary validator 2023-07-11 02:22:54 +08:00
Karlatemp
1903d10333
[build] Fix android source set not depends on jvmBaseMain when using jvm android target 2023-07-11 01:35:19 +08:00
cssxsh
eecff3bc4e
update: Questions.md 23-07-03 (#2721)
* update: Questions.md

* update: Questions.md

* update: Questions.md

* add: tips
2023-07-05 22:51:32 +08:00
Karlatemp
685fb2d3d9
[core] Handle UnsupportedOperationException on EncryptService initialize & add special signals 2023-07-03 20:37:30 +08:00
Karlatemp
96e93e670e
[core] Drop qua holding 2023-07-02 21:50:04 +08:00
Karlatemp
fa389f40bb
Refactor attachToBot to Factory 2023-07-02 21:27:03 +08:00
sandtechnology
787ee833cc
Fix extradata not passed for simple packet 2023-07-02 21:27:03 +08:00
sandtechnology
8af6c3fcf6
Remove unused EncryptServiceContext value and pass QUA
All final value only need to passed to initialize method
2023-07-02 21:27:03 +08:00
Karlatemp
19132b359b
[core] Provide CoroutineScope to service 2023-07-02 21:27:03 +08:00