Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
Compare commits
2
Commits
e00dc144a0
...
1d5c5702cc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d5c5702cc | ||
|
|
ca3ebed38b |
No files matched your search
@@ -1,11 +1,17 @@
|
|||||||
[versions]
|
[versions]
|
||||||
morphe-patcher = "2.4.0"
|
morphe-patcher = "2.5.0"
|
||||||
#noinspection GradleDependency
|
#noinspection GradleDependency
|
||||||
smali = "5eaff5a2c9"
|
smali = "5eaff5a2c9"
|
||||||
gson = "2.15.0"
|
gson = "2.15.0"
|
||||||
|
animalsniffer = "2.0.1"
|
||||||
|
android-api-signature = "8.0.0_r2"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
|
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
|
||||||
|
android-api-signature = { module = "net.sf.androidscents.signature:android-api-level-26", version.ref = "android-api-signature" }
|
||||||
# Gradle plugins adds the dependency during build, this declaration is here only for dependabot to provide updates.
|
# Gradle plugins adds the dependency during build, this declaration is here only for dependabot to provide updates.
|
||||||
#noinspection UnusedVersionCatalogEntry
|
#noinspection UnusedVersionCatalogEntry
|
||||||
morphe-patcher = { module = "app.morphe:morphe-patcher", version.ref = "morphe-patcher" }
|
morphe-patcher = { module = "app.morphe:morphe-patcher", version.ref = "morphe-patcher" }
|
||||||
|
|
||||||
|
[plugins]
|
||||||
|
animalsniffer = { id = "ru.vyarus.animalsniffer", version.ref = "animalsniffer" }
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
plugins {
|
||||||
|
// Fails the build if patch code uses JDK APIs that do not exist on Android.
|
||||||
|
alias(libs.plugins.animalsniffer)
|
||||||
|
}
|
||||||
|
|
||||||
group = "app.template"
|
group = "app.template"
|
||||||
|
|
||||||
patches {
|
patches {
|
||||||
@@ -20,6 +25,14 @@ val patchListGeneratorClasspath = configurations.create("patchListGeneratorClass
|
|||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(libs.gson)
|
compileOnly(libs.gson)
|
||||||
patchListGeneratorClasspath(libs.gson)
|
patchListGeneratorClasspath(libs.gson)
|
||||||
|
|
||||||
|
// Android API level 26 is the minimum API the patches are compiled for (see buildAndroid).
|
||||||
|
signature(libs.android.api.signature) { artifact { type = "signature" } }
|
||||||
|
}
|
||||||
|
|
||||||
|
animalsniffer {
|
||||||
|
// Only the main source set ships in the patches file.
|
||||||
|
sourceSets = listOf(project.sourceSets["main"])
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
@@ -32,6 +45,11 @@ tasks {
|
|||||||
mainClass.set("util.PatchListGeneratorKt")
|
mainClass.set("util.PatchListGeneratorKt")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The check task already runs it, but buildAndroid does not depend on check.
|
||||||
|
named("buildAndroid") {
|
||||||
|
dependsOn("animalsnifferMain")
|
||||||
|
}
|
||||||
|
|
||||||
// Used by gradle-semantic-release-plugin.
|
// Used by gradle-semantic-release-plugin.
|
||||||
publish {
|
publish {
|
||||||
dependsOn("generatePatchesList")
|
dependsOn("generatePatchesList")
|
||||||
|
|||||||
Reference in new issue
Block a user