Skip to content

Commit e31b4ff

Browse files
authored
Merge pull request #10 from cyoyochoo/main
support multiple dimensions
2 parents 0f5c2d8 + 938662b commit e31b4ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/main/groovy/top/niunaijun/blackobfuscator/ObfPlugin.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ public class ObfPlugin implements Plugin<Project> {
5858
def buildType = upperCaseFirst(applicationVariant.buildType.name)
5959
boolean empty = true
6060
for (ReadOnlyProductFlavor flavor : applicationVariant.productFlavors) {
61-
def flavorName = upperCaseFirst(flavor.name)
61+
def flavorName = upperCaseFirst(applicationVariant.flavorName)
6262
addOtherTask(tasks, flavorName, buildType, mappingFile)
6363
empty = false
64+
break
6465
}
6566
if (empty) {
6667
addOtherTask(tasks, "", buildType, mappingFile)

0 commit comments

Comments
 (0)