Implement Serializable
For the data model that wraps the protobuf objects, can they be made to be serializable? All protobuf objects have a toBytes and parseFromBytes method that are easily accessible. This would tremendously help in android usages.
im not an android developer so fogive me, can you give some use cases? i cant seem to think of a case where you would want to serialize and parse back later (the objects could be outdated/invalid, as they are retrieved from the PGO server).
I think his referring to the way that android transfer data from a controller to another by serializing and deserializing every time, so he is asking to us to make all data model like Pokemon.java implement the Serializable interface from Java.
There are many faster ways to serialize objects in Android. For example with Moshi and a custom Adapter.
While you are right. This project maintains itself in pure java. This is why I suggested serializable.
Serializable is not the correct format for this. You can implement your own Parcelable wrapper classes if you really really want to. Otherwise I do not suggest passing these values through bundles, but instead passing any auth tokens and recreating the AuthInfo class and PokemonGo or storing them on an Application-scoped object.