com.eventbus.autoregister
Owner: wugang
利用Gradle插件实现 EventBus 自动在Activity/Fragment/View中注册
https://juejin.im/post/5d8adf5d518825091e0fd999
Sources: https://github.com/lwugang/EventBusAutoRegister
Version 1.0.0 (latest)
Created 25 September 2019.
利用Gradle插件实现 EventBus 自动在Activity/Fragment/View中注册
Using the plugins DSL:
plugins {
id("com.eventbus.autoregister") version "1.0.0"
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
dependencies {
classpath("gradle.plugin.com.liwg.eventbus.autoregister:autoRegisterPlugin:1.0.0")
}
}
apply(plugin = "com.eventbus.autoregister")
Using the plugins DSL:
plugins {
id "com.eventbus.autoregister" version "1.0.0"
}
Using legacy plugin application:
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.liwg.eventbus.autoregister:autoRegisterPlugin:1.0.0"
}
}
apply plugin: "com.eventbus.autoregister"