All Projects → iReaderAndroid → Patchpluginforzeus

iReaderAndroid / Patchpluginforzeus

ZeusPlugin插件框架热修复gradle插件源码

Programming Languages

groovy
2714 projects

#ZeusPlugin插件框架热修复gradle插件源码

项目说明

本项目为ZeusPlugin所使用的热修复gradle插件源码,应用该插件可以动态地在编译出来的APK的每个类的构造函数中注入代码:

if (Boolean.FALSE.booleanValue())System.out.println(Predicate.class);

使用方式

在项目根目录build.gradle依赖插件:

 classpath 'zeusplugin:patch-gradle-plugin:1.0.0'

在项目module中build.gradle中应用插件

apply plugin: 'patch-gradle-plugin'
patchPlugin{
    enable = true//如果enable为true则表明打出的包会在每个类的构造函数中注入代码
}

##鸣谢 NuwaGradle

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].