Skip to content

Commit

Permalink
refactor: Internalize processor constructor
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This gets rid of the public constructor.
  • Loading branch information
oSumAtrIX committed Sep 13, 2023
1 parent 8de3063 commit a802d0d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Expand Up @@ -13,7 +13,6 @@ public abstract interface annotation class app/revanced/patcher/patch/annotation
}

public final class app/revanced/patcher/patch/annotation/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;
}

Expand Down
Expand Up @@ -19,7 +19,7 @@ import com.squareup.kotlinpoet.ksp.toClassName
import com.squareup.kotlinpoet.ksp.writeTo
import kotlin.reflect.KClass

class PatchProcessor(
class PatchProcessor internal constructor(
private val codeGenerator: CodeGenerator,
) : SymbolProcessor {

Expand Down
2 changes: 1 addition & 1 deletion revanced-patcher/api/revanced-patcher.api
Expand Up @@ -8,7 +8,7 @@ public final class app/revanced/patcher/PackageMetadata {
}

public abstract class app/revanced/patcher/PatchBundleLoader : java/util/Set, kotlin/jvm/internal/markers/KMappedMarker {
public synthetic fun <init> (Ljava/lang/ClassLoader;[Ljava/io/File;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public synthetic fun <init> (Ljava/lang/ClassLoader;[Ljava/io/File;Lkotlin/jvm/functions/Function1;Ljava/util/Set;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun add (Lapp/revanced/patcher/patch/Patch;)Z
public synthetic fun add (Ljava/lang/Object;)Z
public fun addAll (Ljava/util/Collection;)Z
Expand Down

0 comments on commit a802d0d

Please sign in to comment.