-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
huangx
committed
Oct 14, 2021
1 parent
3433105
commit bbd4c10
Showing
4 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
library/src/main/groovy/cn/hx/plugin/junkcode/ext/AndroidJunkCodeExt.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
package cn.hx.plugin.junkcode.ext | ||
|
||
import org.gradle.api.Action | ||
import org.gradle.api.NamedDomainObjectContainer | ||
|
||
class AndroidJunkCodeExt { | ||
Map<String, Closure<JunkCodeConfig>> configMap = [:] | ||
|
||
NamedDomainObjectContainer<JunkCodeConfig> variantConfig | ||
|
||
void variantConfig(Action<? super NamedDomainObjectContainer<JunkCodeConfig>> action) { | ||
action.execute(variantConfig) | ||
} | ||
} |