Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
chore: Fail the build if patches use APIs not available on Android
Patches run inside Manager on Android, so check the compiled patch classes against the Android API 26 signature with Animal Sniffer. This catches desktop-only JDK classes such as AWT and newer JDK methods such as InputStream.readAllBytes() or List.of().
This commit is contained in:
1 parent
e00dc144a0
commit
ca3ebed38b
2 files changed
+24
No files matched your search
@@ -3,9 +3,15 @@ morphe-patcher = "2.4.0"
|
||||
#noinspection GradleDependency
|
||||
smali = "5eaff5a2c9"
|
||||
gson = "2.15.0"
|
||||
animalsniffer = "2.0.1"
|
||||
android-api-signature = "8.0.0_r2"
|
||||
|
||||
[libraries]
|
||||
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.
|
||||
#noinspection UnusedVersionCatalogEntry
|
||||
morphe-patcher = { module = "app.morphe:morphe-patcher", version.ref = "morphe-patcher" }
|
||||
|
||||
[plugins]
|
||||
animalsniffer = { id = "ru.vyarus.animalsniffer", version.ref = "animalsniffer" }
|
||||
Reference in new issue
Block a user