Skip to content

Commit

Permalink
remove some useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
mivanzhang committed Mar 27, 2017
1 parent a92574f commit d437b13
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion auto-patch-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ dependencies {
compile 'org.javassist:javassist:3.20.0-GA'
// compile 'com.meituan.robust:autopatchbase:' + VERSION_NAME
compile project(':autopatchbase')
compile fileTree(dir: 'libs', include: ['*.jar'])
}
apply from: '../gradle_mvn_push.gradle'
Binary file removed auto-patch-plugin/libs/baksmali-2.1.2.jar
Binary file not shown.
Binary file removed auto-patch-plugin/libs/dx.jar
Binary file not shown.
Binary file removed auto-patch-plugin/libs/smali-2.1.2.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class ReflectUtils {
stringBuilder.append("\$_=(\$r)" + Constants.ROBUST_UTILS_FULL_NAME + ".invokeReflectConstruct(\"" + className + "\",\$args,null);");
}
stringBuilder.append("}");
println("getCreateClassString " + stringBuilder.toString())
// println("getCreateClassString " + stringBuilder.toString())
return stringBuilder.toString();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,12 @@ class AutoPatchTransform extends Transform implements Plugin<Project> {

zipPatchClassesFile()
executeCommand(jar2DexCommand)
// Arrays{"--dex","--output=classes.dex ","meituan.jar"}
// String[]args=new String[3];
// args[0]="--dex";
// args[1]="--output=classes.dex";
// args[2]=patchPath+"meituan.jar";
//
// com.android.dx.command.Main.main(args);
executeCommand(dex2SmaliCommand)
SmaliUitils.getInstance().dealObscureInSmali();
executeCommand(smali2DexCommand)
//package patch.dex to patch.jar
packagePatchDex2Jar()
// deleteTmpFiles()
deleteTmpFiles()
}
def zipPatchClassesFile(){
ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(Config.robustGenerateDirectory+ Constants.ZIP_FILE_NAME));
Expand Down

0 comments on commit d437b13

Please sign in to comment.