Fix API check

This commit is contained in:
Karlatemp 2021-06-07 12:33:31 +08:00
parent f03fe168fd
commit ef439f1dea
No known key found for this signature in database
GPG Key ID: 21FBDDF664FF06F8
3 changed files with 12 additions and 3 deletions

View File

@ -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
}

View File

@ -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")

View File

@ -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.
*