From 513bf5d57d73f9bb7f48673ffa2b9b09c5b2938b Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 21 Feb 2024 03:30:33 +0100 Subject: [PATCH] build: Adjust project information Use ReVanced project information instead of placeholders. This also fixes failing publication. --- api/revanced-patches-template.api | 6 ++++ api/revanced-patches.api | 6 ---- build.gradle.kts | 34 +++++++++---------- settings.gradle.kts | 2 +- .../revanced}/patches/example/ExamplePatch.kt | 2 +- 5 files changed, 25 insertions(+), 25 deletions(-) create mode 100644 api/revanced-patches-template.api delete mode 100644 api/revanced-patches.api rename src/main/kotlin/{your/org => app/revanced}/patches/example/ExamplePatch.kt (93%) diff --git a/api/revanced-patches-template.api b/api/revanced-patches-template.api new file mode 100644 index 0000000000..8b4a865254 --- /dev/null +++ b/api/revanced-patches-template.api @@ -0,0 +1,6 @@ +public final class app/revanced/patches/example/ExamplePatch : app/revanced/patcher/patch/BytecodePatch { + public static final field INSTANCE Lapp/revanced/patches/example/ExamplePatch; + public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V + public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V +} + diff --git a/api/revanced-patches.api b/api/revanced-patches.api deleted file mode 100644 index 2d3884728b..0000000000 --- a/api/revanced-patches.api +++ /dev/null @@ -1,6 +0,0 @@ -public final class your/org/patches/example/ExamplePatch : app/revanced/patcher/patch/BytecodePatch { - public static final field INSTANCE Lyour/org/patches/example/ExamplePatch; - public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V - public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V -} - diff --git a/build.gradle.kts b/build.gradle.kts index a21375374b..267b63bcb6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,7 +7,7 @@ plugins { signing } -group = "your.org" +group = "app.revanced" repositories { mavenCentral() @@ -35,14 +35,14 @@ kotlin { tasks { withType(Jar::class) { manifest { - attributes["Name"] = "Your Patches" - attributes["Description"] = "Patches for ReVanced." + attributes["Name"] = "ReVanced Patches template" + attributes["Description"] = "Patches template for ReVanced." attributes["Version"] = version attributes["Timestamp"] = System.currentTimeMillis().toString() - attributes["Source"] = "git@github.com:you/revanced-patches.git" - attributes["Author"] = "You" - attributes["Contact"] = "contact@your.homepage" - attributes["Origin"] = "https://your.homepage" + attributes["Source"] = "git@github.com:revanced/revanced-patches-template.git" + attributes["Author"] = "ReVanced" + attributes["Contact"] = "contact@revanced.app" + attributes["Origin"] = "https://revanced.app" attributes["License"] = "GNU General Public License v3.0" } } @@ -83,7 +83,7 @@ publishing { repositories { maven { name = "GitHubPackages" - url = uri("https://maven.pkg.github.com/you/revanced-patches") + url = uri("https://maven.pkg.github.com/revanced/revanced-patches-template") credentials { username = System.getenv("GITHUB_ACTOR") password = System.getenv("GITHUB_TOKEN") @@ -96,9 +96,9 @@ publishing { from(components["java"]) pom { - name = "Your Patches" - description = "Patches for ReVanced." - url = "https://your.homepage" + name = "ReVanced Patches template" + description = "Patches template for ReVanced." + url = "https://revanced.app" licenses { license { @@ -108,15 +108,15 @@ publishing { } developers { developer { - id = "Your ID" - name = "Your Name" - email = "contact@your.homepage" + id = "ReVanced" + name = "ReVanced" + email = "contact@revanced.app" } } scm { - connection = "scm:git:git://github.com/you/revanced-patches.git" - developerConnection = "scm:git:git@github.com:you/revanced-patches.git" - url = "https://github.com/you/revanced-patches" + connection = "scm:git:git://github.com/revanced/revanced-patches-template.git" + developerConnection = "scm:git:git@github.com:revanced/revanced-patches-template.git" + url = "https://github.com/revanced/revanced-patches-template" } } } diff --git a/settings.gradle.kts b/settings.gradle.kts index 432b20014d..50d0be92b5 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,4 +1,4 @@ -rootProject.name = "revanced-patches" +rootProject.name = "revanced-patches-template" buildCache { local { diff --git a/src/main/kotlin/your/org/patches/example/ExamplePatch.kt b/src/main/kotlin/app/revanced/patches/example/ExamplePatch.kt similarity index 93% rename from src/main/kotlin/your/org/patches/example/ExamplePatch.kt rename to src/main/kotlin/app/revanced/patches/example/ExamplePatch.kt index ab99017e6e..b4d00d7c25 100644 --- a/src/main/kotlin/your/org/patches/example/ExamplePatch.kt +++ b/src/main/kotlin/app/revanced/patches/example/ExamplePatch.kt @@ -1,4 +1,4 @@ -package your.org.patches.example +package app.revanced.patches.example import app.revanced.patcher.data.BytecodeContext import app.revanced.patcher.patch.BytecodePatch