mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 01:02:22 +01:00
feat: Deprecate Version
annotation
This commit is contained in:
parent
4b5e25b29c
commit
c52f0b80f2
2 changed files with 2 additions and 0 deletions
|
@ -26,6 +26,7 @@ annotation class Description(
|
|||
* @param version The version of a [Patch].
|
||||
*/
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Deprecated("This annotation is deprecated and will be removed in the future.")
|
||||
annotation class Version(
|
||||
val version: String,
|
||||
)
|
||||
|
|
|
@ -25,6 +25,7 @@ object PatchExtensions {
|
|||
/**
|
||||
* The version of a [Patch].
|
||||
*/
|
||||
@Deprecated("This property is deprecated and will be removed in the future.")
|
||||
val PatchClass.version
|
||||
get() = findAnnotationRecursively(Version::class)?.version
|
||||
|
||||
|
|
Loading…
Reference in a new issue