forked from ReVanced/revanced-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert: Move ReVanced Library subproject to another repository 995f2ec
This commit is to apply changes to the ReVanced Library. Ideally I would create a new ReVanced Library fork and add my changes there. In that case, in order to use github actions, there will be the inconvenience of having to release a new fork in Maven Central. To prevent this I merge ReVanced Library 2.2.1 into ReVanced CLI.
- Loading branch information
Showing
25 changed files
with
1,373 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
||
plugins { | ||
alias(libs.plugins.kotlin) | ||
alias(libs.plugins.shadow) | ||
application | ||
`maven-publish` | ||
signing | ||
} | ||
|
||
group = "app.revanced" | ||
|
||
application { | ||
mainClass = "app.revanced.cli.command.MainCommandKt" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
google() | ||
maven { | ||
// A repository must be speficied for some reason. "registry" is a dummy. | ||
url = uri("https://maven.pkg.github.com/revanced/registry") | ||
credentials { | ||
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") | ||
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(libs.revanced.patcher) | ||
implementation(project(":revanced-lib")) | ||
implementation(libs.kotlinx.coroutines.core) | ||
implementation(libs.picocli) | ||
|
||
testImplementation(libs.kotlin.test) | ||
} | ||
|
||
kotlin { | ||
compilerOptions { | ||
jvmTarget.set(JvmTarget.JVM_11) | ||
} | ||
} | ||
|
||
java { | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
|
||
tasks { | ||
test { | ||
useJUnitPlatform() | ||
testLogging { | ||
events("PASSED", "SKIPPED", "FAILED") | ||
} | ||
} | ||
|
||
processResources { | ||
expand("projectVersion" to project.version) | ||
} | ||
|
||
shadowJar { | ||
minimize { | ||
exclude(dependency("org.jetbrains.kotlin:.*")) | ||
exclude(dependency("org.bouncycastle:.*")) | ||
exclude(dependency("app.revanced:.*")) | ||
} | ||
} | ||
|
||
publish { | ||
dependsOn(shadowJar) | ||
} | ||
} | ||
|
||
// Needed by gradle-semantic-release-plugin. | ||
// Tracking: https://github.com/KengoTODA/gradle-semantic-release-plugin/issues/435 | ||
|
||
// The maven-publish is also necessary to make the signing plugin work. | ||
publishing { | ||
repositories { | ||
mavenLocal() | ||
} | ||
|
||
publications { | ||
create<MavenPublication>("revanced-cli-publication") { | ||
from(components["java"]) | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
useGpgCmd() | ||
|
||
sign(publishing.publications["revanced-cli-publication"]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = "revanced-cli" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
||
plugins { | ||
alias(libs.plugins.kotlin) | ||
`maven-publish` | ||
signing | ||
} | ||
|
||
group = "app.revanced" | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
google() | ||
maven { | ||
// A repository must be speficied for some reason. "registry" is a dummy. | ||
url = uri("https://maven.pkg.github.com/revanced/registry") | ||
credentials { | ||
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") | ||
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(libs.revanced.patcher) | ||
implementation(libs.kotlin.reflect) | ||
implementation(libs.jadb) // Fork with Shell v2 support. | ||
implementation(libs.jackson.module.kotlin) | ||
implementation(libs.apkzlib) | ||
implementation(libs.apksig) | ||
implementation(libs.bcpkix.jdk15on) | ||
implementation(libs.guava) | ||
|
||
testImplementation(libs.revanced.patcher) | ||
testImplementation(libs.kotlin.test) | ||
} | ||
|
||
tasks { | ||
test { | ||
useJUnitPlatform() | ||
testLogging { | ||
events("PASSED", "SKIPPED", "FAILED") | ||
} | ||
} | ||
} | ||
|
||
kotlin { | ||
compilerOptions { | ||
jvmTarget.set(JvmTarget.JVM_11) | ||
} | ||
} | ||
|
||
java { | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
|
||
publishing { | ||
repositories { | ||
mavenLocal() | ||
} | ||
|
||
publications { | ||
create<MavenPublication>("revanced-library-publication") { | ||
from(components["java"]) | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
useGpgCmd() | ||
sign(publishing.publications["revanced-library-publication"]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = "revanced-lib" |
Oops, something went wrong.