Commit Graph

378 Commits

Author SHA1 Message Date
Him188
f175d07c0a Introduce multi-platform BotConfiguration structure; Add redirectNetworkLogToDirectory functions, fix #371 2020-06-16 15:09:32 +08:00
Him188
3178aeb619 Fix doc 2020-06-15 16:03:54 +08:00
Him188
e52c341155 Arise deprecation level 2020-06-15 15:02:53 +08:00
Karlatemp
f5165f7d77
Add Manifest; Disabling SwingSolver with vm property mirai.no-desktop (#362)
* Disabling SwingSolver with vm property 'mirai.no-desktop'

// for ssh
// java -Dmirai.no-desktop ....

* Add Manifest

* Removed Per-Entry Attributes

Co-authored-by: Him188 <Him188@mamoe.net>
2020-06-15 11:13:15 +08:00
Him188
f74ee547f2 Fix #369 2020-06-14 23:47:56 +08:00
Him188
35f2335a5f Fix build 2020-06-14 19:20:00 +08:00
Him188
2d1bc6578e Fix reference in KDoc 2020-06-14 18:48:58 +08:00
Him188
4cb870cb85 Fix build 2020-06-13 22:40:38 +08:00
Him188
4961b60494 Merge branch 'master' into dev 2020-06-12 14:43:12 +08:00
Him188
2dcd8ffea0 Fix log time 2020-06-01 18:11:55 +08:00
Him188
0153ed9fa5 Fix build 2020-05-28 14:10:18 +08:00
Him188
a084eac8be Rearrange internal implementations 2020-05-28 14:10:18 +08:00
Him188
1d971badd9 Add docs 2020-05-28 14:08:39 +08:00
Him188
9631a2de1f Fix loggers 2020-05-24 14:10:43 +08:00
Him188
3c1ee33ee0 Fix Java function resolving 2020-05-22 13:20:59 +08:00
Him188
5871f727dc Fix exception logging 2020-05-21 21:27:02 +08:00
Him188
ae8d6e0cd2 Fix doc and DefaultLogger usage 2020-05-21 20:35:18 +08:00
Him188
f848473289 Improve loggers:
Make SimpleLogger open;
Simplify PlatformLogger;
PlatformLogger on JVM now has `isColored` param and prints exception canonically;
Unify log format;
2020-05-21 20:32:49 +08:00
Him188
3f4dd1ec12 Improve PlatformLogger.jvm, prints stacktrace to a specified output 2020-05-21 17:52:36 +08:00
Him188
6aaba6c5ae Use non-strict JSON serialization for deviceInfo 2020-05-21 17:27:52 +08:00
Him188
e4e526ca80 Support object implementations of Event 2020-05-16 15:32:09 +08:00
Him188
23273718fe Improve docs 2020-05-16 15:17:04 +08:00
Him188
3d06219c67 Introduce SimpleListenerHost for a better Java API 2020-05-16 15:11:03 +08:00
Him188
ae32536ed5 Move BotImpl and BotNetworkHandler to mirai-core-qqandroid. 2020-05-16 14:29:03 +08:00
Him188
46598d686c Cleanup;
Use interface for JavaFriendly APIs;
Deprecate event responder in Bot in the favor of their member functions;
Deprecate `Bot.queryUrl(image: Image)`` in the favor of the extension `Image.queryUrl`
2020-05-16 14:14:21 +08:00
Him188
f5db6e0201 Improve docs 2020-05-14 19:12:32 +08:00
Him188
29012d74c1 Add docs 2020-05-11 15:50:18 +08:00
Him188
45f00b4651 Fix VerifyError 2020-05-11 11:34:08 +08:00
Him188
90c0c5c549 Optimize experimental API usages 2020-05-10 02:22:16 +08:00
Him188
54794a6e49 Fix references 2020-05-10 00:59:12 +08:00
Him188
7525dc7c33 Add JvmMethodListeners.kt 2020-05-10 00:41:18 +08:00
Him188
28f48e5c78 Make random device info more random 2020-05-09 16:20:57 +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
238e94dae7 Cleanup 2020-05-09 15:09:01 +08:00
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