File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
1416configure< 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 {}
You can’t perform that action at this time.
0 commit comments