mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 08:50:15 +08:00
Fix API check
This commit is contained in:
parent
f03fe168fd
commit
ef439f1dea
@ -2870,9 +2870,6 @@ public abstract class net/mamoe/mirai/event/events/UserMessagePreSendEvent : net
|
||||
public abstract fun getTarget ()Lnet/mamoe/mirai/contact/User;
|
||||
}
|
||||
|
||||
public final class net/mamoe/mirai/kar/SwingxLoaderKt {
|
||||
}
|
||||
|
||||
public final class net/mamoe/mirai/message/MessageEventKt {
|
||||
public static final fun isContextIdenticalWith (Lnet/mamoe/mirai/event/events/MessageEvent;Lnet/mamoe/mirai/event/events/MessageEvent;)Z
|
||||
}
|
||||
|
@ -52,6 +52,7 @@ configure<kotlinx.validation.ApiValidationExtension> {
|
||||
ignoredPackages.add("net.mamoe.mirai.internal")
|
||||
ignoredPackages.add("net.mamoe.mirai.console.internal")
|
||||
nonPublicMarkers.add("net.mamoe.mirai.utils.MiraiInternalApi")
|
||||
nonPublicMarkers.add("net.mamoe.mirai.utils.MiraiInternalFile")
|
||||
nonPublicMarkers.add("net.mamoe.mirai.console.utils.ConsoleInternalApi")
|
||||
nonPublicMarkers.add("net.mamoe.mirai.console.utils.ConsoleExperimentalApi")
|
||||
nonPublicMarkers.add("net.mamoe.mirai.utils.MiraiExperimentalApi")
|
||||
|
@ -28,6 +28,17 @@ public annotation class MiraiInternalApi(
|
||||
public val message: String = ""
|
||||
)
|
||||
|
||||
/**
|
||||
* 标记为一个仅供 Mirai 内部使用的 API.
|
||||
*
|
||||
* 这些 API 可能会在任意时刻更改, 且不会发布任何预警.
|
||||
* 非常不建议在发行版本中使用这些 API.
|
||||
*/
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@Target(FILE)
|
||||
@MiraiInternalApi
|
||||
public annotation class MiraiInternalFile
|
||||
|
||||
/**
|
||||
* 标记这个类, 类型, 函数, 属性, 字段, 或构造器为实验性的 API.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user