EventBusIndex when using annotationProcessor

Created on 24 Nov 2016  路  3Comments  路  Source: greenrobot/EventBus

The Android Gradle plugin 2.2 has introduced an annotationProcessor, meaning apt doesn't need to be used anymore.

How would you go about configuring the EventBusIndex with this annotationProcessor? As the documentation currently relies on using apt and using the apt { arguments { } } closure, to specify the event bus index.

Most helpful comment

Hi @andrewlord1990!

I used this to make it works.

defaultConfig {
...
   javaCompileOptions {
    annotationProcessorOptions {
      arguments = [eventBusIndex: "com.example.EventBusIndex"]
    }
  }
...
}

All 3 comments

Hi @andrewlord1990!

I used this to make it works.

defaultConfig {
...
   javaCompileOptions {
    annotationProcessorOptions {
      arguments = [eventBusIndex: "com.example.EventBusIndex"]
    }
  }
...
}

Excellent, thanks very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nschwermann picture nschwermann  路  4Comments

onomated picture onomated  路  12Comments

oky2abbas picture oky2abbas  路  6Comments

bdeneuter picture bdeneuter  路  3Comments

~
Liam6666 picture Liam6666  路  5Comments