方法
| 限定符和类型 |
方法和说明 |
static void |
agentmain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation instrumentation) |
static void |
ant(java.lang.instrument.Instrumentation instrumentation) |
static void |
eclipse(java.lang.instrument.Instrumentation instrumentation) |
static void |
maven(java.lang.instrument.Instrumentation instrumentation) |
static void |
premain(java.lang.String agentArgs,
java.lang.instrument.Instrumentation instrumentation)
ant、maven、eclipse插件包打包相同点:
打包之后都需要将asm-all-5.0.3.jar包中的org目录下的代码拷贝到cloudwise-mobile-obfus.jar包的根目录下
打包不同点: ant插件: 1、切换到ant方法
2、pom.xml文件进行相应修改(MANIFEST.MF文件中添加Boot-Class-Path节点)
maven插件: 1、切换到maven方法
2、pom.xml文件进行相应修改(MANIFEST.MF文件中移除Boot-Class-Path节点)
maven插件出来该包还有cloudwise-maven-plugin工程
eclipse插件: eclipse插件需要分2个版本进行开发(分别用对应的eclipse版本进行开发): 1、4.4以上版本(包含4.4)
2、4.4以下版本(不包含4.4) 1、切换到eclipse方法
2、pom.xml文件进行相应修改(MANIFEST.MF文件中移除Boot-Class-Path节点)
eclipse插件除了该包还有一下四个工程:
com.cloudwise.app.agent.eclipse.plugin工程(plug-in插件工程
,主插件工程,将cloudwise-mobile
-distribute.jar和cloudwise-mobile.xml文件拷贝到用户android工程的对应目录中)
com.cloudwise.
|