2022-03-16 22:00:41 +01:00
|
|
|
plugins {
|
2023-07-05 22:35:12 +02:00
|
|
|
kotlin("jvm") version "1.8.20"
|
2022-03-20 20:30:51 +01:00
|
|
|
`maven-publish`
|
2023-08-29 03:47:01 +02:00
|
|
|
alias(libs.plugins.binary.compatibility.validator)
|
2022-03-16 22:00:41 +01:00
|
|
|
}
|
|
|
|
|
2022-03-21 21:54:16 +01:00
|
|
|
group = "app.revanced"
|
2022-03-16 22:00:41 +01:00
|
|
|
|
|
|
|
dependencies {
|
2023-08-23 04:28:11 +02:00
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
implementation(libs.xpp3)
|
|
|
|
implementation(libs.smali)
|
|
|
|
implementation(libs.multidexlib2)
|
|
|
|
implementation(libs.apktool.lib)
|
|
|
|
implementation(libs.kotlin.reflect)
|
2023-08-19 01:45:27 +02:00
|
|
|
|
2023-08-23 04:28:11 +02:00
|
|
|
compileOnly(libs.android)
|
2023-08-19 01:45:27 +02:00
|
|
|
|
2023-08-23 04:28:11 +02:00
|
|
|
testImplementation(libs.kotlin.test)
|
2022-06-20 17:07:04 +02:00
|
|
|
}
|
2022-03-18 20:46:24 +01:00
|
|
|
|
2022-04-08 22:49:37 +02:00
|
|
|
tasks {
|
2022-04-10 00:52:32 +02:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
testLogging {
|
|
|
|
events("PASSED", "SKIPPED", "FAILED")
|
|
|
|
}
|
2022-04-08 22:49:37 +02:00
|
|
|
}
|
2023-08-23 04:28:11 +02:00
|
|
|
|
2022-09-08 14:41:42 +02:00
|
|
|
processResources {
|
|
|
|
expand("projectVersion" to project.version)
|
|
|
|
}
|
2022-04-08 22:49:37 +02:00
|
|
|
}
|
|
|
|
|
2023-08-23 04:28:11 +02:00
|
|
|
kotlin { jvmToolchain(11) }
|
2023-05-08 00:41:24 +02:00
|
|
|
|
2023-08-26 19:10:29 +02:00
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
2022-03-20 20:30:51 +01:00
|
|
|
publishing {
|
|
|
|
repositories {
|
2023-08-23 04:28:11 +02:00
|
|
|
mavenLocal()
|
|
|
|
maven {
|
|
|
|
name = "GitHubPackages"
|
|
|
|
url = uri("https://maven.pkg.github.com/revanced/revanced-patcher")
|
|
|
|
credentials {
|
|
|
|
username = System.getenv("GITHUB_ACTOR")
|
|
|
|
password = System.getenv("GITHUB_TOKEN")
|
2022-03-20 20:30:51 +01:00
|
|
|
}
|
2023-08-23 04:28:11 +02:00
|
|
|
}
|
2022-03-20 20:30:51 +01:00
|
|
|
}
|
|
|
|
publications {
|
2023-08-23 04:28:11 +02:00
|
|
|
create<MavenPublication>("gpr") {
|
2022-03-20 20:30:51 +01:00
|
|
|
from(components["java"])
|
|
|
|
}
|
|
|
|
}
|
2022-06-18 22:52:49 +02:00
|
|
|
}
|