Seeker

A plugin can change method modifier with Hide annotation and build jar and aar automatically

MIT License

Stars
16

Seeker

🔨 A plugin can change method modifier with Hide annotation and build jar and aar automatically. modifiergradlejar/aar

Feature

  • hook java
  • private
  • modifier

TODO

  • hook java
  • @Hide
  • @Hide

Versions

lib version
seeker Download
seeker-plugin Download
seeker-annotation Download
seeker-processor Download

Usage example

@Hide

public class Mock{
    @Hide(Modifier.PROTECTED)
    public void mock(){
    }
}

./gradlew :xxx:uploadArchives jar/aar

Configuration

project root build.gradle seeker-plugin

buildscript {
    //...
    repositories {
        jcenter()
        maven { url 'https://jitpack.io' }
    }
    dependencies {
        classpath "com.yeoh.seeker:seeker-plugin:${version}"
    }
}

library build.gradle

apply plugin: 'seeker-plugin'
// ...
dependencies {
    implementation "com.yeoh.seeker:seeker:${version}"
    implementation "com.yeoh.seeker:seeker-annotation:${version}"
    annotationProcessor "com.yeoh.seeker:seeker-processor:${version}"
}
Badges
Extracted from project README