Skip to content

Commit

Permalink
support multiple dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuyouyongbm committed Feb 26, 2022
1 parent 0f5c2d8 commit 938662b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ public class ObfPlugin implements Plugin<Project> {
def buildType = upperCaseFirst(applicationVariant.buildType.name)
boolean empty = true
for (ReadOnlyProductFlavor flavor : applicationVariant.productFlavors) {
def flavorName = upperCaseFirst(flavor.name)
def flavorName = upperCaseFirst(applicationVariant.flavorName)
addOtherTask(tasks, flavorName, buildType, mappingFile)
empty = false
break
}
if (empty) {
addOtherTask(tasks, "", buildType, mappingFile)
Expand Down

0 comments on commit 938662b

Please sign in to comment.