fix: Use correct module name

BREAKING CHANGE: This renames packages and the Maven package.
This commit is contained in:
oSumAtrIX 2023-09-06 06:09:35 +02:00
parent d3721229bf
commit 080fbe9feb
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
19 changed files with 31 additions and 31 deletions

View file

@ -1,10 +1,10 @@
public abstract interface annotation class app/revanced/patcher/patch/annotations/CompatiblePackage : java/lang/annotation/Annotation { public abstract interface annotation class app/revanced/patcher/patch/annotation/CompatiblePackage : java/lang/annotation/Annotation {
public abstract fun name ()Ljava/lang/String; public abstract fun name ()Ljava/lang/String;
public abstract fun versions ()[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 interface annotation class app/revanced/patcher/patch/annotation/Patch : java/lang/annotation/Annotation {
public abstract fun compatiblePackages ()[Lapp/revanced/patcher/patch/annotations/CompatiblePackage; public abstract fun compatiblePackages ()[Lapp/revanced/patcher/patch/annotation/CompatiblePackage;
public abstract fun dependencies ()[Ljava/lang/Class; public abstract fun dependencies ()[Ljava/lang/Class;
public abstract fun description ()Ljava/lang/String; public abstract fun description ()Ljava/lang/String;
public abstract fun name ()Ljava/lang/String; public abstract fun name ()Ljava/lang/String;
@ -12,14 +12,14 @@ public abstract interface annotation class app/revanced/patcher/patch/annotation
public abstract fun use ()Z public abstract fun use ()Z
} }
public final class app/revanced/patcher/patch/annotations/processor/PatchProcessor : com/google/devtools/ksp/processing/SymbolProcessor { 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 <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 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 final class app/revanced/patcher/patch/annotation/processor/PatchProcessorProvider : com/google/devtools/ksp/processing/SymbolProcessorProvider {
public fun <init> ()V public fun <init> ()V
public fun create (Lcom/google/devtools/ksp/processing/SymbolProcessorEnvironment;)Lapp/revanced/patcher/patch/annotations/processor/PatchProcessor; public fun create (Lcom/google/devtools/ksp/processing/SymbolProcessorEnvironment;)Lapp/revanced/patcher/patch/annotation/processor/PatchProcessor;
public synthetic fun create (Lcom/google/devtools/ksp/processing/SymbolProcessorEnvironment;)Lcom/google/devtools/ksp/processing/SymbolProcessor; public synthetic fun create (Lcom/google/devtools/ksp/processing/SymbolProcessorEnvironment;)Lcom/google/devtools/ksp/processing/SymbolProcessor;
} }

View file

@ -46,7 +46,7 @@ publishing {
version = project.version.toString() version = project.version.toString()
pom { pom {
name = "ReVanced Patch annotations processor" name = "ReVanced patch annotation processor"
description = "Annotation processor for patches." description = "Annotation processor for patches."
url = "https://revanced.app" url = "https://revanced.app"

View file

@ -0,0 +1,2 @@
rootProject.name = "revanced-patch-annotation-processor"

View file

@ -1,4 +1,4 @@
package app.revanced.patcher.patch.annotations package app.revanced.patcher.patch.annotation
import java.lang.annotation.Inherited import java.lang.annotation.Inherited
import kotlin.reflect.KClass import kotlin.reflect.KClass

View file

@ -1,10 +1,10 @@
package app.revanced.patcher.patch.annotations.processor package app.revanced.patcher.patch.annotation.processor
import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.data.ResourceContext
import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.ResourcePatch
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotation.Patch
import com.google.devtools.ksp.processing.* import com.google.devtools.ksp.processing.*
import com.google.devtools.ksp.symbol.KSAnnotated import com.google.devtools.ksp.symbol.KSAnnotated
import com.google.devtools.ksp.symbol.KSAnnotation import com.google.devtools.ksp.symbol.KSAnnotation

View file

@ -1,4 +1,4 @@
package app.revanced.patcher.patch.annotations.processor package app.revanced.patcher.patch.annotation.processor
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
import com.google.devtools.ksp.processing.SymbolProcessorProvider import com.google.devtools.ksp.processing.SymbolProcessorProvider

View file

@ -0,0 +1 @@
app.revanced.patcher.patch.annotation.processor.PatchProcessorProvider

View file

@ -1,4 +1,4 @@
package app.revanced.patcher.patch.annotations.processor package app.revanced.patcher.patch.annotation.processor
import app.revanced.patcher.patch.Patch import app.revanced.patcher.patch.Patch
import com.tschuchort.compiletesting.KotlinCompilation import com.tschuchort.compiletesting.KotlinCompilation

View file

@ -1,8 +1,8 @@
package app.revanced.patcher.patch.annotations.processor.samples.dependencies package app.revanced.patcher.patch.annotation.processor.samples.dependencies
import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.data.ResourceContext
import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.ResourcePatch
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotation.Patch
@Patch(name = "Dependency patch") @Patch(name = "Dependency patch")
object DependencyPatch : ResourcePatch() { object DependencyPatch : ResourcePatch() {

View file

@ -1,7 +1,7 @@
package app.revanced.patcher.patch.annotations.processor.samples.dependencies package app.revanced.patcher.patch.annotation.processor.samples.dependencies
import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotation.Patch
@Patch( @Patch(
name = "Dependent patch", name = "Dependent patch",

View file

@ -1,8 +1,8 @@
package app.revanced.patcher.patch.annotations.processor.samples.limitations.manualdependency package app.revanced.patcher.patch.annotation.processor.samples.limitations.manualdependency
import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.data.ResourceContext
import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.ResourcePatch
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotation.Patch
@Patch(name = "Dependency patch") @Patch(name = "Dependency patch")
object DependencyPatch : ResourcePatch() { object DependencyPatch : ResourcePatch() {

View file

@ -1,7 +1,7 @@
package app.revanced.patcher.patch.annotations.processor.samples.limitations.manualdependency package app.revanced.patcher.patch.annotation.processor.samples.limitations.manualdependency
import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotation.Patch
@Patch(name = "Dependent patch") @Patch(name = "Dependent patch")
object DependentPatch : BytecodePatch( object DependentPatch : BytecodePatch(

View file

@ -1,8 +1,8 @@
package app.revanced.patcher.patch.annotations.processor.samples.options package app.revanced.patcher.patch.annotation.processor.samples.options
import app.revanced.patcher.data.ResourceContext import app.revanced.patcher.data.ResourceContext
import app.revanced.patcher.patch.ResourcePatch import app.revanced.patcher.patch.ResourcePatch
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotation.Patch
import app.revanced.patcher.patch.options.types.StringPatchOption.Companion.stringPatchOption import app.revanced.patcher.patch.options.types.StringPatchOption.Companion.stringPatchOption
@Patch(name = "Options patch") @Patch(name = "Options patch")

View file

@ -1,8 +1,8 @@
package app.revanced.patcher.patch.annotations.processor.samples.processing package app.revanced.patcher.patch.annotation.processor.samples.processing
import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotation.Patch
@Patch("Processable patch") @Patch("Processable patch")
object ProcessablePatch : BytecodePatch() { object ProcessablePatch : BytecodePatch() {

View file

@ -1,2 +0,0 @@
rootProject.name = "revanced-patch-annotations-processor"

View file

@ -1 +0,0 @@
app.revanced.patcher.patch.annotations.processor.PatchProcessorProvider

View file

@ -12,7 +12,7 @@ dependencies {
compileOnly(libs.android) compileOnly(libs.android)
testImplementation(project(":revanced-patch-annotations-processor")) testImplementation(project(":revanced-patch-annotation-processor"))
testImplementation(libs.kotlin.test) testImplementation(libs.kotlin.test)
} }

View file

@ -7,8 +7,8 @@ import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
import app.revanced.patcher.extensions.or import app.revanced.patcher.extensions.or
import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.PatchException import app.revanced.patcher.patch.PatchException
import app.revanced.patcher.patch.annotations.CompatiblePackage import app.revanced.patcher.patch.annotation.CompatiblePackage
import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.annotation.Patch
import app.revanced.patcher.util.proxy.mutableTypes.MutableField.Companion.toMutable import app.revanced.patcher.util.proxy.mutableTypes.MutableField.Companion.toMutable
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod.Companion.toMutable import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod.Companion.toMutable

View file

@ -19,4 +19,4 @@ dependencyResolutionManagement {
} }
} }
include("revanced-patch-annotations-processor", "revanced-patcher") include("revanced-patch-annotation-processor", "revanced-patcher")