Him188
9e151e7026
Redesign group files ( #1589 )
...
* Prototype new `RemoteFiles` design
* add `@JavaFriendlyAPI`
* remove `quietly`
* move `moveTo` to `AbsoluteFile`
* Add java friendly apis
* Remove `condoneMissing`
* Change `renameTo`
* Extract interface declarations
* update docs
* Add `AbsoluteFileFolder.exists`
* Add common ProgressionCallback
* Implement `RemoteFiles` and relevant `Absolute*`
* Implement `refresh` and `refreshed`
* Update docs
* Forbid blank paths
* Update docs
* Deprecate `RemoteFile` and implement `FileMessage.toAbsoluteFile`
* Change corresponding properties on operations
* Deprecate more old declarations
* Update docs
* Add check for permission
* Allow relative paths and fix upload
* fix absolutePath
* doc update
* api dump
* `Result<R>.onSuccessCatching`
* return null when file not exists
* Fix file uploading
* Fix folder.absolutePath
* add `resolveFileById`
* Implement toString
* Add `nameWithoutExtension` and `extension`
* Add `deep` to resolveFileById
* Implement permission check
* Remove notes
* Fix `resolveFileById`
* Fix `extension`
* add docs
* Improve docs
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-10-30 16:05:57 +01:00
Karlatemp
e61fbbcc70
Fix getRawGroupHonorListData
, getRawGroupActiveData
( #1616 )
2021-10-28 13:44:00 +01:00
Karlatemp
07d5a6ca7d
Chain calling of ExternalResource.toExternalResource()
; fix #1588
2021-10-09 21:49:49 +08:00
Karlatemp
b31f7b1ba7
AudioToSilkService ( #1591 )
...
* AudioToSilkService
* Update mirai-core-api/src/commonMain/kotlin/utils/ExternalResource.kt
Co-authored-by: Eritque arcus <1930893235@qq.com>
* `@since`; `@Experimental`
Co-authored-by: Eritque arcus <1930893235@qq.com>
2021-10-09 09:21:58 +01:00
Karlatemp
0b2a759028
Image.isEmoji()
(#1596 )
...
- Also remove image regex inlining
2021-10-05 22:01:14 +08:00
lliiooll
d3425a7566
Add mac and ipad protocol from miraiGo ( #1523 )
...
* add mac and ipad protocol
* Update BotConfiguration.kt
* Update MiraiProtocolInternal.kt
* api
* Update mirai-core-api/src/commonMain/kotlin/utils/BotConfiguration.kt
Co-authored-by: Him188 <Him188@mamoe.net>
2021-10-01 22:38:04 +01:00
Him188
ceeb4d7b5f
Make JavaFriendlyAPI
public
2021-10-01 16:15:22 +01:00
sandtechnology
00ecf86094
Clarify specialTitle docs and support to detect specialTitle changes ( #1531 )
2021-09-27 15:39:11 +01:00
sandtechnology
c09f8ab192
Support for switching anonymousChat settings ( #1522 )
...
* Support for switching anonymousChat settings
* apiDump
* Applied suggestion from him188
2021-09-27 15:39:01 +01:00
Him188
ef301cc6e5
支持获取消息记录 (漫游消息) ( #1520 )
...
* Support roaming messages for friend
* Remove `RoamingMessage.getMessage`
* Remove `RoamingAuthenticator`
* Mark `@JavaFriendlyAPI`
* apiDump
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-09-18 19:37:13 +08:00
sandtechnology
4ce57f52a8
Add height, width, size and imageType attribute to Image class ( #1548 )
...
* Add height, width, size and imageType attribute to Image class
Close #1543 #1204 #1032
* Let ImageType enum code before the `Internals`, Also add @JvmStatic and OrNull version for match method
* Use runBIO and throws annotation for getImageInfo
* Add .kt suffix for MPP imagesImpl
* Return empty imageInfo for unsupported images
* Fix wrong file name
* apiDump
* Renaming MPP file instead of adding JvmName annotation
* Optimize readability and only use BIO at call-site
* Fix bug for detecting image type
* Detecting javax module for java 9+
* Clean up
* Disable some image types which not supported
* Use cross platform code to read images, readd support for apng
* Fix bug in reading image
* apiDump
* Fix bug in image reading and write unite test
* Fix wording
* Remove webp support and throws IllegalArgumentException for unsupported format
* Remove WEBP enum type
* Add unit test for unsupported image and correct comments
* Fix buffer input stream error when reading images
* Applying suggestions and fix jpg reading
* Add complete SOF decoding for jpg and clean up
* Caching jpg sof byte ranges
* Save `values()` as IMAGE_TYPE_ENUM_LIST for preventing clone operation
* Remove duplicated it
2021-09-16 04:38:59 +08:00
Him188
062b8766a2
Raise deprecation levels:
...
- RichMessageOrigin
- SingleMessage.Serializer
- ForceOfflineException
- MessageSubscribersBuilder.sentByTemp
- subscribeTempMessages
- TempMessageSubscribersBuilder
- TempMessageEvent
- TempMessagePostSendEvent
- TempMessagePreSendEvent
close #1296
2021-09-12 20:57:04 +08:00
Karlatemp
7fe402695e
Hide event logs that are too verbose
...
Co-authored-by: Him188 <Him188@mamoe.net>
2021-09-05 00:06:37 +08:00
Him188
c57026d246
Update apiDump for missed changed in previous commit ( #1392 : Introduce auto close for ExternalResource
)
2021-09-01 20:09:03 +08:00
Him188
4d0afc27dc
Introduce auto close for ExternalResource
2021-09-01 20:05:05 +08:00
Him188
66999aadaf
Migrate to Kotlin 1.5.30 and review dependencies:
...
- Remove redundant atomicfu-common
- Do not expose kotlinx-io and atomicfu
2021-09-01 18:52:36 +08:00
Him188
d7d693ae6a
apiDump
2021-09-01 13:55:39 +08:00
Karlatemp
8a607eddaf
Add RequestEventData
for saving request events ( #1309 )
...
* Add `RequestEventData` for saving request events
* typo
* Remove `data`; Add `@SerialName`
2021-08-12 14:18:25 +08:00
Him188
5950e9e1e8
Improve logging: use Log4j internally and support markers
...
Migrate usages of `MiraiLogger.create` to new API
apiDump for new logging
2021-08-11 15:24:32 +08:00
Him188
8d8aca3f1c
Introduce Audio
for new API, revert changes on Voice
2021-08-05 21:48:20 +08:00
Him188
927da16245
Add subscribeUserMessages
2021-08-04 12:29:33 +08:00
RainChan
bd61c1e80d
支持在踢出群成员时选择是否拉黑 ( #1457 )
...
* 支持在踢出群成员时选择是否拉黑
* fix binary-compatibility for kick NormalMember
* change doc
2021-08-03 22:20:53 +08:00
Him188
03a6596553
Remove redundant overrides for contacts
2021-08-02 14:25:23 +08:00
Him188
47cf27f4d8
apiDump
2021-07-06 20:20:04 +08:00
Him188
a0baa65193
Announcement API: Refine naming of properties:
...
- pinned -> isPinned
- popup -> showPopup
- needConfirm -> requireConfirmation
- readMemberNumber -> confirmedMembersCount
- publishTime -> publicationTime
- isAllRead -> allConfirmed
2021-07-06 19:45:51 +08:00
Him188
9d9b9ce7e2
Change AnnouncementImage
's width
and height
to Int
2021-07-06 19:12:45 +08:00
Him188
6145b3ef47
Remove inline
to make compiler happy :)
2021-07-06 19:12:45 +08:00
Him188
d08c6b81a8
Add simplified one-line API for publishing a single announcement
2021-07-06 19:12:45 +08:00
Him188
b98fcdd2e5
Add default argument to OfflineAnnouncement
2021-07-06 19:12:45 +08:00
Him188
9a270dbba7
apiDump
2021-07-06 19:12:45 +08:00
Him188
f5ce64ba4f
Redesign Announcement API
...
Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
2021-07-06 19:12:45 +08:00
Him188
abc2bfcb3e
Add @NotStableForInheritance
and apply it to suitable classes ( #1385 )
...
* Add `@NotStableForInheritance` and apply it to suitable classes
* apiDump
* Fix import
* fix
2021-07-05 12:50:00 +08:00
Karlatemp
a4b62b0909
Voice serialization ( #1368 )
...
* Voice serialization
* Implement `hashCode` and `equals` for `Voice`
* Update test
* Update test
* Add note of `PttMessage.pttInternalInstance`
* Fix logic of `Voice.equals`
2021-07-02 12:10:20 +08:00
Karlatemp
ae54a5fb41
Private voice support ( #1310 )
...
* Support voice for private messaging
* typo
* Add extension functions for `uploadAsVoice`; Update KDocs
* Update KDoc
* Update error message
* Fix `C2CPttStoreBDH` error
* Deprecated `ExternalResource.uploadAsVoice(Contact): Voice`
* Update mirai-core-api/src/commonMain/kotlin/utils/ExternalResource.kt
* apiDump
Co-authored-by: Him188 <Him188@mamoe.net>
2021-06-26 10:02:23 +08:00
Him188
850fcd0afe
Fix build
2021-06-24 01:19:49 +08:00
Noire
b8de3f77ff
GroupAnnoucement ( #1141 )
...
* Add more comment about GroupAnnouncement.kt
* Edit comment about GroupAnnouncement.kt
Provide experimental api
* Api Dump
* After review
* Change to interface and API dump
* More change
* More change
* More more change
* Some change
* api dump
* Fix name
* Redesign Announcement public api
* Edit comment about GroupAnnouncement.kt
Provide experimental api
* After review
* Change to interface and API dump
* More change
* Modify to extension fun
* Fix sendAnnouncement and change place
* Change Group.deleteAnnouncement to group companion
* fix publish
* Api dump
* Reformat code
* Add `@since 2.7`
* Fix build
Co-authored-by: Him188 <Him188@mamoe.net>
2021-06-24 00:59:53 +08:00
sandtechnology
76e57d4aae
Update system face ( #1260 )
...
* Update system face
* Update api dump
* Update api dump for android
* Update system face which updated today
* Update api dump
* Add new system face
* Update apidump
2021-06-23 15:00:06 +08:00
Him188
10dbd4c5c0
apiDump. Note: THIS IS A BINARY-COMPATIBLE CHANGE:
...
Unit-coercion in blocking bridges are not supported with IR compiler, so Java code compiled against the legacy bridges will fail with `NoSuchMethodError`.
However, we've been providing the new bridges that are still supported by v2.7+ since v2.2, about half a year ago. So the actual group of affected users will be small.
Still, we are going to review feedback on the 2.7-M1 release to see if legacy bridges are still important.
2021-06-20 01:58:02 +08:00
Him188
295c95c09f
apiDump
2021-06-07 19:06:14 +08:00
Karlatemp
f03fe168fd
Fix binary-compatibility-validator
2021-06-07 12:16:58 +08:00
Him188
bcdff1336b
Kotlin 1.5 and dependencies updates ( #1246 )
...
* Kotlin 1.5 and dependencies updates
* Update mirai-console ref
* Use Kotlin 1.5.10
* 2.7-M1-dev-3
* Update console ref
2021-05-27 14:39:13 +08:00
Him188
23b296692e
api dump
2021-05-09 00:54:48 +08:00
Him188
ae55908839
api dump
2021-05-09 00:54:48 +08:00
Him188
57eb716e31
Add inline BotFactory.newBot
for Kotlin DSL. fix #1233 ( #1234 )
2021-05-02 13:51:32 +08:00
Him188
a8a448272d
Add BotConfiguration.heartbeatStrategy
...
(cherry-picked from #1229 )
2021-04-30 22:56:00 +08:00
wdvxdr1123
758eca55cd
feat: support kugou,kuwo music share ( #1228 )
...
* feat: support kugou,kuwo music share
* fix: api check
* fix: api check again
* Update MusicShare.kt
Co-authored-by: Him188 <Him188@mamoe.net>
2021-04-30 22:03:36 +08:00
Hoshino Tented
1bf1e3686f
添加管理员修改功能 ( #1178 )
...
* add modifyAdmin
* 修复赋予相同权限时不会抛错并且仍然广播事件的 bug
* fix test failed
* fix test failed AGAIN
* fix myself
* 是这样吗
* i am so sorry :(
* fix fixed bug
2021-04-16 08:33:07 +08:00
Him188
f3d3130f2d
Support login cache and login without password. close #1158
2021-04-10 18:46:39 +08:00
Him188
455ed6fbeb
Move NormalMember.isMuted
from extension to member function. fix #1037
2021-04-10 12:58:10 +08:00
Him188
8d3a4fbf5b
Deprecate RemoteFile.moveTo(String)
for ambiguous behavior ( #1180 )
2021-04-09 18:33:12 +08:00