i want to use clean architecuture in a new app and so far it works great. I structured the app into 3 modules (presentation, data and domain) like in the following example: Android-CleanArchitecture
There are some entities in my domain module. One of them is User.
public class User {
private String name;
public String name () {
return name;
}
public static class Builder {
...
}
}
I want to use AutoValue with some extensions to get rid of boilerplate code. One of the extensions is AutoValue Parcel. Now i need to implement the android.os.Parceable interface which is a part of android and can not be used in my domain module because it is a Android dependency.
What is the correct way to implement this?