initial
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
group = "app.twitter"
|
||||
|
||||
patches {
|
||||
about {
|
||||
name = "X Patches"
|
||||
description = "Local patches for X (Twitter)"
|
||||
source = "local"
|
||||
author = "local"
|
||||
contact = "N/A"
|
||||
website = "N/A"
|
||||
license = "GPLv3"
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-Xcontext-parameters")
|
||||
}
|
||||
}
|
||||
|
||||
// Separate configuration so gson is available at runtime for the
|
||||
// generatePatchesList task but never bundled into the APK.
|
||||
val patchListGeneratorClasspath = configurations.create("patchListGeneratorClasspath")
|
||||
|
||||
dependencies {
|
||||
compileOnly(libs.gson)
|
||||
patchListGeneratorClasspath(libs.gson)
|
||||
}
|
||||
|
||||
tasks {
|
||||
register<JavaExec>("generatePatchesList") {
|
||||
description = "Build patch with patch list"
|
||||
|
||||
dependsOn(build)
|
||||
|
||||
classpath = sourceSets["main"].runtimeClasspath + patchListGeneratorClasspath
|
||||
mainClass.set("util.PatchListGeneratorKt")
|
||||
}
|
||||
|
||||
// Used by gradle-semantic-release-plugin.
|
||||
publish {
|
||||
dependsOn("generatePatchesList")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user