Skip to content

Commit

Permalink
🎨 移除无用代码
Browse files Browse the repository at this point in the history
  • Loading branch information
taoszu committed Sep 1, 2018
1 parent 9afdcfa commit cf90ba6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ dependencies {
dependencies {
implementation project(":processor")
annotationProcessor project(":processor")
implementation 'org.ow2.asm:asm:5.1'
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'

if (Boolean.valueOf(applyConfigurerPlugin)) {
classpath 'com.taoszu.configurer:plugin:1.0.4'
Expand Down
7 changes: 4 additions & 3 deletions processor/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'java-library'

apply plugin: 'com.github.dcendents.android-maven'

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.squareup:javapoet:1.9.0'
implementation 'org.ow2.asm:asm:5.1'
//implementation 'com.android.tools.build:gradle:3.1.4'
}

group='com.github.taoszu'


sourceCompatibility = "1.8"
targetCompatibility = "1.8"
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,7 @@ private void genWorkerMap(Set<TypeElement> elements) {

private void genFactoryClass(Set<TypeElement> elementSet, String module) {
String paramName = Constant.FACTORY_METHOD_PARAM_NAME;
ParameterizedTypeName mapTypeName = ParameterizedTypeName.get(
ClassName.get(Map.class), ClassName.get(String.class),
ParameterizedTypeName.get(ClassName.get(Class.class), WildcardTypeName.subtypeOf(Object.class)));

String className = capitalize(module) + Constant.FACTORY_SUFFIX;

ParameterSpec mapParameterSpec = ParameterSpec.builder(mapTypeName, paramName).build();
MethodSpec.Builder methodInit = MethodSpec.constructorBuilder()
.addModifiers(Modifier.PUBLIC);

Expand Down

0 comments on commit cf90ba6

Please sign in to comment.