Commit Graph

8119 Commits

Author SHA1 Message Date
Him188
e503371ad5
[docs] Update docs for configuring projects. Helps #2275 2022-10-20 13:16:14 +01:00
Karlatemp
ddfd22e541
[core] [Network] Handle non ipaddress converting caused by some unknown 2022-10-20 12:58:09 +08:00
Karlatemp
58ab562322
[core - JVM] [Network] Wrap exception from connecting to NettyChannelException to allow selector to reconnect 2022-10-20 12:56:39 +08:00
Him188
1d6e6ea67d
[core] Ensure MPP metadata with all available platforms is uploaded before uploading platform artifacts. Fix #2270 2022-10-19 16:30:20 +01:00
Him188
eab14647e1
[core] Fix ArrayIndexOutOfBoundsException when loading device infos generated by < 2.9.0. Fix #2280 2022-10-19 16:19:34 +01:00
Chlorie
7ebbff9f50
Fix BuildingCore.md wording (#2285)
[skip ci]
2022-10-18 23:13:44 +08:00
Karlatemp
5fb1d714f7
[core] Improve exception message of Outdated Version 2022-10-15 22:39:27 +08:00
Him188
9042b1298d
Update bug.yml 2022-10-15 10:22:28 +01:00
Him188
4595f937e4
[core] Add MessageChain.deserializeFromMiraiCode without redundant receiver MessageChain. 2022-10-14 16:00:31 +01:00
Him188
4276b67b2b
[core] Fix internal comments in estimateLength 2022-10-13 15:39:00 +01:00
Him188
73293251d1
[core] Improve docs for messages 2022-10-13 15:35:34 +01:00
Him188
3b5ced4328
[core] Improve exception thrown by MessageChain.recall and .recallIn: add tips 2022-10-13 15:35:24 +01:00
Karlatemp
dc6f590581
[mock] Fix building
- caused by 5ed9dc7e
2022-10-13 00:27:55 +08:00
Him188
5ed9dc7e89
[core] Check service configuration when loading MessageProtocols. Helps #2268 2022-10-12 14:54:47 +01:00
Him188
4d80e0e6d3
[core] Improve documentation on processor pipeline system. 2022-10-12 14:38:17 +01:00
Him188
7c1e468b85
[core] Load FriendGroups separately from Friends. Fix #2274. 2022-10-12 12:05:31 +01:00
Him188
7fd3234ff3
[core] Fix bot.close, ensure network is also closed, fix recursion problems. Fix #2266 2022-10-10 22:51:02 +01:00
Karlatemp
eb9143d520
[core] Use ptt codec 2022-10-10 00:34:06 +08:00
Karlatemp
9eef7d3787
[core] Fix group audio url fetching. fix #2269 2022-10-10 00:10:25 +08:00
Him188
faa7ebeaba
[build] Add notes to configureRelocationForCore 2022-10-03 12:44:41 +01:00
Him188
394c0a5b4e
[core] Relocate com.squareup.okhttp3 and com.squareup.okio. Fix #2263 2022-10-03 12:38:55 +01:00
Karlatemp
cae7b1161c
[mock] Unified contacts data 2022-10-03 12:40:56 +08:00
Karlatemp
495542d2a2
[mock] Fix modules plus-ing 2022-10-03 12:40:56 +08:00
微莹·纤绫
52c0e40552
Update Mocking.md [skip-ci] 2022-10-03 10:19:56 +08:00
Him188
16609fb1e0
[core] Introduce Streamable for simplified multiplatform asFlow a… (#2256)
* [core] Introduce `Streamable` for simplified multiplatform `asFlow` and `asStream`. Make `Announcements.asFlow` not suspend.

* Remove `@JvmBlockingBridge` in native
2022-09-25 23:44:18 +08:00
Him188
2da0a2d6d3
[core] Fix relevant uses of Closeable 2022-09-23 23:01:39 +08:00
Him188
d4f4ea30d4
[build] Update idea plugin version to 221-2.13.0-171-2 2022-09-23 22:09:10 +08:00
Him188
ead98b192d
[docs] Add release note for 2.13.0-RC 2022-09-23 22:09:02 +08:00
ヒューマンワーキング
8cb8a71f16
[intellij] 从 Maven Central 获取 kotlin jvm 版本 (#2244)
* get kotlin version from Gradle Plugins

* add `kotlinVersion` to project module

* add kotlin version cell to wizard initial step

* get dependency `kotlin-stlib-*` version from maven

* rename `KotlinJvmVersion` to `KotlinStdlibVersion`

* `KotlinJvmVersion.kt` -> `KotlinStdlibVersion.kt`
2022-09-23 22:02:43 +08:00
Him188
d1273401f6
[core] Remove dependency kotlinx-coroutines-jdk8 from mirai-core-api 2022-09-23 21:38:07 +08:00
Him188
9122dddfb7
[core] Add net.mamoe.mirai.utils.Closeable for MPP use 2022-09-23 21:38:06 +08:00
Him188
b360f58c2b
[core] Make ExternalResource.input an internal API. helps #2254 2022-09-23 21:38:06 +08:00
cssxsh
d000f2ea0f
[core] add group level api (#2115)
* add: api dump

* feat: Member.level

* add: api dump

* rename: level to rank

* feat: rank show

* feat: honor flag

* fix: honor flag index

* feat: record and chart

* feat: flag and docs

* add: api dump

* fix: active

* fix: honor

* fix: active

* fix: rebase

* fix: docs

* feat: MemberActive

* fix: for review

* feat: other notification

* remove: low level api

* add: since and api dump

* add: since

* for: review

* add: event sync

* fix: name and docs

* fix: api dump

* fix: for review

* add: ActiveRank, MemberMedal close #2233

* fix: active for review

* improve public API for inlined GroupHonorType

* Change `@since 2.13.0` to `@since 2.13`

* dump api changes

* implement mock framework for Active

* change `GroupActive.flush` to `GroupActive.refresh`

* improve docs for GroupActive

* remove unnecessary expect/actual for MemberActive

* change property names in GroupInfo

* check permission in MockGroupActiveImpl

* optimize member names in  CommonGroupActiveImpl

* fix error checking

* dump api

Co-authored-by: Him188 <Him188@mamoe.net>
2022-09-21 23:18:50 +08:00
Him188
aa40f3f3d7
[core] fix since version of ExternalResource.input 2022-09-21 12:01:47 +08:00
Him188
00db1fe187
[build] Use modified shadow plugin to fix ASM mapping issues. Close #2230. 2022-09-20 18:50:04 +08:00
Karlatemp
bf362f9d75
[console] Add version bar before logo 2022-09-20 12:38:41 +08:00
Karlatemp
678fe6fd6b
[console] Print logo to help users distinguish between mirai-console and mirai-console-loader 2022-09-18 22:26:24 +08:00
Karlatemp
1ea68d82a7
[mock] Fix serialization 2022-09-18 17:55:28 +08:00
微莹·纤绫
a8e90c6e89
[skip ci] Create CONTRIBUTING.md 2022-09-13 23:36:10 +08:00
Him188
6b7b83f39f
[docs] Add release note for 2.12.3 2022-09-11 20:21:22 +08:00
AdoptOSS
397d824d33
[core] enhance(ECDH): reconstruct ECDH (#2161)
* enhance(ECDH): reconstruct ECDH
common: 移动特定于 QQ 平台的实现到 OicqECDH,重新设计 ECDH,使 ECDH 类只针对算法本身,而不过多包括 QQ 协议的使用细节
jvm: 尝试优先使用平台加密实现,可能改善性能
jvm & android: 使用 curveName `secp256r1` 代替 `prime256v1`,前者在 Java 中更常用,可以被更多的 JCE 实现所识别(虽然都是指同一条曲线)
android: 使用系统自带的实现以减少依赖,并尝试兼容 Android P+ 版本
native: 中间储存时保留OpenSSL内部结构而不反复 new & free,提高性能
    (为了实现智能指针,需要用到 `@ExperimentalStdlibApi` 的 `createCleaner`,但这种风险应该可以接受)
native: 直接使用 point/bignum 到 bytes 的转换,避免了 hex string 作为中间层,提高效率

* test(ECDH): fix AndroidTest

* style(Ecdh): obey official Kotlin coding conventions
> When using an acronym as part of a declaration name, capitalize it if it consists of two letters (IOStream); capitalize only the first letter if it is longer (XmlFormatter, HttpInputStream).
> [View origin](https://kotlinlang.org/docs/coding-conventions.html)

Co-authored-by: ArcticLampyrid <arcticlampyrid@outlook.com>
2022-09-11 20:14:39 +08:00
Him188
d32a8a566c
[core] Use Java URL connection for TxCaptchaHelper.
^Fixes previous commit c804bbda13
2022-09-11 20:02:42 +08:00
Him188
c804bbda13
[core] Remove dependency on ktor-client for mirai-core-api. Fix duplicated class errors on Android, close #2248 2022-09-11 19:49:43 +08:00
Him188
bfbc6bcb02 [core] Fix selector for CONNECTING state 2022-09-11 19:41:16 +08:00
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