diff --git a/auto-patch-plugin/build.gradle b/auto-patch-plugin/build.gradle index 3f97f412..30d13cc2 100644 --- a/auto-patch-plugin/build.gradle +++ b/auto-patch-plugin/build.gradle @@ -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' diff --git a/auto-patch-plugin/libs/baksmali-2.1.2.jar b/auto-patch-plugin/libs/baksmali-2.1.2.jar deleted file mode 100644 index 6ccc49fe..00000000 Binary files a/auto-patch-plugin/libs/baksmali-2.1.2.jar and /dev/null differ diff --git a/auto-patch-plugin/libs/dx.jar b/auto-patch-plugin/libs/dx.jar deleted file mode 100644 index a5ee646c..00000000 Binary files a/auto-patch-plugin/libs/dx.jar and /dev/null differ diff --git a/auto-patch-plugin/libs/smali-2.1.2.jar b/auto-patch-plugin/libs/smali-2.1.2.jar deleted file mode 100644 index 7a182be0..00000000 Binary files a/auto-patch-plugin/libs/smali-2.1.2.jar and /dev/null differ diff --git a/auto-patch-plugin/src/main/groovy/com/meituan/robust/autopatch/ReflectUtils.groovy b/auto-patch-plugin/src/main/groovy/com/meituan/robust/autopatch/ReflectUtils.groovy index 996942aa..ecf3839c 100644 --- a/auto-patch-plugin/src/main/groovy/com/meituan/robust/autopatch/ReflectUtils.groovy +++ b/auto-patch-plugin/src/main/groovy/com/meituan/robust/autopatch/ReflectUtils.groovy @@ -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(); } diff --git a/auto-patch-plugin/src/main/groovy/robust/gradle/plugin/AutoPatchTransform.groovy b/auto-patch-plugin/src/main/groovy/robust/gradle/plugin/AutoPatchTransform.groovy index 504cff9b..dc17324d 100644 --- a/auto-patch-plugin/src/main/groovy/robust/gradle/plugin/AutoPatchTransform.groovy +++ b/auto-patch-plugin/src/main/groovy/robust/gradle/plugin/AutoPatchTransform.groovy @@ -141,19 +141,12 @@ class AutoPatchTransform extends Transform implements Plugin { 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));