Skip to content

Commit 938662b

Browse files
committed
support multiple dimensions
1 parent 0f5c2d8 commit 938662b

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)