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