Commit Graph

5028 Commits

Author SHA1 Message Date
Him188
abf9baefc1 Remove @file:JvmName on PlatformLogger actual declarations, fix potential compiling issue 2021-02-25 07:54:36 +08:00
Karlatemp
7a7c88b783
Android api level check 2021-02-25 00:12:58 +08:00
Him188
dd7aed885d Implement multiplatform EventChannel for android specially 2021-02-24 15:57:54 +08:00
Him188
7b80ac5a0c Replace usage of java.util.List.removeIf to Kotlin's MutableList.removeAll 2021-02-24 15:15:47 +08:00
Him188
ba61194fa4 Move StandardCharImageLoginSolver from common to jvm 2021-02-24 15:15:43 +08:00
Him188
d3583162a5 Replace usage of List.replaceAll with Kotlin's 2021-02-24 15:15:31 +08:00
Him188
0529d7679b Enable android target always 2021-02-24 12:14:02 +08:00
Him188
9c3a175b02 Configure binary compatibility validator for android target 2021-02-24 11:36:03 +08:00
Him188
aa289e932f Multiplatform LoginSolver:
- On JVM: Same behaviour as before
- On Android: LoginSolver.Default returns `null` always
2021-02-24 10:18:04 +08:00
Him188
1ce26c393c Implement SingleFileLogger separately for different platforms, ensure binary compatibility 2021-02-24 09:55:33 +08:00
Him188
0b971b2117 Merge branch 'dev' into android_target
# Conflicts:
#	build.gradle.kts
#	buildSrc/src/main/kotlin/Versions.kt
2021-02-24 09:20:47 +08:00
Him188
333103eca7 Merge remote-tracking branch 'mirai/dev' into dev 2021-02-24 09:17:24 +08:00
Him188
6a6ce4a401 Temporarily remove Dokka to fix build 2021-02-24 09:16:49 +08:00
Karlatemp
9bb3ae20ef
MiraiCode of MusicShare (#1044)
* Improve MiraiCode parsing

* MiraiCode of MusicShare
2021-02-23 23:00:32 +08:00
Him188
69cceaf695
Update Bots.md 2021-02-22 13:25:58 +08:00
Karlatemp
a5c28758e9
Improve RspSystemMsgNew filtering 2021-02-21 14:28:51 +08:00
Karlatemp
f12f78a55f
Query self profile when missing nickname; Fix #1023 2021-02-20 20:50:44 +08:00
Karlatemp
ce06ce85f0
Improve RspSystemMsgNew handling; #1033, #996, #959, #610 2021-02-19 23:09:26 +08:00
Karlatemp
2eaa13a7c2
Release 2.5.0-dev-2 2021-02-18 01:15:48 +08:00
Karlatemp
3ba2510f10
Update permission flags; close #1013 2021-02-16 21:07:43 +08:00
Karlatemp
2bfc20048e
[MessageSubscribersBuilder] Ignore null execution result. close #1011 2021-02-16 20:56:26 +08:00
Karlatemp
addee38c70
Don't add new friend when reject new friend request 2021-02-15 13:43:03 +08:00
Karlatemp
e7e8d8ca6a
Fix MessageChain.cleanupRubbishMessageElements() 2021-02-15 11:38:42 +08:00
Karlatemp
6e2ae6b3af
Update caller-finder version 2021-02-15 10:42:37 +08:00
Noire
4555962049
Fix document of BotConfiguration.botLoggerSupplier (#1021) 2021-02-14 21:41:57 +08:00
Him188
9d20d28148 Merge remote-tracking branch 'mirai/dev' into dev 2021-02-13 17:45:52 +08:00
Him188
16e7af43ba Release v2.5.0-dev-1 2021-02-13 17:44:31 +08:00
sandtechnology
9699218601
Fix wrong decoding on ConfigPushSvc and update default server list (#1015)
* Fix wrong decoding on ConfigPushSvc and update default server list

* Fix a bug which won't update server list

* Improve wording

* Fix an encoding error

* Fix wording

* Naming consistently

* Improve ServerListPush message

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

Co-authored-by: Him188 <Him188@mamoe.net>
2021-02-13 11:34:48 +08:00
Him188
4ac7d3fa9a
Support Dice (#1018)
* Add Dice public API #1012, close #1017

* Extract MarketFaceImpl to separate file

* Dice protocol impl #1012

* Dice refinement

* Add serialization support for Dice

* Add mirai code support for Dice

* Update docs/Messages.md

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>

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

Co-authored-by: Karlatemp <karlatemp@vip.qq.com>

* Add dice mirai code test

Co-authored-by: sandtechnology <a1294790523@hotmail.com>
Co-authored-by: lc6a <1952511149@qq.com>
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-02-13 11:34:23 +08:00
Karlatemp
d09d810b6f
Fix bot nick not initialized; Fix #1019 2021-02-12 17:22:14 +08:00
Him188
d0cbe087b1 Add jetbrains-annotations dependency to mirai-core-api 2021-02-12 14:38:22 +08:00
Him188
c82efff696 Release v2.4-RC 2021-02-11 19:18:11 +08:00
Him188
9922aa48ba Run 'Release Publish' on tagging '*-release' 2021-02-11 19:09:08 +08:00
Bo Zhang
ba06ce6db3 Simplify release.yml task 'check keys'
from https://github.com/mamoe/mirai/pull/981#discussion_r574175859
2021-02-11 17:02:54 +08:00
Him188
c51eea6268 - Simplify ContactListCache configuration
- Add kotlin.Duration support
- Disable contact list cache by default for stability
2021-02-11 16:58:43 +08:00
Him188
e219fb3a95 Fix typo in doc 2021-02-11 16:42:02 +08:00
Karlatemp
0d58e6e3ab
Convert CRLF(\r\n), CR(\r) to LF(\n); fix #1010 2021-02-11 08:48:01 +08:00
Karlatemp
791e43819c
Fix logic of BdhSessionSyncer.hasSession 2021-02-11 07:47:14 +08:00
Karlatemp
3e3be23397
Fix build 2021-02-10 22:25:22 +08:00
Him188
ce22a0c3ab Fix kotlin.UninitializedPropertyAccessException on ConfigPushSvc.PushReq.handle, fix #1003 2021-02-10 15:31:19 +08:00
Him188
915e096cc2 Switch server when neither new bdh session nor cached one found, fix #1001 2021-02-10 15:27:50 +08:00
Him188
cda6aaa79b Simplify cache configuration.
Improve cache saving:
- Use ProtoBuf to serialize BdhSession
- More readable servers.json
2021-02-10 15:20:39 +08:00
Him188
4668a2d91b Update profiles_settings.xml, change license settings 2021-02-10 15:04:13 +08:00
Karlatemp
8b0694c7e3
Merge pull request #981 from mamoe/maven-central
Maven central publish
2021-02-10 10:11:45 +08:00
Karlatemp
b3e9e2a91b
Remote repositories name 2021-02-10 10:06:41 +08:00
Karlatemp
32ef89add1
Merge remote-tracking branch 'origin/dev' into maven-central
# Conflicts:
#	.github/workflows/bintray.yml
#	.github/workflows/release.yml
2021-02-10 10:01:07 +08:00
Bo Zhang
d998b655e5
Use build scan instead of --info --stacktrace (#1008)
So we can have much neater build logs
2021-02-09 21:58:27 +08:00
Him188
01374b1d32 Merge remote-tracking branch 'mirai/dev' into dev 2021-02-09 18:40:51 +08:00
Him188
9a32b2690e RichMessageOrigin support for MusicShare. fix #950 2021-02-09 18:40:30 +08:00
Karlatemp
17c2069c82
Handle ConfigPushSvc.PushReq.PushReqResponse.ChangeServer in ConfigPushSvc 2021-02-09 15:08:50 +08:00