Him188
9733490266
Add docs
2020-05-09 13:45:29 +08:00
mzdluo123
ff4739f57e
fix: BufferedImage not found on Android
2020-05-06 14:09:53 +08:00
Him188
5cd027dfa9
Remove param format
from FileCacheStrategy.newImageCache
2020-05-06 13:17:08 +08:00
Him188
aadea751ac
Add precondition checks
2020-05-06 11:52:44 +08:00
Him188
2d9db234d7
Introduce FileCacheStrategy
;
...
Rework `ExternalImage`, introduce `ReusableInput` for multiple attempts when uploading images;
Add `BotConfiguration.fileCacheStrategy`, defaults use cache system from host OS;
Introduce `DeferredReusableInput` for `*.toExternalImage` on JVM.
Deprecate `*.suspendToExternalImage` as no longer need to be suspend.
Open input only when required, close input after uploading files, fix #302
2020-05-05 16:09:32 +08:00
Him188
84cfe2626f
Remove all @SinceMirai("0.x.x")
2020-05-05 13:56:17 +08:00
Him188
4ee27f2069
Fix ambiguous message event names. Fix #299 .
...
Binary compatibility until 1.2.0.
Migrations:
- `MessagePacket` deprecated in favor of `MessageEvent`
- `MessagePacketBase` deprecated in favor of `MessageEvent`
- `ContactMessage` -> `MessageEvent`
- `FriendMessage` -> `FriendMessageEvent`
- `GroupMessage` -> `GroupMessageEvent`
- `TempMessage` -> `TempMessageEvent`
2020-05-05 13:55:01 +08:00
Him188
45d96a8855
Merge pull request #296 from Karlatemp/patch-4
...
Fix the error that directly closing the verification code window will block the coroutine.
2020-05-05 12:20:11 +08:00
Him188
53ba8aba00
Improve docs
2020-05-03 22:32:42 +08:00
Him188
c2fa014c78
Add docs
2020-05-03 22:25:35 +08:00
Him188
35e39a7fba
Add docs
2020-05-03 20:43:18 +08:00
Karlatemp
edb80ec0ca
Fix the error that directly closing the verification code window will block the coroutine.
2020-05-02 19:12:38 +08:00
Him188
fbf4dd6bb2
Adjust filenames
2020-05-02 18:12:40 +08:00
Him188
6b5cbc3dd7
Implement new ExternalImage and image chunk strategy
2020-05-02 17:58:22 +08:00
Him188
2be325d781
Remove all deprecated APIs
2020-05-02 16:56:18 +08:00
Him188
a7e0f63dc6
FileCacheStrategy
, ReusableInput
fundamental
2020-05-02 16:16:33 +08:00
Him188
1a4c3ba602
Simplify Image structure: deprecate online and offline classification.
2020-05-01 21:51:09 +08:00
Karlatemp
c17e8a3263
支持监听优先级, 事件传递拦截 ( #279 )
...
* 支持监听优先级, 事件传递拦截
* Fix test
* 并发
* 优先级&并发
* Test
* Fix unused
* To GlobalEventListeners
* Add tests
* intercept with subscribeAlways
* test listener.complete()
* Add functions
* Fix test and add new test
* Test concurrent listening
* Test concurrent listening
* update broadcast
* Fix Boom
Co-authored-by: Him188 <Him188@mamoe.net>
2020-05-01 21:05:04 +08:00
Him188
644f0f175b
Deprecate ExternalImage
constructors
2020-04-29 19:39:41 +08:00
Him188
a08bf241ed
Improve event handler coroutine management
2020-04-29 18:21:01 +08:00
ryoii
1a557984f4
Fix BufferedImage compressed
2020-04-29 01:48:11 +08:00
Him188
c3de96dde0
Mark LockFreeLinkedList with MiraiInternalAPI, planning to make it internal in 1.0.0
2020-04-27 22:07:27 +08:00
Him188
781dd721d1
Fix LoginSolver
choosing, add NoStandardInputForCaptchaException
2020-04-25 15:28:26 +08:00
Him188
97dda77f04
Requests input in IO dispatcher
2020-04-25 12:47:24 +08:00
Him188
9c5bfb3bf5
Fix #270
2020-04-25 12:24:31 +08:00
Karlatemp
7271ff375d
#257 的追加修正 ( #267 )
...
* Rename
* Fix resource missing
* Fix typo
2020-04-24 21:32:56 +08:00
Him188
077885465b
Add docs, rearrange implementations
2020-04-24 15:12:50 +08:00
Karlatemp
d57ce6eb09
#257 additional display repair ( #260 )
...
* LoginSolver, gui support
* make `internal`,`object`, and rename.
* Edit message
* Edit message
2020-04-24 10:19:15 +08:00
Karlatemp
0ede49896e
LoginSolver swing ( #257 )
...
* LoginSolver, gui support
* make `internal`,`object`, and rename.
2020-04-24 10:03:27 +08:00
Him188
5b2ae6e9ad
Simplify Image structure, close #244
2020-04-23 17:10:21 +08:00
Him188
72fb82c01f
Remove MPP EventCancelledException
2020-04-22 18:42:26 +08:00
Him188
a63af80668
Deprecate QQ
...
Introduce `Friend` extending `User`
Introduce `User` acting as the superclass of `Friend` and `Member`
Add extensions `Member.asFriend`, etc.
Remove specialized `Contact.hashCode` and `Contact.equals`, inherit from `kotlin.Any`
Specify `toString` behavior in abstract `Contact` classes, instead of in implementation classes.
Add virtual member `Contact.sendMessage(String)`
Migrate the project from using `QQ` to `Friend`
Remove multiplatform Contact class structure, keep them common.
Remove extension `Long.at` in `GroupMessage`, `QQ.at` in `ContactMessage`.
Add `At.asMember()` in `GroupMessage`.
Make `calculateGroupUinByGroupCode`, `calculateGroupCodeByGroupUin` static on JVM.
2020-04-22 16:08:04 +08:00
Him188
1542b73fa9
Improve KDoc
2020-04-20 16:55:44 +08:00
Him188
90ee9b441a
Rework reconnection, fixes #228
2020-04-15 16:46:39 +08:00
Him188
f5a8420231
Speed up image uploading
2020-04-13 11:13:27 +08:00
Him188
0ef844f79b
Fix doc
2020-04-12 20:18:46 +08:00
Him188
b9a3675dad
Support Group.quit
, add BotLeaveEvent.Active
2020-04-11 20:15:23 +08:00
Him188
418fb43992
Returns botAsMember when Group.get(bot.id)
2020-04-10 19:40:34 +08:00
Him188
882c623823
Add @JvmOverloads
for BufferedImage.toExternalImage
2020-04-10 13:42:16 +08:00
Him188
7357169560
Fix build
2020-04-10 13:42:04 +08:00
Him188
c27ee12bdb
Simplify MessageReceipt
2020-04-10 11:35:14 +08:00
Him188
ae1156b434
Simplify Contact structure
2020-04-10 11:35:05 +08:00
Him188
ec35eeba1c
Simplify Bot structure
2020-04-09 16:14:48 +08:00
ryoii
2053ab198c
Support TempMessage
2020-04-08 22:12:18 +08:00
Him188
6480e78b24
Handle ContactList syncing on new friend or member event.
2020-04-08 14:33:13 +08:00
Him188
d9756c212c
Add common runBlocking
for convenience
2020-04-08 10:49:04 +08:00
ryoii
eec820c1a7
Support for approving requests of adding friend and joining group, close #91
2020-04-07 21:14:34 +08:00
Him188
039b3d7517
Cleanup
2020-04-04 22:17:35 +08:00
Him188
2b49a7586f
Reconstruct MessageSource, fix #197 , #133
2020-04-04 22:08:53 +08:00
Him188
3cc5cbfcfd
Introduce BotIsBeingMutedException
to replace IllegalStateException
2020-04-04 14:17:32 +08:00
ryoii
eac23171ec
Support Bot.nick
, closed #93
2020-04-04 09:47:34 +08:00
Him188
cd41166fc8
Fix init error
2020-04-02 20:43:04 +08:00
Him188
32553fad2b
Introduce ContactMessage
to replace MessagePacket<*, *>
2020-04-02 20:27:16 +08:00
Him188
3773548983
Replace use of Bot.uin
with Bot.id
2020-04-02 19:27:40 +08:00
Him188
d5868ed7c1
Add MessageTooLargeException
to differentiate with mute exception
2020-04-02 18:28:19 +08:00
Him188
997261fa3b
Make all event implementations internal
2020-04-02 13:20:16 +08:00
Him188
1605a5b68a
Fix kick message passing
2020-04-02 12:02:47 +08:00
Him188
9b534aba2c
Execute event listeners in IO pool for Java
2020-04-02 09:44:57 +08:00
Him188
97522bdf2a
Rearrange internal APIs
2020-04-02 09:43:50 +08:00
Him188
fa1cf3ae1d
Fix doc
2020-03-31 13:37:54 +08:00
Him188
55bbdc2cb0
Update docs
2020-03-29 14:01:10 +08:00
Him188
b6c24e008d
Plan for redesigning of MessageSource
2020-03-29 13:34:54 +08:00
Him188
04b0287738
Add pre-condition check
2020-03-29 12:41:07 +08:00
Him188
90ef83e345
Move protocol-specific classes to mirai-core-qqandroid
2020-03-29 02:46:38 +08:00
Him188
5672837878
Add gzip
and ungzip
2020-03-28 21:53:33 +08:00
Him188
869cb81f7e
Remove Bot.contains
2020-03-24 16:41:42 +08:00
Him188
3e1925e2fc
Correct JavaHappy
to JavaFriendly
2020-03-24 16:39:06 +08:00
Him188
3ba1ae4a5c
Adjust visibilities
2020-03-24 16:10:39 +08:00
Him188
94e40e2e6a
Annotate new APIs with @SinceMirai("0.30.0")
2020-03-24 15:36:18 +08:00
Him188
8eb597470f
Extract group settings to interface GroupSettings
2020-03-24 15:35:03 +08:00
Him188
22ade1afea
Correct classname
2020-03-24 15:32:29 +08:00
Him188
a9972dc030
Reduce code redundancy
2020-03-24 15:28:24 +08:00
Him188
ed46780983
Clear all deprecated functions which are for binary compatibility
2020-03-24 15:24:06 +08:00
Him188
eb7afb6cff
Update to Kotlin 1.4-M1
2020-03-24 10:01:03 +08:00
Him188
fccb69bb3f
Remove all unnecessary java-friendly JvmName magics
2020-03-23 20:05:17 +08:00
Him188
f9a296331d
Binary compatibility
2020-03-22 23:42:46 +08:00
Him188
1f60474cb0
Fix #154
2020-03-22 21:31:34 +08:00
Him188
53fdcd41f7
Change sendMessage(MessageChain)
to sendMessage(Message)
2020-03-22 14:16:31 +08:00
Him188
55ed5f9d70
Add concurrency control to event listeners
2020-03-20 18:27:04 +08:00
Him188
f015294367
Improve performance
2020-03-17 12:57:26 +08:00
Kenvix
4eb5c8615b
Fixed a issue that cause bot initialization failed on headless platform
2020-03-15 22:50:25 +08:00
luo123
6973488db7
move to lowLevelApi.kt
2020-03-14 11:01:21 +08:00
luo123
4e7b3b0048
delete announcement
2020-03-14 00:45:36 +08:00
luo123
e57215a603
send announcement
2020-03-14 00:07:52 +08:00
luo123
aa61e9441a
get GroupAnnouncementList is working now
2020-03-13 22:33:11 +08:00
luo123
220d293b7a
get group announce list
2020-03-13 21:06:57 +08:00
Cyenoch
b3fa841d5f
Addressed an exception that was thrown because InetAddress.getLocalHost().hostAddress might get an ipv6 address
2020-03-11 23:01:53 +08:00
Him188
21abfe4a64
Fix zip and unzip
2020-03-08 22:04:11 +08:00
Him188
243b2ea731
Gather all platform-specified utilities into a MiraiPlatformUtils
2020-03-08 21:14:41 +08:00
Him188
71de716e92
Fix compilation bug
2020-03-08 20:26:37 +08:00
Him188
4cc8808372
Make output
open
2020-03-08 20:12:33 +08:00
Him188
7593e34898
Add standard output override
2020-03-08 20:09:53 +08:00
Him188
1ef3eb471b
Use custom Json configuration
2020-03-08 00:43:52 +08:00
Him188
e39fe5a46f
Merge branch 'master' into kotlin-1.3.70
...
# Conflicts:
# mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/QQAndroidClient.kt
# mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/highway/HighwayHelper.kt
# mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/highway/highway.kt
# mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/login/WtLogin.kt
# mirai-core/build.gradle.kts
# mirai-core/src/androidMain/kotlin/net/mamoe/mirai/utils/addSuppressed.kt
# mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/ExternalImage.kt
# mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/channels.kt
# mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/chunked.kt
# mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/input.kt
# mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/addSuppressed.kt
2020-03-08 00:29:51 +08:00
Him188
e60a6bcf68
Revert "Use ktor.io
than kotlinx.io
"
2020-03-07 22:04:31 +08:00
Him188
b3c4f24e33
Revert "Use io.ktor.utils.io
than kotlinx.io
"
...
This reverts commit 6a85769e
2020-03-07 18:48:07 +08:00
Him188
92504fc313
Merge remote-tracking branch 'origin/master'
2020-03-07 11:29:23 +08:00
Him188
26210e7845
Generify functions
2020-03-07 11:29:04 +08:00
Him188
defe7ce054
Fix addSuppressed
2020-03-07 11:19:05 +08:00
Him188
e222465ded
Make account
internal
2020-03-07 00:24:37 +08:00