File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed
src/main/groovy/cn/hx/plugin/junkcode/task Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 10
10
```
11
11
buildscript {
12
12
dependencies {
13
- classpath "cn.hx.plugin:android-junk-code:1.0.3 "
13
+ classpath "cn.hx.plugin:android-junk-code:1.0.4 "
14
14
}
15
15
}
16
16
```
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ buildscript {
9
9
}
10
10
}
11
11
dependencies {
12
- classpath ' com.android.tools.build:gradle:4.1.0 '
12
+ classpath ' com.android.tools.build:gradle:4.1.1 '
13
13
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
14
14
classpath ' com.novoda:bintray-release:0.9.2'
15
- classpath " cn.hx.plugin:android-junk-code:1.0.3 "
15
+ classpath " cn.hx.plugin:android-junk-code:1.0.4 "
16
16
classpath " com.getkeepsafe.dexcount:dexcount-gradle-plugin:2.0.0"
17
17
18
18
// NOTE: Do not place your application dependencies here; they belong
Original file line number Diff line number Diff line change 2
2
project.name =AndroidJunkCode
3
3
project.groupId =cn.hx.plugin
4
4
project.artifactId =android-junk-code
5
- project.artifactVersion =1.0.3
5
+ project.artifactVersion =1.0.4
6
6
project.siteUrl =https://github.com/qq549631030/AndroidJunkCode
7
7
project.gitUrl =https://github.com/qq549631030/AndroidJunkCode.git
8
8
project.desc =generate junk code for android
Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ class AndroidJunkCodeTask extends DefaultTask {
58
58
for (int j = 0 ; j < config. otherCountPerPackage; j++ ) {
59
59
def className = generateName(j). capitalize()
60
60
def typeBuilder = TypeSpec . classBuilder(className)
61
+ typeBuilder. addModifiers(Modifier . PUBLIC )
61
62
for (int k = 0 ; k < config. methodCountPerClass; k++ ) {
62
63
def methodName = generateName(k)
63
64
def methodBuilder = MethodSpec . methodBuilder(methodName)
@@ -130,6 +131,7 @@ class AndroidJunkCodeTask extends DefaultTask {
130
131
generateLayout(layoutName)
131
132
def typeBuilder = TypeSpec . classBuilder(className)
132
133
typeBuilder. superclass(ClassName . get(" android.app" , " Activity" ))
134
+ typeBuilder. addModifiers(Modifier . PUBLIC )
133
135
// onCreate方法
134
136
def bundleClassName = ClassName . get(" android.os" , " Bundle" )
135
137
typeBuilder. addMethod(MethodSpec . methodBuilder(" onCreate" )
You can’t perform that action at this time.
0 commit comments