A plugin can change method modifier with Hide annotation and build jar and aar automatically
MIT License
🔨 A plugin can change method modifier with Hide annotation and build jar and aar automatically. modifiergradlejar/aar
lib | version |
---|---|
seeker | |
seeker-plugin | |
seeker-annotation | |
seeker-processor |
@Hide
public class Mock{
@Hide(Modifier.PROTECTED)
public void mock(){
}
}
./gradlew :xxx:uploadArchives
jar/aar
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}"
}