Description
In your blog, you mentioned that organizing the code via feature is better and I totally agree. In my case, I've split my app into different modules and each module is actually a feature. I assume that this is how you guys also work at SoundCloud so as to allow individual teams working on a feature to work independently.
On splitting the code by module, I'm not able to use Butterknife's @Bind
annotations since Android doesn't mark R
constants in module as static final
. Hence I get a compile time for the following
@Bind (R.id.auth_et_password) EditText passwordTxt;
Error received : "Error:(44, 15) error: element value must be a constant expression"
So how do you guys inject views? Do you have a custom framework or use AndroidAnnotations framework or something else or you don't split by modules?
DISCLAIMER: I'm a Android noob.