【问题标题】:Android Plugin add specific code to some method of source codeAndroid Plugin 将特定代码添加到源代码的某些方法中
【发布时间】:2018-02-06 03:50:01
【问题描述】:

在打包Android应用的过程中,如果我想在某个特定的方法中插入一些特定的代码。我该如何编写Android插件。有没有我可以覆盖的接口(比如获取方法名,向该方法插入代码)

【问题讨论】:

    标签: android gradle plugins


    【解决方案1】:

    使用Android Transform API 注入自定义类操作

    【讨论】:

      猜你喜欢
      • 2014-04-20
      • 1970-01-01
      • 1970-01-01
      • 2011-02-23
      • 2016-05-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-08
      相关资源
      最近更新 更多