<div dir="ltr">I like that ! <div>But did I understand that is tied to Google play Services ? I mean I could not use that to inject for instance the Amazon Push Registrar flavor ? </div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 9, 2015 at 10:04 PM, Summers Pittman <span dir="ltr"><<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">One of the things passos and I have discussed in the past is using dependency injection (possibly dagger) to reduce a lot of the boiler plate that is in AGDroid projects (think those nasty config blocks in the quickstarts which exist for EVERY pipe, oauthmodule, push module, etc). We decided not to do that in the past because to make it work we would need to use a gradle plugin, extend all the activity and fragment classes to interrupt the normal lifecycle, or require the user to call magic methods. This felt out of touch with the "style" of programming Google was advocating at the time.<div><br></div><div>With Google play services 7.5 Google is preparing a gradle plugin which will consume a services file and provide those values to code via static variables. (Specifically it injects them into the value.xml file which aidl turns into values in the Resources object). So we've decided to revisit the issue.</div><div><br></div><div>See Epic : <a href="https://issues.jboss.org/browse/AGDROID-476" target="_blank">https://issues.jboss.org/browse/AGDROID-476</a><br></div><div><br></div><div>We want to create a Gradle plugin which will parse ups and keycloak json files and provide convenient tools for managing interactions with those objects. These tools right now will consist of providing annotations to inject modules and interaction with the Activity lifecycle. </div><div><br></div><div>In the Push Issue on the Jira I have a quick sample of how the code might look. You can see there is a LOT less boiler plate. The idea is that all of the values in the PushRegistrar were parsed from json config file automatically and the PushRegistrar was instantiated and managed transparently.</div><div><br></div><div>wdyt? What are pain points you've had with AGDroid this style of tool could help? Should we also make plugins for maven applications?</div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>