Skip to content

Commit 9c902c0

Browse files
committed
support gradle
1 parent e182773 commit 9c902c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public class ObfPlugin implements Plugin<Project> {
4545
addTask("transformDexArchiveWithDexMergerForDebug", tasks)
4646
addTask("transformDexArchiveWithDexMergerForRelease", tasks)
4747
addTask("minifyReleaseWithR8", tasks)
48+
addTask("minifyDebugWithR8", tasks)
4849

4950
if (android != null) {
5051
android.productFlavors.all(new Action<ProductFlavor>() {
@@ -61,6 +62,7 @@ public class ObfPlugin implements Plugin<Project> {
6162
addTask("transformDexArchiveWithDexMergerFor${p}Release", tasks)
6263

6364
addTask("minify${p}ReleaseWithR8", tasks)
65+
addTask("minify${p}DebugWithR8", tasks)
6466
}
6567
}
6668
})

0 commit comments

Comments
 (0)