Skip to content

Commit 01ad92e

Browse files
farfromrefugrigor789
authored andcommitted
fix: ensure buildMetadata is done before R8
to allow custom proguard from metadata
1 parent c6946fe commit 01ad92e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test-app/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,10 @@ tasks.whenTaskAdded({ DefaultTask currentTask ->
463463
if (currentTask =~ /merge.*Assets/) {
464464
currentTask.dependsOn(buildMetadata)
465465
}
466+
// ensure buildMetadata is done before R8 to allow custom proguard from metadata
467+
if (currentTask =~ /minify.*WithR8/) {
468+
currentTask.dependsOn(buildMetadata)
469+
}
466470
if (currentTask =~ /assemble.*Debug/ || currentTask =~ /assemble.*Release/) {
467471
currentTask.finalizedBy("validateAppIdMatch")
468472
}

0 commit comments

Comments
 (0)