Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-08 13:17:26 +04:00
parent f32528d653
commit 7de4f3ab1f
2 changed files with 352 additions and 0 deletions

View file

@ -0,0 +1,32 @@
package com.tangem.utils.annotations
/**
* Marks code that should be removed when the specified feature toggle is cleaned up
* by the `/cleanup-feature-toggles` skill.
*
* @property toggleName the name of the feature toggle (e.g., "GASLESS_APPROVAL_ENABLED")
* @property description optional description of what should be done during cleanup
*
[REDACTED_AUTHOR]
*/
@Target(
AnnotationTarget.CLASS,
AnnotationTarget.ANNOTATION_CLASS,
AnnotationTarget.PROPERTY,
AnnotationTarget.FIELD,
AnnotationTarget.LOCAL_VARIABLE,
AnnotationTarget.VALUE_PARAMETER,
AnnotationTarget.CONSTRUCTOR,
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.PROPERTY_SETTER,
AnnotationTarget.TYPE,
AnnotationTarget.EXPRESSION,
AnnotationTarget.FILE,
AnnotationTarget.TYPEALIAS,
)
@Retention(AnnotationRetention.SOURCE)
annotation class RemoveWithToggle(
val toggleName: String,
val description: String = "",
)