HujiangTechnology / gradle_plugin_android_aspectjx

A Android gradle plugin that effects AspectJ on Android project and can hook methods in Kotlin, aar and jar file.
Apache License 2.0
3.94k stars 570 forks source link

Can't weave class for android library #267

Open LanderlYoung opened 4 years ago

LanderlYoung commented 4 years ago

the plugin can only support android applications, not android libraries.

// It's hard coded here
        if (project.plugins.hasPlugin(AppPlugin)) {
            //build time trace
            project.gradle.addListener(new TimeTrace())

            //register AspectTransform
            AppExtension android = project.extensions.getByType(AppExtension)
            android.registerTransform(new AJXTransform(project))
        }
tedzyc commented 3 years ago

公司项目强制要分模块,无法插入代码操蛋啊