mirror of
https://github.com/ReVanced/revanced-patches-template.git
synced 2026-01-11 13:56:18 +00:00
build: Adjust project information
Use ReVanced project information instead of placeholders. This also fixes failing publication.
This commit is contained in:
6
api/revanced-patches-template.api
Normal file
6
api/revanced-patches-template.api
Normal file
@@ -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
|
||||||
|
}
|
||||||
|
|
||||||
@@ -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
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ plugins {
|
|||||||
signing
|
signing
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "your.org"
|
group = "app.revanced"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@@ -35,14 +35,14 @@ kotlin {
|
|||||||
tasks {
|
tasks {
|
||||||
withType(Jar::class) {
|
withType(Jar::class) {
|
||||||
manifest {
|
manifest {
|
||||||
attributes["Name"] = "Your Patches"
|
attributes["Name"] = "ReVanced Patches template"
|
||||||
attributes["Description"] = "Patches for ReVanced."
|
attributes["Description"] = "Patches template for ReVanced."
|
||||||
attributes["Version"] = version
|
attributes["Version"] = version
|
||||||
attributes["Timestamp"] = System.currentTimeMillis().toString()
|
attributes["Timestamp"] = System.currentTimeMillis().toString()
|
||||||
attributes["Source"] = "git@github.com:you/revanced-patches.git"
|
attributes["Source"] = "git@github.com:revanced/revanced-patches-template.git"
|
||||||
attributes["Author"] = "You"
|
attributes["Author"] = "ReVanced"
|
||||||
attributes["Contact"] = "contact@your.homepage"
|
attributes["Contact"] = "contact@revanced.app"
|
||||||
attributes["Origin"] = "https://your.homepage"
|
attributes["Origin"] = "https://revanced.app"
|
||||||
attributes["License"] = "GNU General Public License v3.0"
|
attributes["License"] = "GNU General Public License v3.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -83,7 +83,7 @@ publishing {
|
|||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
name = "GitHubPackages"
|
name = "GitHubPackages"
|
||||||
url = uri("https://maven.pkg.github.com/you/revanced-patches")
|
url = uri("https://maven.pkg.github.com/revanced/revanced-patches-template")
|
||||||
credentials {
|
credentials {
|
||||||
username = System.getenv("GITHUB_ACTOR")
|
username = System.getenv("GITHUB_ACTOR")
|
||||||
password = System.getenv("GITHUB_TOKEN")
|
password = System.getenv("GITHUB_TOKEN")
|
||||||
@@ -96,9 +96,9 @@ publishing {
|
|||||||
from(components["java"])
|
from(components["java"])
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
name = "Your Patches"
|
name = "ReVanced Patches template"
|
||||||
description = "Patches for ReVanced."
|
description = "Patches template for ReVanced."
|
||||||
url = "https://your.homepage"
|
url = "https://revanced.app"
|
||||||
|
|
||||||
licenses {
|
licenses {
|
||||||
license {
|
license {
|
||||||
@@ -108,15 +108,15 @@ publishing {
|
|||||||
}
|
}
|
||||||
developers {
|
developers {
|
||||||
developer {
|
developer {
|
||||||
id = "Your ID"
|
id = "ReVanced"
|
||||||
name = "Your Name"
|
name = "ReVanced"
|
||||||
email = "contact@your.homepage"
|
email = "contact@revanced.app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scm {
|
scm {
|
||||||
connection = "scm:git:git://github.com/you/revanced-patches.git"
|
connection = "scm:git:git://github.com/revanced/revanced-patches-template.git"
|
||||||
developerConnection = "scm:git:git@github.com:you/revanced-patches.git"
|
developerConnection = "scm:git:git@github.com:revanced/revanced-patches-template.git"
|
||||||
url = "https://github.com/you/revanced-patches"
|
url = "https://github.com/revanced/revanced-patches-template"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
rootProject.name = "revanced-patches"
|
rootProject.name = "revanced-patches-template"
|
||||||
|
|
||||||
buildCache {
|
buildCache {
|
||||||
local {
|
local {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package your.org.patches.example
|
package app.revanced.patches.example
|
||||||
|
|
||||||
import app.revanced.patcher.data.BytecodeContext
|
import app.revanced.patcher.data.BytecodeContext
|
||||||
import app.revanced.patcher.patch.BytecodePatch
|
import app.revanced.patcher.patch.BytecodePatch
|
||||||
Reference in New Issue
Block a user