Skip to content

Commit ec04ef0

Browse files
committed
fix: spotify patch
1 parent 5167687 commit ec04ef0

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import org.gradle.kotlin.dsl.support.listFilesOrdered
33
plugins {
44
alias(libs.plugins.kotlin)
55
alias(libs.plugins.binary.compatibility.validator)
6+
alias(libs.plugins.shadow)
67
`maven-publish`
78
signing
89
}
@@ -48,12 +49,25 @@ tasks {
4849
attributes["License"] = "GNU General Public License v3.0"
4950
}
5051
}
52+
53+
shadowJar {
54+
manifest {
55+
exclude("META-INF/versions/**")
56+
}
57+
58+
dependencies {
59+
include(dependency("app.revanced:revanced.patches.*"))
60+
relocate("app.revanced:revanced.patches", "shadow.app.revanced:revanced.patches")
61+
}
62+
minimize()
63+
}
5164

5265
register("buildDexJar") {
5366
description = "Build and add a DEX to the JAR file"
5467
group = "build"
5568

5669
dependsOn(build)
70+
dependsOn(shadowJar)
5771

5872
doLast {
5973
val d8 = File(System.getenv("ANDROID_HOME")).resolve("build-tools")

gradle/libs.versions.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[versions]
22
revanced-patcher = "19.3.1"
3-
revanced-patches = "4.8.0-dev.3"
3+
revanced-patches = "4.8.0-dev.8"
44
smali = "3.0.5"
55
binary-compatibility-validator = "0.14.0"
66
kotlin = "1.9.22"
7+
shadow = "8.1.1"
78

89
[libraries]
910
revanced-patcher = { module = "app.revanced:revanced-patcher", version.ref = "revanced-patcher" }
@@ -13,3 +14,4 @@ smali = { module = "com.android.tools.smali:smali", version.ref = "smali" }
1314
[plugins]
1415
binary-compatibility-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "binary-compatibility-validator" }
1516
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
17+
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }

0 commit comments

Comments
 (0)