Skip to content

Commit 5b86fd7

Browse files
committed
support buildType
1 parent c46b753 commit 5b86fd7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class ObfPlugin implements Plugin<Project> {
5656
def name = upperCaseFirst(buildType.name)
5757
def names = [buildType.name, name]
5858
for (String p : names) {
59-
addOtherTask(p)
59+
addOtherTask(tasks, p)
6060
}
6161
}
6262
})
@@ -66,7 +66,7 @@ public class ObfPlugin implements Plugin<Project> {
6666
def name = upperCaseFirst(productFlavor.name)
6767
def names = [productFlavor.name, name]
6868
for (String p : names) {
69-
addOtherTask(p)
69+
addOtherTask(tasks, p)
7070
}
7171
}
7272
})
@@ -81,7 +81,7 @@ public class ObfPlugin implements Plugin<Project> {
8181
}
8282
}
8383

84-
private void addOtherTask(String name) {
84+
private void addOtherTask(List<Task> tasks, String name) {
8585
addTask("mergeDex${name}Release", tasks)
8686
addTask("mergeDex${name}Debug", tasks)
8787
addTask("mergeLibDex${name}Debug", tasks)

0 commit comments

Comments
 (0)