KsrpcGenerated
@Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY] )
Marker annotation applied by the ksrpc compiler plugin to synthetic classes (Stub, Companion, Obj, etc.) that are generated for every @KsService interface. These declarations are part of the public API surface a consumer interacts with through their service interface, but they are not authored by the consumer and their exact shape is an implementation detail of the plugin.
Add
apiValidation {
nonPublicMarkers += "com.monkopedia.ksrpc.annotation.KsrpcGenerated"
}Content copied to clipboard
to your binary-compatibility-validator configuration to exclude these generated declarations from API dumps so plugin-internal changes do not trigger spurious apiCheck failures on upgrade.