@@ -8,5 +8,51 @@ patches {
88 author = " indrastorms"
99 contact = " https://t.me/Indra012"
1010 license = " GNU General Public License v3.0"
11+ website = " https://github.com/indrastorms/Dropped-Patches"
12+ }
13+ }
14+
15+ dependencies {
16+ // Required due to smali, or build fails. Can be removed once smali is bumped.
17+ implementation(libs.guava)
18+ // Android API stubs defined here.
19+ // compileOnly(project(":patches:stub"))
20+ }
21+
22+ tasks {
23+ register<JavaExec >(" preprocessCrowdinStrings" ) {
24+ description = " Preprocess strings for Crowdin push"
25+
26+ dependsOn(compileKotlin)
27+
28+ classpath = sourceSets[" main" ].runtimeClasspath
29+ mainClass.set(" app.revanced.util.CrowdinPreprocessorKt" )
30+
31+ // args = listOf(
32+ // "src/main/resources/addresources/values/strings.xml",
33+ // // Ideally this would use build/tmp/crowdin/strings.xml
34+ // // But using that does not work with Crowdin pull because
35+ // // it does not recognize the strings.xml file belongs to this project.
36+ // "src/main/resources/addresources/values/strings.xml"
37+ // )
38+ }
39+ }
40+
41+ kotlin {
42+ compilerOptions {
43+ freeCompilerArgs = listOf (" -Xcontext-receivers" )
44+ }
45+ }
46+
47+ publishing {
48+ repositories {
49+ maven {
50+ name = " GitHubPackages"
51+ url = uri(" https://maven.pkg.github.com/revanced/revanced-patches" )
52+ credentials {
53+ username = System .getenv(" GITHUB_ACTOR" )
54+ password = System .getenv(" GITHUB_TOKEN" )
55+ }
56+ }
1157 }
1258}
0 commit comments