mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-02 14:04:24 +02:00

This commit introduces an annotation processor for patches. Patches can use the `@Patch` instead of super constructor parameters. BREAKING CHANGE: The manifest for patches has been removed, and the properties have been added to patches. Patches are now `OptionsContainer`. The `@Patch` annotation has been removed in favour of the `@Patch` annotation from the annotation processor.
26 lines
1.5 KiB
Plaintext
26 lines
1.5 KiB
Plaintext
public abstract interface annotation class app/revanced/patcher/patch/annotations/CompatiblePackage : java/lang/annotation/Annotation {
|
|
public abstract fun name ()Ljava/lang/String;
|
|
public abstract fun versions ()[Ljava/lang/String;
|
|
}
|
|
|
|
public abstract interface annotation class app/revanced/patcher/patch/annotations/Patch : java/lang/annotation/Annotation {
|
|
public abstract fun compatiblePackages ()[Lapp/revanced/patcher/patch/annotations/CompatiblePackage;
|
|
public abstract fun dependencies ()[Ljava/lang/Class;
|
|
public abstract fun description ()Ljava/lang/String;
|
|
public abstract fun name ()Ljava/lang/String;
|
|
public abstract fun requiresIntegrations ()Z
|
|
public abstract fun use ()Z
|
|
}
|
|
|
|
public final class app/revanced/patcher/patch/annotations/processor/PatchProcessor : com/google/devtools/ksp/processing/SymbolProcessor {
|
|
public fun <init> (Lcom/google/devtools/ksp/processing/CodeGenerator;Lcom/google/devtools/ksp/processing/KSPLogger;)V
|
|
public fun process (Lcom/google/devtools/ksp/processing/Resolver;)Ljava/util/List;
|
|
}
|
|
|
|
public final class app/revanced/patcher/patch/annotations/processor/PatchProcessorProvider : com/google/devtools/ksp/processing/SymbolProcessorProvider {
|
|
public fun <init> ()V
|
|
public fun create (Lcom/google/devtools/ksp/processing/SymbolProcessorEnvironment;)Lapp/revanced/patcher/patch/annotations/processor/PatchProcessor;
|
|
public synthetic fun create (Lcom/google/devtools/ksp/processing/SymbolProcessorEnvironment;)Lcom/google/devtools/ksp/processing/SymbolProcessor;
|
|
}
|
|
|