File tree Expand file tree Collapse file tree
surf-api-shared/surf-api-shared-public
src/main/kotlin/dev/slne/surf/surfapi/shared/api/annotation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
77javaVersion =25
88mcVersion =1.21.11
99group =dev.slne.surf
10- version =1.21.11-2.59.4
10+ version =1.21.11-2.60.0
1111relocationPrefix =dev.slne.surf.surfapi.libs
1212snapshot =false
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ public final class dev/slne/surf/surfapi/shared/api/annotation/AnnotationUtils {
44 public final fun findAnnotation (Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
55}
66
7+ public abstract interface annotation class dev/slne/surf/surfapi/shared/api/annotation/InternalAPIMarker : java/lang/annotation/Annotation {
8+ }
9+
710public abstract interface class dev/slne/surf/surfapi/shared/api/component/Component {
811 public fun disable (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
912 public fun enable (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
Original file line number Diff line number Diff line change 1+ package dev.slne.surf.surfapi.shared.api.annotation
2+
3+ /* *
4+ * Marker annotation that designates an annotation class as an Internal API marker.
5+ *
6+ * Annotation classes annotated with [InternalAPIMarker] are recognized by the IntelliJ plugin
7+ * to identify internal API boundaries. Declarations annotated with such an annotation will be
8+ * treated as invisible to consumers in other projects — similar to Kotlin's
9+ * [DeprecationLevel.HIDDEN] behavior — rather than producing an opt-in warning or error.
10+ *
11+ * Example:
12+ * ```kotlin
13+ * @RequiresOptIn
14+ * @InternalAPIMarker
15+ * annotation class InternalSurfAPI
16+ *
17+ * @InternalSurfAPI
18+ * fun internalFunction() { ... }
19+ * ```
20+ */
21+ @Target(AnnotationTarget .ANNOTATION_CLASS )
22+ annotation class InternalAPIMarker
You can’t perform that action at this time.
0 commit comments