Skip to content

Commit ae119b4

Browse files
committed
build: submodule revanced-patches
1 parent ef24d08 commit ae119b4

File tree

176 files changed

+81
-94236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+81
-94236
lines changed

.github/workflows/android.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14+
with:
15+
submodules: true
16+
1417
- name: set up JDK
1518
uses: actions/setup-java@v4
1619
with:

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "revanced-patches"]
2+
path = revanced-patches
3+
url = https://github.com/chsbuffer/revanced-patches

app/build.gradle.kts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ android {
7171
jvmTarget = JvmTarget.JVM_17
7272
}
7373
}
74+
sourceSets {
75+
getByName("main") {
76+
java {
77+
srcDirs(
78+
"../revanced-patches/extensions/shared/library/src/main/java",
79+
"../revanced-patches/extensions/youtube/src/main/java",
80+
"../revanced-patches/extensions/spotify/src/main/java"
81+
)
82+
}
83+
}
84+
}
7485
}
7586

7687
dependencies {
@@ -80,6 +91,7 @@ dependencies {
8091
implementation(libs.kotlinx.coroutines.android)
8192
implementation(libs.fuel)
8293
compileOnly(libs.xposed)
94+
compileOnly(project(":stub"))
8395
}
8496

8597
abstract class GenerateStringsTask @Inject constructor(
@@ -143,8 +155,7 @@ abstract class GenerateStringsTask @Inject constructor(
143155
androidComponents {
144156
onVariants { variant ->
145157
val task = project.tasks.register<GenerateStringsTask>("generate${variant.name}Strings") {
146-
val stringResourceDir = project.file("src/main/addresources")
147-
inputDirectory.set(stringResourceDir)
158+
inputDirectory.set(project.file("../revanced-patches/patches/src/main/resources/addresources"))
148159
}
149160
variant.sources.res?.addGeneratedSourceDirectory(
150161
task, GenerateStringsTask::outputDirectory

app/src/main/addresources/values-af-rZA/strings.xml

Lines changed: 0 additions & 252 deletions
This file was deleted.

0 commit comments

Comments
 (0)