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

onomated picture onomated  路  12Comments

cckroets picture cckroets  路  16Comments

kyze8439690 picture kyze8439690  路  4Comments

william-ferguson-au picture william-ferguson-au  路  6Comments

bdeneuter picture bdeneuter  路  3Comments