Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
ci: Do not include gson in MPP output
This commit is contained in:
1 parent
5617e22f05
commit
f5625e3549
4 files changed
+13
-15
No files matched your search
+1
-2
@@ -28,8 +28,7 @@
|
||||
[
|
||||
"@semantic-release/exec",
|
||||
{
|
||||
"prepareCmd": "./gradlew generatePatchesList \
|
||||
&& jq '.version=\"${nextRelease.version}\"' patches-list.json > patches-list.json.tmp && mv patches-list.json.tmp patches-list.json \
|
||||
"prepareCmd": "jq '.version=\"${nextRelease.version}\"' patches-list.json > patches-list.json.tmp && mv patches-list.json.tmp patches-list.json \
|
||||
&& python3 .github/scripts/generate_patches_readme.py $GITHUB_REPOSITORY $GITHUB_REF_NAME patches-list.json README.md"
|
||||
}
|
||||
],
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
[versions]
|
||||
morphe-patcher = "1.5.1"
|
||||
#noinspection GradleDependency
|
||||
smali = "b6365a84f4"
|
||||
smali = "d92701d947"
|
||||
gson = "2.14.0"
|
||||
|
||||
[libraries]
|
||||
|
||||
+10
-11
@@ -18,9 +18,13 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
// Separate configuration so gson is available at runtime for the
|
||||
// generatePatchesList task but never bundled into the APK.
|
||||
val patchListGeneratorClasspath: Configuration by configurations.creating
|
||||
|
||||
dependencies {
|
||||
// Used by JsonGenerator.
|
||||
implementation(libs.gson)
|
||||
compileOnly(libs.gson)
|
||||
patchListGeneratorClasspath(libs.gson)
|
||||
}
|
||||
|
||||
tasks {
|
||||
@@ -29,17 +33,12 @@ tasks {
|
||||
|
||||
dependsOn(build)
|
||||
|
||||
classpath = sourceSets["main"].runtimeClasspath
|
||||
mainClass.set("app.morphe.util.PatchListGeneratorKt")
|
||||
classpath = sourceSets["main"].runtimeClasspath + patchListGeneratorClasspath
|
||||
mainClass.set("util.PatchListGeneratorKt")
|
||||
}
|
||||
|
||||
// Used by gradle-semantic-release-plugin.
|
||||
publish {
|
||||
dependsOn("generatePatchesList")
|
||||
}
|
||||
}
|
||||
|
||||
kotlin {
|
||||
compilerOptions {
|
||||
freeCompilerArgs = listOf("-Xcontext-receivers")
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -31,7 +31,7 @@
|
||||
* applicable to this file.
|
||||
*/
|
||||
|
||||
package app.morphe.util
|
||||
package util
|
||||
|
||||
import app.morphe.patcher.patch.Patch
|
||||
import app.morphe.patcher.patch.loadPatchesFromJar
|
||||
Reference in new issue
Block a user