Skip to content

Commit

Permalink
fix: Use correct module name
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This renames packages and the Maven package.
  • Loading branch information
oSumAtrIX committed Sep 6, 2023
1 parent d372122 commit 080fbe9
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 31 deletions.
@@ -1,25 +1,25 @@
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 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 interface annotation class app/revanced/patcher/patch/annotation/Patch : java/lang/annotation/Annotation {
public abstract fun compatiblePackages ()[Lapp/revanced/patcher/patch/annotation/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 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;
}

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 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;
}

Expand Up @@ -46,7 +46,7 @@ publishing {
version = project.version.toString()

pom {
name = "ReVanced Patch annotations processor"
name = "ReVanced patch annotation processor"
description = "Annotation processor for patches."
url = "https://revanced.app"

Expand Down
2 changes: 2 additions & 0 deletions revanced-patch-annotation-processor/settings.gradle.kts
@@ -0,0 +1,2 @@
rootProject.name = "revanced-patch-annotation-processor"

@@ -1,4 +1,4 @@
package app.revanced.patcher.patch.annotations
package app.revanced.patcher.patch.annotation

import java.lang.annotation.Inherited
import kotlin.reflect.KClass
Expand Down
@@ -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.ResourceContext
import app.revanced.patcher.patch.BytecodePatch
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.symbol.KSAnnotated
import com.google.devtools.ksp.symbol.KSAnnotation
Expand Down
@@ -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.SymbolProcessorProvider
Expand Down
@@ -0,0 +1 @@
app.revanced.patcher.patch.annotation.processor.PatchProcessorProvider
@@ -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 com.tschuchort.compiletesting.KotlinCompilation
Expand Down
@@ -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.patch.ResourcePatch
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patcher.patch.annotation.Patch

@Patch(name = "Dependency patch")
object DependencyPatch : ResourcePatch() {
Expand Down
@@ -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.patch.BytecodePatch
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patcher.patch.annotation.Patch

@Patch(
name = "Dependent patch",
Expand Down
@@ -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.patch.ResourcePatch
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patcher.patch.annotation.Patch

@Patch(name = "Dependency patch")
object DependencyPatch : ResourcePatch() {
Expand Down
@@ -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.patch.BytecodePatch
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patcher.patch.annotation.Patch

@Patch(name = "Dependent patch")
object DependentPatch : BytecodePatch(
Expand Down
@@ -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.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

@Patch(name = "Options patch")
Expand Down
@@ -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.patch.BytecodePatch
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patcher.patch.annotation.Patch

@Patch("Processable patch")
object ProcessablePatch : BytecodePatch() {
Expand Down
2 changes: 0 additions & 2 deletions revanced-patch-annotations-processor/settings.gradle.kts

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion revanced-patcher/build.gradle.kts
Expand Up @@ -12,7 +12,7 @@ dependencies {

compileOnly(libs.android)

testImplementation(project(":revanced-patch-annotations-processor"))
testImplementation(project(":revanced-patch-annotation-processor"))
testImplementation(libs.kotlin.test)
}

Expand Down
Expand Up @@ -7,8 +7,8 @@ import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction
import app.revanced.patcher.extensions.or
import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.PatchException
import app.revanced.patcher.patch.annotations.CompatiblePackage
import app.revanced.patcher.patch.annotations.Patch
import app.revanced.patcher.patch.annotation.CompatiblePackage
import app.revanced.patcher.patch.annotation.Patch
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.Companion.toMutable
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Expand Up @@ -19,4 +19,4 @@ dependencyResolutionManagement {
}
}

include("revanced-patch-annotations-processor", "revanced-patcher")
include("revanced-patch-annotation-processor", "revanced-patcher")

0 comments on commit 080fbe9

Please sign in to comment.