60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
group = "app.revanced"
|
|
|
|
patches {
|
|
about {
|
|
name = "ReVanced Patches"
|
|
description = "Patches for ReVanced"
|
|
source = "git@github.com:revanced/revanced-patches.git"
|
|
author = "ReVanced"
|
|
contact = "contact@revanced.app"
|
|
website = "https://revanced.app"
|
|
license = "GNU General Public License v3.0"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// Required due to smali, or build fails. Can be removed once smali is bumped.
|
|
implementation(libs.guava)
|
|
// Android API stubs defined here.
|
|
compileOnly(project(":patches:stub"))
|
|
}
|
|
|
|
tasks {
|
|
register<JavaExec>("preprocessCrowdinStrings") {
|
|
description = "Preprocess strings for Crowdin push"
|
|
|
|
dependsOn(compileKotlin)
|
|
|
|
classpath = sourceSets["main"].runtimeClasspath
|
|
mainClass.set("app.revanced.util.CrowdinPreprocessorKt")
|
|
|
|
args = listOf(
|
|
"src/main/resources/addresources/values/strings.xml",
|
|
// Ideally this would use build/tmp/crowdin/strings.xml
|
|
// But using that does not work with Crowdin pull because
|
|
// it does not recognize the strings.xml file belongs to this project.
|
|
"src/main/resources/addresources/values/strings.xml"
|
|
)
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
freeCompilerArgs = listOf("-Xcontext-receivers")
|
|
}
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "GiteaPackages"
|
|
url = uri("https://git.naijun.dev/api/packages/ReVanced/maven")
|
|
credentials(HttpHeaderCredentials::class) {
|
|
name = "Authorization"
|
|
value = "token ${project.findProperty("gitea.accessToken") as String? ?: System.getenv("GITEA_TOKEN")}"
|
|
}
|
|
|
|
authentication { create<HttpHeaderAuthentication>("header") }
|
|
}
|
|
}
|
|
} |