Agree with BoD - there should be an official way to do this.

Hugo Visser's android-apt plugin is a life-saver. But there are some 
limitations that are preferably addressed through official means. In 
particular, we need similar functionality for gradle java plugin too 
(currently it only works for android libraries or application plugins).

More info here 
- https://bitbucket.org/hvisser/android-apt/issue/18/support-java-plugin


On Friday, 24 April 2015 03:56:30 UTC+5:30, BoD wrote:
>
> Hi!
>
> I am currently experimenting with Annotation Processors, and from what I 
> can gather from various places, the current situation is this (please 
> correct me if I'm wrong):
>
> 1/ If your processor generates code that you don't need to directly 
> reference, you can use a 'provided' dependency.
> 2/ In fact you *can* reference the generated code, but it will be seen as 
> errors in Android Studio (but it will compile anyway, and build a working 
> apk)
> 3/ If you want to reference the generated code - and want Android Studio 
> to see it as well, you can use Hugo Visser's excellent android-apt gradle 
> plugin, and an 'apt' dependency.
>
> I've tried the android-apt plugin, and it works well.
>
> But at some point I will publish my little tool, and describe how to 
> integrate it in your project, and I find it a bit more complicated that I 
> thought it would be.
>
> Shouldn't there be an 'official' way to do this - I mean just work 'as is' 
> without needing an external plugin?
>
> Thanks a lot!
>
> -- 
> BoD
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to