We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75e5b43 + 1359f05 commit a8e9b07Copy full SHA for a8e9b07
1 file changed
build-artifacts/project-template-gradle/build.gradle
@@ -569,8 +569,12 @@ task buildMetadata (type: JavaExec) {
569
metadataParams.add(androidJar)
570
571
def ft = fileTree(dir: "$buildDir/intermediates/transforms/dex", include: "**/*.dex")
572
+ def buildDirPattern = File.separator + project.ext.selectedBuildType + File.separator
573
ft.each { currentDexFile ->
- metadataParams.add(currentDexFile.getAbsolutePath())
574
+ def dexFilepath = currentDexFile.getAbsolutePath()
575
+ if (dexFilepath.contains(buildDirPattern)) {
576
+ metadataParams.add(dexFilepath)
577
+ }
578
}
579
580
workingDir "build-tools"
0 commit comments