mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-06 15:14:26 +02:00
feat: Deprecate Version
annotation
This commit is contained in:
parent
86e1bf6078
commit
c9bbcf2bf2
@ -26,6 +26,7 @@ annotation class Description(
|
|||||||
* @param version The version of a [Patch].
|
* @param version The version of a [Patch].
|
||||||
*/
|
*/
|
||||||
@Target(AnnotationTarget.CLASS)
|
@Target(AnnotationTarget.CLASS)
|
||||||
|
@Deprecated("This annotation is deprecated and will be removed in a future release.")
|
||||||
annotation class Version(
|
annotation class Version(
|
||||||
val version: String,
|
val version: String,
|
||||||
)
|
)
|
||||||
|
@ -25,6 +25,7 @@ object PatchExtensions {
|
|||||||
/**
|
/**
|
||||||
* The version of a [Patch].
|
* The version of a [Patch].
|
||||||
*/
|
*/
|
||||||
|
@Deprecated("This property is deprecated and will be removed in a future release.")
|
||||||
val Class<out Patch<Context>>.version
|
val Class<out Patch<Context>>.version
|
||||||
get() = findAnnotationRecursively(Version::class)?.version
|
get() = findAnnotationRecursively(Version::class)?.version
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user