[K/N] Deprecate Retain and RetainForTarget annotations

As a part of efforts to stabilize Native stdlib #KT-55765.
This commit is contained in:
Abduqodiri Qurbonzoda
2023-03-23 14:58:57 +02:00
committed by Space Team
parent 273dcf1665
commit 5cc6338fb9
2 changed files with 4 additions and 0 deletions
@@ -14,6 +14,8 @@
* limitations under the License.
*/
@file:Suppress("DEPRECATION") // RetainForTarget
package kotlinx.wasm.jsinterop
import kotlin.native.*
@@ -40,6 +40,7 @@ public annotation class SymbolName(val name: String)
*/
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
@Retention(AnnotationRetention.BINARY)
@Deprecated("This annotation will be removed in a future release")
public annotation class Retain
/**
@@ -47,6 +48,7 @@ public annotation class Retain
*/
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS)
@Retention(AnnotationRetention.BINARY)
@Deprecated("This annotation will be removed in a future release")
public annotation class RetainForTarget(val target: String)