Skip to content

Commit 419711a

Browse files
fdroid check
1 parent f7f0e99 commit 419711a

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

mobile/android/app/build.gradle.kts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ configurations.all {
99
exclude(group = "com.google.android.play", module = "core-common")
1010
exclude(group = "com.google.android.play", module = "feature-delivery")
1111
exclude(group = "com.google.android.play", module = "app-update")
12+
exclude(group = "com.google.android.play", module = "tasks")
13+
exclude(group = "com.google.android.play", module = "split-install")
1214
}
1315

1416
configure<com.android.build.api.dsl.ApplicationExtension> {
@@ -53,4 +55,21 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
5355
}
5456
}
5557

56-
dependencies {}
58+
project.afterEvaluate {
59+
tasks.configureEach {
60+
if (name.contains("minifyReleaseWithR8") || name.contains("compileReleaseJavaWithJavac")) {
61+
doFirst {
62+
val intermediatesDir = File(project.buildDir, "intermediates/classes/release")
63+
if (intermediatesDir.exists()) {
64+
val playCoreDir = File(intermediatesDir, "com/google/android/play/core")
65+
if (playCoreDir.exists()) {
66+
playCoreDir.deleteRecursively()
67+
logger.lifecycle("FOSS SANITIZER: Successfully purged pre-compiled Play Core binaries from intermediate pools.")
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
74+
75+
dependencies {}

0 commit comments

Comments
 (0)