File tree 4 files changed +10
-8
lines changed
src/main/kotlin/app/revanced
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
on :
3
+ workflow_dispatch :
3
4
push :
4
5
branches :
5
6
- main
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ repositories {
24
24
25
25
dependencies {
26
26
implementation(" org.jetbrains.kotlin:kotlin-stdlib:1.6.21" )
27
- implementation(" app.revanced:revanced-patcher:1.0.0-dev.16 " )
27
+ implementation(" app.revanced:revanced-patcher:1.0.0-dev.17 " )
28
28
implementation(" app.revanced:revanced-patches:1.0.0-dev.11" )
29
29
30
30
implementation(" info.picocli:picocli:4.6.3" )
@@ -68,4 +68,4 @@ publishing {
68
68
from(components[" java" ])
69
69
}
70
70
}
71
- }
71
+ }
Original file line number Diff line number Diff line change @@ -58,9 +58,9 @@ internal object MainCommand : Runnable {
58
58
for (it in JarPatchBundle (patchBundlePath).loadPatches())
59
59
println (
60
60
" [available] ${
61
- it.javaClass. findAnnotationRecursively(
61
+ it.findAnnotationRecursively(
62
62
Name ::class .java
63
- )?.name ? : Name ::class .java.name
63
+ )?.name ? : it ::class .java.name
64
64
} "
65
65
)
66
66
return
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ fun Patcher.addPatchesFiltered(
24
24
25
25
val compatibilityAnnotation = patch.javaClass.findAnnotationRecursively(Compatibility ::class .java)
26
26
27
- val patchName = patch.javaClass.findAnnotationRecursively(Name ::class .java)?.name ? : Name :: class .java .name
27
+ val patchName = patch.javaClass.findAnnotationRecursively(Name ::class .java)?.name ? : patch.javaClass .name
28
28
29
29
val prefix = " [skipped] $patchName "
30
30
@@ -47,9 +47,10 @@ fun Patcher.addPatchesFiltered(
47
47
return @patch
48
48
}
49
49
50
- if (! packageVersionCompatibilityFilter || compatiblePackage.versions.any { it == packageVersion }) return @patch
51
- println (" $prefix : Unsupported version." )
52
- return @patch
50
+ if (packageVersionCompatibilityFilter && ! compatiblePackage.versions.any { it == packageVersion }) {
51
+ println (" $prefix : Unsupported version." )
52
+ return @patch
53
+ }
53
54
}
54
55
}
55
56
You can’t perform that action at this time.
0 commit comments