-
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.
- Loading branch information
huangx
committed
Jun 17, 2020
1 parent
934755c
commit 5c6e40e
Showing
8 changed files
with
119 additions
and
93 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
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
9 changes: 1 addition & 8 deletions
9
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,12 +1,5 @@ | ||
package cn.hx.plugin.junkcode.ext | ||
|
||
class AndroidJunkCodeExt { | ||
String[] variants = [] | ||
String[] packages = [] | ||
int activityCountPerPackage = 0 | ||
int otherCountPerPackage = 0 | ||
int methodCountPerClass = 0 | ||
String resPrefix = "junk_" | ||
int drawableCount = 0 | ||
int stringCount = 0 | ||
Map<String, Closure<JunkCodeConfig>> configMap = [:] | ||
} |
22 changes: 22 additions & 0 deletions
22
library/src/main/groovy/cn/hx/plugin/junkcode/ext/JunkCodeConfig.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package cn.hx.plugin.junkcode.ext | ||
|
||
import org.gradle.api.tasks.Input | ||
|
||
class JunkCodeConfig { | ||
@Input | ||
String packageBase = "" | ||
@Input | ||
int packageCount = 0 | ||
@Input | ||
int activityCountPerPackage = 0 | ||
@Input | ||
int otherCountPerPackage = 0 | ||
@Input | ||
int methodCountPerClass = 0 | ||
@Input | ||
String resPrefix = "junk_" | ||
@Input | ||
int drawableCount = 0 | ||
@Input | ||
int stringCount = 0 | ||
} |
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