cn.hx.plugin.junkcode.ext.JunkCodeConfig.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-junk-code Show documentation
Show all versions of android-junk-code Show documentation
generate junk code for android
package cn.hx.plugin.junkcode.ext
import com.squareup.javapoet.MethodSpec
import com.squareup.javapoet.TypeSpec
import org.gradle.api.Action
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Internal
class JunkCodeConfig {
@Input
String packageBase = ""
@Input
int packageCount = 0
@Input
int activityCountPerPackage = 0
@Input
boolean excludeActivityJavaFile = false
@Input
int otherCountPerPackage = 0
@Input
int methodCountPerClass = 0
@Input
String resPrefix = "junk_"
@Input
int drawableCount = 0
@Input
int stringCount = 0
@Internal
Action typeGenerator = null
@Internal
Action methodGenerator = null
@Deprecated
@Internal
Action layoutGenerator = null
@Deprecated
@Internal
Action drawableGenerator = null
@Internal
Action> packageCreator = null
@Internal
Action> activityCreator = null
@Internal
Action> classNameCreator = null
@Internal
Action> methodNameCreator = null
@Internal
Action> drawableCreator = null
@Internal
Action> stringCreator = null
@Internal
Action> keepCreator = null
@Internal
Action javaGenerator = null
@Internal
Action resGenerator = null
@Internal
Action manifestGenerator = null
@Internal
String name = ""
JunkCodeConfig(String name) {
this.name = name
}
}