Commit Graph

7979 Commits

Author SHA1 Message Date
Him188
d757764308 Remove MiraiImpl.INSTANCE and move initialization process to MiraiImpl.<clinit>. Close #1992 2022-04-25 15:49:43 +01:00
Him188
e2477645cd Migrate references of JAutoSavePluginConfig in docs 2022-04-25 14:18:14 +01:00
Him188
3be16c4644 Code cleanup. Remove duplicated internal utilities. 2022-04-25 14:15:29 +01:00
Him188
e7dcf676fc Handle leading length for ByteArray.loadAs, fix deserialization problem with RequestPush. Fix #1991, #1899. 2022-04-25 14:06:31 +01:00
Him188
2780fc4761 Fix build 2022-04-24 16:47:42 +01:00
Him188
854b55f216 Add plugin tests PluginResolveSelfDependenciesOverConsoleOnes, close #1981 2022-04-24 16:18:22 +01:00
Him188
556c805448 console IT: Do not delete entire test sandbox, keep libraries 2022-04-24 16:15:17 +01:00
Him188
97ce422b33 Update docs for console IT 2022-04-24 15:45:58 +01:00
Him188
112bf537cc Try useExperimentalAnnotation if optIn not defined 2022-04-24 15:30:02 +01:00
Him188
7f85319a92 Deprecate BotConfiguration.json 2022-04-24 15:30:02 +01:00
Him188
a4562a7aef buildPlugin: Change output directory back to build/mirai 2022-04-24 15:30:02 +01:00
Him188
0e72fe9757 Use optIn, close #1986 2022-04-24 15:20:14 +01:00
Him188
ffbe540800 Fix AbstractPluginData.findBackingFieldValueNode 2022-04-24 15:05:53 +01:00
Him188
45defb32a2 Fix support for Any and support primitive and reference arrays, close #1801 2022-04-24 15:05:44 +01:00
Him188
1d60cf57b8 Add @since 2.11 for avatarUrl and AvatarSpec (for #1721) 2022-04-24 12:50:33 +01:00
cssxsh
7a9769b618
Add getAvatarUrl(spec: Int) fix (#1557) (#1721)
* Add getAvatarUrl(spec: Int) fix (#1557)

* Add api dump

* Add AvatarSpec

* Add api dump

* fix: docs

* rename: getAvatarUrl
2022-04-24 12:48:18 +01:00
Him188
4efdc98cc4 Update docs for NetworHandle.close. 2022-04-24 12:39:50 +01:00
Him188
a5b52a0b7b Network: change state initialization and update sequence:
- Do nothing in init block
- Start state after notifying  `beforeStateChanged`
- StateClosed: do close after being updated to public

close #1893
2022-04-24 12:35:34 +01:00
Him188
88e1146edc Handle exceptions in heartbeat jobs properly, #1893 2022-04-24 12:14:20 +01:00
Him188
f5f7b3736c Show bot id in coroutine name for heartbeat jobs 2022-04-24 11:47:06 +01:00
Him188
d4095fa5c6
Add JavaAutoSavePluginData and deprecate JAutoSavePluginData to fix saving issues. (#1988) 2022-04-24 10:37:42 +01:00
Him188
be832c7dbd
Support serializersModule for PluginData, close #1796. Improve PluginData.value type inference behavior: resolve exact returned type. (#1987)
Also support `MessageChain` and others from `MessageSerializers.serializersModule`, fix #1922.
2022-04-24 10:37:10 +01:00
Him188
e6840de0e0 Update log4j to 2.17.2, close #1969 2022-04-23 22:46:48 +01:00
Karlatemp
35c08e8b16
Link mirai-core in console IT, fix non-hard-linked dependencies resolving 2022-04-23 17:15:20 +08:00
Karlatemp
e6e8f77f41
Skip if dependencies have no jars; fix #1975 2022-04-22 23:58:12 +08:00
Karlatemp
7f3b67ad9e
Fix gradle multi-projects packaging error; fix #1973 2022-04-22 23:46:54 +08:00
Him188
fbadf4a256 Fix documentation on PluginDependency.dependsOn and improve other relevant info. Fix #1869 2022-04-22 13:17:29 +01:00
Him188
d7f66e3ba5 Migrate use of deprecated LineMarkerInfo constructor 2022-04-20 17:56:12 +01:00
Him188
481973d5e6
New Project Wizard for IDEA 221 (#1979)
* NewProjectWizard

* dependencies and validations

* Implement checkers

* Implement project generator

* Add new template RunTerminal.run.xml for Run Configuration

* Set supported IDEA version to 221

* Fix localization

* Fix since-until

* Rearrange files
2022-04-20 17:03:10 +01:00
微莹·纤绫
15133c7902
Rewrite PluginManagerImpl.sortByDependencies, fixing #1949: resolving optional dependencies (#1968)
* Rewrite `PluginManagerImpl.sortByDependencies`

* Update error msgs
2022-04-19 00:24:17 +01:00
cssxsh
a727704061
Fix error message for '/perm cancel' (#1918)
* fix: cancel error info

* fix: use UnsupportedOperationException

* fix: test

* fix: equals
2022-04-19 00:06:38 +01:00
Him188
285cf785d8 Migrate build scripts to optIn 2022-04-17 16:58:55 +01:00
Runze Zhang
cc3d645d4c
Typo fixed (#1978) 2022-04-16 11:16:50 +01:00
Him188
4acd74974a Migrate deprecated usages and cleanup code 2022-04-13 13:08:14 +01:00
Him188
8993de9a13 Review deprecation for 2.11, close #1837 2022-04-13 12:47:21 +01:00
Him188
499f7beb1d Add DeprecatedSinceMirai.internalSince 2022-04-13 12:34:30 +01:00
Him188
d1cb05025e Deprecated IMirai.Http for future removal 2022-04-13 12:08:39 +01:00
Him188
b4bb1696de Fix commit 'Don't mark failed if received MessageSvcPushForceOffline
' (332e03377c)

The original commit was to fix the problem when receiving MessageSvcPushForceOffline on first login, which calls `setLoginHalted`, and stops the login process.
2022-04-13 11:50:32 +01:00
Karlatemp
efd864449e
Try to fix CI 2022-04-09 16:44:50 +08:00
Karlatemp
fd2663e60c
Publish snapshot pages after built 2022-04-09 16:44:49 +08:00
hundun
2930cba0d6
fix doc (#1970)
[skip ci]
2022-04-09 15:45:59 +08:00
Karlatemp
332e03377c
Don't mark failed if received MessageSvcPushForceOffline 2022-04-08 12:06:22 +08:00
Him188
e387d4b4a5 Abort first login if any error occurred. Fix #1963 2022-04-06 16:18:10 +01:00
Him188
a96f9cc8e2 PrivateMessageProcessor: ignore processing if FROM_SYNC is absent 2022-04-06 15:51:02 +01:00
Him188
e78074c1a1 TypeSafeMap: allow using supertypes in get with default value 2022-04-06 15:50:37 +01:00
Karlatemp
706e283218
Init dependencies of no-other-plugin-depended plugins first; fix #1965 2022-04-06 20:30:05 +08:00
Him188
2a8f7de23d Throw SendMessageFailedException with new reason AT_ALL_LIMITED, fix #1948 2022-04-02 13:24:30 +01:00
Him188
eba7698345 Fix doc reference 2022-04-02 13:16:52 +01:00
Him188
7bb788a2cf Relogin when receiving returnCode <= -10000, fix #1961 2022-04-02 13:16:01 +01:00
Him188
2a4b2f9dc5 Update DebuggingNetwork.md for mirai.jce.deserializer.debug 2022-04-02 12:16:55 +01:00