Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/ aop Public
forked from PettyWing/aop

⚡🔨【公共】无痕(全量)埋点

Notifications You must be signed in to change notification settings

HongdanHe/aop

Repository files navigation

切面、HOOK埋点两套方案

https://juejin.cn/post/6868148850302844941

插件使用

  1. 在项目根目录的build.gradle里依赖AspectJX
dependencies {
 classpath 'com.hujiang.aspectjx:gradle-android-plugin-aspectjx:2.0.10'
 // 如果build:gradle在3.6.0以下,使用2.0.8版本
}
  1. 在app目录的build.gradle里添加Aspectj的插件 apply plugin: 'android-aspectjx'
  2. 在app目录的build.gradle里去掉不必要侵入的类 不去掉可能会导致 java.util.zip.ZipException: zip file is empty 或者 classNotDefFoundException
    aspectjx{
     exclude 'com.google','com.squareup','com.alipay','org.apache'
    }
    
  3. 如果你使用得分组件时androidx版本则用master分支,否则使用support分支

文章介绍

About

⚡🔨【公共】无痕(全量)埋点

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%

AltStyle によって変換されたページ (->オリジナル) /