Karlatemp
|
4c810ee3ee
|
ExternalResourceLeakObserver (#1383)
* ExternalResourceLeakObserver
* Avoid exceptions of user-defined run-when-close actions
* Fix build
* Release references
* Move `ExternalResourceLeakObserver` to mirai-core-api
* Make internal
* Make `close()` thread-safely
* typo
* Don't track `ExternalResource` creation stack by default
* Update mirai-core-api/src/commonMain/kotlin/internal/utils/ExternalResourceLeakObserver.kt
Co-authored-by: Him188 <Him188@mamoe.net>
|
2021-07-03 22:05:12 +08:00 |
|
Him188
|
b9eb654a51
|
Reformat and cleanup code
|
2021-07-02 00:39:10 +08:00 |
|
Him188
|
a7a4879d05
|
Improve logging
|
2021-05-09 00:54:48 +08:00 |
|
Him188
|
e256ec06d3
|
Support file operations (#1069)
* Proto structs for group file
* RemoteFile fundamental abstraction and proto structs
* Configure JVM target for mirai-console-intellij
* Add Group.filesRoot
* Fix build
* Implement a FileSystem for RemoteFile resolution
* Fix RemoteFile FileSystem and implement resolve and listFiles
* Implement file info query and file download
* Support uploading group file
* Support file feeds
* 2.5-M2-dev-1
* Fix tests
* 2.5-M2-dev-2
* Add uuid-based resolving, support getting file details
* Support FileMessage receive
* Support sending FileMessage
* 2.5-M2-dev-3
* Add DownloadInfo.id
* Improve RemoteFile.delete
* Support move, delete, rename, mkdir. Simplify listFiles
* - Rename RemoteFile.write to .upload.
- Prefer id matching
- Improve move
* Add permission checks
* Improve permission checks
* Rearrange functions and add constant ROOT_PATH
* Introduce FileSupported, add extensions
* Introduce ProgressionCallback
* Fix docs and uploadFileAndSend
* Remove empty FileHighway.kt
* Add test testNormalize
* Add RemoteFile.contact, change RemoteFile.uploadAndSend return type to MessageReceipt
* Move @JvmBlockingBridge to file
* Change FileMessage.toRemoteFile parameter type Group to FileSupported
* Add impl notes #1082
|
2021-03-08 18:34:45 +08:00 |
|
Him188
|
3efa71fa82
|
PlatformLogger and ECDH implementation for Android.
|
2021-02-01 12:45:24 +08:00 |
|
Him188
|
6cfd7a34ca
|
Fix default file type from "" to DEFAULT_FORMAT_NAME
|
2021-01-29 11:39:54 +08:00 |
|
Him188
|
2abeb329f6
|
Add ExternalResource.closed;
Move ExternalResource implementations to internal package
|
2021-01-08 09:44:13 +08:00 |
|
Him188
|
faece77942
|
[Review] Rearrange utilities
|
2021-01-06 16:09:44 +08:00 |
|