Good news everyone, I've pushed my branch into the main repository and
am welcoming comments.
The biggest change in this branch is fixing Pipes and Authentication to
work correctly inside of the Android lifecycle. Specifically, I added a
bunch of utility classes to use Loaders to manage the state of Pipes and
protect data and operations through Activities' lifecycles.
I made a gist to demo changes in usage here:
In addition to this, I added several utility classes for callbacks. In
Java having Callbacks be anonymous inner classes is usually fine, but in
Android in Activities and Fragments this is a recipe for pain and
suffering (and memory leaks). So now it is strongly encouraged for
developers to extend the abstract helper classes and make them static
classes. The javadoc should reflect this, but I can make it clearer if
you guys think it is necessary.
One big omission is testing. Part of the problem is that Robolectric
doesn't support Loaders (yet). So our only option is to make a Android
test project and run the tests on the emulator. This isn't hard, just work.
For FINAL, I hope to have the test project (and possibly a support
project) as well as lots more documentation for how to use AG-Android
So let's discuss on the PR:
Happy weekend guys.