Skip to content

Commit f47d360

Browse files
committed
fix: fix build
1 parent 806a3dc commit f47d360

6 files changed

Lines changed: 62 additions & 22 deletions

File tree

gradle.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
org.gradle.parallel = true
21
org.gradle.caching = true
2+
org.gradle.jvmargs = -Xms512M -Xmx2048M
3+
org.gradle.parallel = true
4+
android.useAndroidX = true
35
kotlin.code.style = official
4-
version = 1.4.6-dev.1
6+
version = 5.18.0

gradle/libs.versions.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@
22
revanced-patcher = "21.0.0"
33
# revanced-patches = "4.8.0-dev.8"
44
smali = "3.0.5"
5+
agp = "8.2.2"
6+
guava = "33.4.0-jre"
7+
8+
9+
[libraries]
10+
guava = { module = "com.google.guava:guava", version.ref = "guava" }
11+
12+
13+
[plugins]
14+
android-library = { id = "com.android.library", version.ref = "agp" }

patches/api/patches.api

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,6 @@ public final class dropped/patches/nova/prime/UnlockPrimePatchKt {
66
public static final fun getUnlockPrimePatch ()Lapp/revanced/patcher/patch/BytecodePatch;
77
}
88

9-
public final class dropped/patches/shared/misc/hex/HexPatchKt {
10-
public static final fun hexPatch (Lkotlin/jvm/functions/Function0;)Lapp/revanced/patcher/patch/RawResourcePatch;
11-
}
12-
13-
public final class dropped/patches/shared/misc/hex/Replacement {
14-
public static final field Companion Ldropped/patches/shared/misc/hex/Replacement$Companion;
15-
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
16-
public final fun replacePattern ([B)V
17-
}
18-
19-
public final class dropped/patches/shared/misc/hex/Replacement$Companion {
20-
}
21-
22-
public final class dropped/patches/spotify/premium/UnlockPremiumPatchKt {
23-
public static final fun getUnlockPremiumPatch ()Lapp/revanced/patcher/patch/RawResourcePatch;
24-
}
25-
269
public final class dropped/patches/tasker/trial/unlock/UnlockLicensePatchKt {
2710
public static final fun getUnlockLicensePatch ()Lapp/revanced/patcher/patch/BytecodePatch;
2811
}

patches/build.gradle.kts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,51 @@ patches {
88
author = "indrastorms"
99
contact = "https://t.me/Indra012"
1010
license = "GNU General Public License v3.0"
11+
website = "https://github.com/indrastorms/Dropped-Patches"
12+
}
13+
}
14+
15+
dependencies {
16+
// Required due to smali, or build fails. Can be removed once smali is bumped.
17+
implementation(libs.guava)
18+
// Android API stubs defined here.
19+
// compileOnly(project(":patches:stub"))
20+
}
21+
22+
tasks {
23+
register<JavaExec>("preprocessCrowdinStrings") {
24+
description = "Preprocess strings for Crowdin push"
25+
26+
dependsOn(compileKotlin)
27+
28+
classpath = sourceSets["main"].runtimeClasspath
29+
mainClass.set("app.revanced.util.CrowdinPreprocessorKt")
30+
31+
// args = listOf(
32+
// "src/main/resources/addresources/values/strings.xml",
33+
// // Ideally this would use build/tmp/crowdin/strings.xml
34+
// // But using that does not work with Crowdin pull because
35+
// // it does not recognize the strings.xml file belongs to this project.
36+
// "src/main/resources/addresources/values/strings.xml"
37+
// )
38+
}
39+
}
40+
41+
kotlin {
42+
compilerOptions {
43+
freeCompilerArgs = listOf("-Xcontext-receivers")
44+
}
45+
}
46+
47+
publishing {
48+
repositories {
49+
maven {
50+
name = "GitHubPackages"
51+
url = uri("https://maven.pkg.github.com/revanced/revanced-patches")
52+
credentials {
53+
username = System.getenv("GITHUB_ACTOR")
54+
password = System.getenv("GITHUB_TOKEN")
55+
}
56+
}
1157
}
1258
}

patches/src/main/kotlin/dropped/patches/tasker/trial/unlock/UnlockLicensePatch.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ val unlockLicensePatch = bytecodePatch(
99
) {
1010
compatibleWith("net.dinglisch.android.taskerm")
1111

12-
val unlockLicensePatch by checkLicenseFingerprint()
1312
execute {
14-
unlockLicensePatch.mutableMethod.addInstruction(0, "return-void")
13+
checkLicenseFingerprint.method.addInstruction(0, "return-void")
1514
// Return the method early, which prompts the user with a non dismissible dialog, when the trial period is over.
1615
}
1716
}

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ pluginManagement {
1515
}
1616
}
1717

18-
plugins { id("app.revanced.patches") version "1.0.0-dev.6" }
18+
plugins { id("app.revanced.patches") version "1.0.0-dev.8" }

0 commit comments

Comments
 (0)