[K/N] Add @SinceKotlin for ObjC annotations #KT-57197
This commit is contained in:
committed by
Space Team
parent
d7d7620db2
commit
352316ba9f
@@ -65,6 +65,7 @@ expect annotation class FreezingIsDeprecated
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCName
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class ObjCName(val name: String = "", val swiftName: String = "", val exact: Boolean = false)
|
||||
|
||||
/**
|
||||
@@ -80,6 +81,7 @@ public expect annotation class ObjCName(val name: String = "", val swiftName: St
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class HidesFromObjC()
|
||||
|
||||
/**
|
||||
@@ -91,6 +93,7 @@ public expect annotation class HidesFromObjC()
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class HiddenFromObjC()
|
||||
|
||||
/**
|
||||
@@ -110,6 +113,7 @@ public expect annotation class HiddenFromObjC()
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class RefinesInSwift()
|
||||
|
||||
/**
|
||||
@@ -124,4 +128,5 @@ public expect annotation class RefinesInSwift()
|
||||
@MustBeDocumented
|
||||
@OptionalExpectation
|
||||
@ExperimentalObjCRefinement
|
||||
@SinceKotlin("1.8")
|
||||
public expect annotation class ShouldRefineInSwift()
|
||||
|
||||
@@ -12,4 +12,5 @@ package kotlin.experimental
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@SinceKotlin("1.8")
|
||||
public annotation class ExperimentalObjCName
|
||||
|
||||
@@ -12,4 +12,5 @@ package kotlin.experimental
|
||||
@Target(AnnotationTarget.ANNOTATION_CLASS)
|
||||
@Retention(AnnotationRetention.BINARY)
|
||||
@MustBeDocumented
|
||||
@SinceKotlin("1.8")
|
||||
public annotation class ExperimentalObjCRefinement
|
||||
|
||||
Reference in New Issue
Block a user