From fcc7fa75d0101a0a141c9020b4d38aac47e3afde Mon Sep 17 00:00:00 2001 From: Sculas Date: Sun, 31 Jul 2022 18:31:40 +0200 Subject: [PATCH] refactor: deprecate DependencyType.SOFT Soft dependencies will be removed when Patch Options is implemented. --- .../patcher/patch/annotations/PatchAnnotation.kt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patcher/patch/annotations/PatchAnnotation.kt b/src/main/kotlin/app/revanced/patcher/patch/annotations/PatchAnnotation.kt index b859fc6..307a798 100644 --- a/src/main/kotlin/app/revanced/patcher/patch/annotations/PatchAnnotation.kt +++ b/src/main/kotlin/app/revanced/patcher/patch/annotations/PatchAnnotation.kt @@ -39,4 +39,15 @@ annotation class DependsOn( val type: DependencyType = DependencyType.HARD ) -enum class DependencyType { HARD, SOFT } \ No newline at end of file +enum class DependencyType { + /** + * Enforces that the dependency is applied, even if it was not selected. + */ + HARD, + + /** + * Applies the dependency only if it was selected. + */ + @Deprecated("Will be removed when Patch Options is implemented.", ReplaceWith("HARD")) + SOFT +} \ No newline at end of file