Commit Graph

49 Commits

Author SHA1 Message Date
Him188
8e05d97315 Review MiraiLogger:
- Replace top-level `DefaultLogger` with
  - `MiraiLogger.create`, and
  - `MiraiLogger.setDefaultLoggerCreator`
- `MiraiLogger.Companion` is no longer `MiraiLogger`, moved to `MiraiLogger.TopLevel`
- Mark `PlatformLogger` as
an internal API

close #633
2020-12-04 22:27:26 +08:00
Him188
7c2f2bb870 Rename Mirai to IMirai, introduce top-level property Mirai to hold lazy instance. Fix build. 2020-11-07 12:21:03 +08:00
Him188
efdf68a553 Fix tests 2020-11-01 23:57:37 +08:00
Him188
1e7aaaec48 Rearrange protocol implementations 2020-11-01 15:07:32 +08:00
Him188
a9d4d14576 Rearrange module structure:
- Rename mirai-core to mirai-core-api
- Rename mirai-core-qqandroid to mirai-core
- Rename package net.mamoe.mirai.qqandroid to net.mamoe.mirai.internal
- Delete old android targets
- Configure default packages correctly
- Update licenses
2020-10-03 12:42:13 +08:00
Him188
bd4dcec68e Fix copyright 2020-08-23 19:57:09 +08:00
Him188
679d61a6b1 Replace deprecated String.toMessage 2020-08-19 09:32:28 +08:00
Him188
2d83b69d06 Update copyright 2020-08-16 01:31:14 +08:00
Him188
1e15edc39b Add tests for MessageChain delegations 2020-06-15 16:04:14 +08:00
Niltok
169942237f
Add name for Face (#345)
* add faceName

* fix incorrect merge

* fix misspelling

* fix incorrect access control

* fix test

* fix typo
2020-06-14 20:03:37 +08:00
Him188
90c0c5c549 Optimize experimental API usages 2020-05-10 02:22:16 +08:00
Him188
1c1a37a103 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/MessageSource.kt
2020-05-09 15:38:20 +08:00
Him188
f765804ff7 Make MessageMetadata.contentToString final 2020-05-09 15:07:29 +08:00
Karlatemp
0716438242
Update duration display 2020-05-09 11:06:00 +08:00
Him188
b14bfde694 Fix tests 2020-05-02 17:18:31 +08:00
Him188
50934f9b7d Ensure binary compatibility until 1.1.0 2020-04-29 15:33:25 +08:00
Him188
626b1d6a5d Add tests for Message.isContentEmpty() 2020-04-25 13:13:18 +08:00
Him188
bf4b56ab07 Fix calculateImageMd5ByImageId 2020-04-24 16:55:39 +08:00
Him188
5b2ae6e9ad Simplify Image structure, close #244 2020-04-23 17:10:21 +08:00
Him188
b78d9ad3bb Rearrange tests 2020-04-22 11:40:44 +08:00
Him188
9ae02b5ade Fix build 2020-04-22 11:36:57 +08:00
Him188
a662362131 Fix build 2020-04-22 11:36:27 +08:00
Him188
ca216bc492 Fix syncFromEvent, add Tests 2020-04-21 14:51:50 +08:00
Him188
5af1d0435a Add MessageChain.contentEquals 2020-04-20 22:04:39 +08:00
Him188
1fae390fba Enhance MessageChainBuilder 2020-04-20 16:23:37 +08:00
Him188
8dee2dbb2f Fix tests 2020-04-06 21:06:24 +08:00
Him188
b8b749bf65 Completed CombinedMessage redesigning and constraining on concatenation 2020-04-06 18:04:41 +08:00
Him188
8486926694 Constrain single on Message.plus, add stubs 2020-04-05 23:35:47 +08:00
Him188
944afd78d9 Cover more tests 2020-04-05 17:48:22 +08:00
Him188
e454502ef8 Implement ConstrainSingle in MessageChainBuilder 2020-04-05 17:36:20 +08:00
Him188
3714b1b95e Implement ConstrainSingle 2020-04-05 17:18:23 +08:00
Him188
fb635c14bc Fix unsigned value representation 2020-04-02 21:28:31 +08:00
Him188
97522bdf2a Rearrange internal APIs 2020-04-02 09:43:50 +08:00
Him188
90b83afce7 Fix #165, use fast conversion, add tests 2020-03-30 14:31:27 +08:00
Him188
5672837878 Add gzip and ungzip 2020-03-28 21:53:33 +08:00
Him188
41dc1ffa0b Rearrange tests, close #126 2020-03-21 14:15:21 +08:00
Him188
21abfe4a64 Fix zip and unzip 2020-03-08 22:04:11 +08:00
Him188
9bff0f77ec Kotlin 1.3.70 2020-03-05 09:44:50 +08:00
Him188
60b6eab73e Revert "Update to Kotlin 1.3.70"
This reverts commit 2e57e358
2020-03-04 13:58:01 +08:00
Him188
2e57e358c3 Update to Kotlin 1.3.70 2020-03-04 08:54:56 +08:00
Him188
bd1a968db9 misc 2020-03-01 16:55:33 +08:00
Him188
ccc6826e3a Redesign MessageChain:
Make MessageChain immutable
Introduce CombinedMessage, a left-biased list
Introduce MessageChainBuilder
2020-02-23 16:47:21 +08:00
Him188
cf7e325259 Add copyright 2020-02-09 01:01:36 +08:00
Him188
78ee01ded1 Fix bugs 2020-01-07 19:26:49 +08:00
Him188
227fd84533 No inline in tests 2019-12-23 22:43:28 +08:00
Him188
2f67f8363b Rewrite 2019-12-19 17:25:49 +08:00
Him188
569e69b062 DSL for testing 2019-12-13 08:55:46 +08:00
Him188
21e7eafe04 Add test 2019-12-07 00:00:57 +08:00
Him188
e1c4ff9cbd Small improvements 2019-11-22 19:10:10 +08:00