ci: Preprocess strings before pushing to Crowdin (#4383)

This commit is contained in:
LisoUseInAIKyrios
2025-01-31 09:58:26 +02:00
committed by GitHub
parent d003fd2c37
commit 1172da23ff
5 changed files with 62 additions and 3 deletions

View File

@ -21,6 +21,22 @@ dependencies {
compileOnly(project(":patches:stub"))
}
tasks {
register<JavaExec>("preprocessCrowdinStrings") {
description = "Preprocess strings for Crowdin push"
dependsOn(build)
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("app.revanced.util.CrowdinPreprocessorKt")
args = listOf(
"src/main/resources/addresources/values/strings.xml",
"build/tmp/crowdin/strings.xml"
)
}
}
kotlin {
compilerOptions {
freeCompilerArgs = listOf("-Xcontext-receivers")
@ -38,4 +54,4 @@ publishing {
}
}
}
}
}