JakeWharton / butterknife

Bind Android views and callbacks to fields and methods.
http://jakewharton.github.io/butterknife/
Apache License 2.0
25.56k stars 4.61k forks source link

ig-json-parser library problem #225

Closed larten closed 9 years ago

larten commented 9 years ago

Hello,

butterknife is a default library to development, so I must use it! Congratulations!

But I would like to use json parser by Instagram (https://github.com/Instagram/ig-json-parser/).

And this part of gradle block butterknife:

compileJava {
  doFirst {
    // Directory should exists before compilation started.
    generatedSourcesDir.mkdirs()
  }
  options.compilerArgs += [
                       '-processor',
                       'com.instagram.common.json.annotation.processor.JsonAnnotationProcessor',
                       '-s',
                       generatedSourcesDir
  ]
}

What is the proper way to use both libraries together?

bg, Larten

JakeWharton commented 9 years ago

Use the android-apt plugin. This is a problem with their library and their very poor recommendation to use that technique.

larten commented 9 years ago

Thank you!