feat: Added root-only adb runner (tested on emulator)

I spent almost an entire day on this, you better be happy!
This commit is contained in:
Lucaskyy
2022-04-15 23:40:09 +02:00
parent c9941fe182
commit 37ecc5eaa6
8 changed files with 487 additions and 19 deletions

View File

@@ -4,7 +4,6 @@ plugins {
}
group = "app.revanced"
version = "1.0"
repositories {
mavenCentral()
@@ -16,6 +15,9 @@ repositories {
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") // DO NOT CHANGE!
}
}
maven {
url = uri("https://jitpack.io")
}
}
val patchesDependency = "app.revanced:revanced-patches:1.0.0-dev.4"
@@ -29,8 +31,12 @@ dependencies {
implementation("com.google.code.gson:gson:2.9.0")
implementation("me.tongfei:progressbar:0.9.3")
implementation("com.github.li-wjohnson:jadb:master-SNAPSHOT") // using a fork instead.
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
}
val cliMainClass = "app.revanced.cli.Main"
tasks {
build {
dependsOn(shadowJar)
@@ -42,7 +48,7 @@ tasks {
exclude(dependency(patchesDependency))
}
manifest {
attributes("Main-Class" to "app.revanced.cli.Main")
attributes("Main-Class" to cliMainClass)
attributes("Implementation-Title" to project.name)
attributes("Implementation-Version" to project.version)
}