greenrobot / EventBus

Event bus for Android and Java that simplifies communication between Activities, Fragments, Threads, Services, etc. Less code, better quality.
http://greenrobot.org/eventbus/
Apache License 2.0
24.67k stars 4.66k forks source link

[BREAD-2162] Fix EventBus and Hilt conflicts #718

Closed igokoro closed 1 year ago

igokoro commented 1 year ago

Update EventBus infra so it can be compiled again

Updated java, gradle, AGP Update build scripts to work with AGP Removed ability to publish to maven central

Do not fail when eventBusIndex is not present

EventBus annotation processor is conflicting with hilt annotation processing which results in a broken incremental compilation.

Hilt runs annotation processing in a special gradle task that also happens to execute other annotation processors when kapt task is up-to-date. But hilt does not pass the original arguments to the processors which eventbus expects to see.

This change changes behavior to not fail annotation processing but to instead not run it. This should be safe as: