<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello gear-heads,<br>
    <br>
    The aerogear-cordova-oauth2 project currently has a requirement to
    be built with gradle, in order to be able to build the aerogear
    oauth2 dependencies.  This affects users, as once they add the
    aeorgear cordova plugin to their project, they have to switch to a
    gradle-based build.<br>
    <br>
    I propose we look at what was done with google-play-services as a
    means of working around this gradle requirement.  There are two ways
    to introduce a dependency to google-play-services in your cordova
    project/plugin:<br>
    <br>
    a) Add a maven dependency:
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    com.google.android.gms:play-services:4.0.30@aar<br>
    b) Add a cordova plulgin dependency: com.google.playservices<br>
    <br>
    a) can be achieved only after following the
    how-to-build-aerogear-android [1] instructions, so an even bigger
    inconvenience for users.<br>
    <br>
    b) on the other hand is as simple as:<br>
    <br>
    i)  running "cordova plugin add com.google.playservices" in your
    project folder<br>
    or<br>
    ii) adding "com.google.playservices" as a dependency to the android
    section of your plugin's plugin.xml file [2].<br>
    <br>
    This is made possible because the google-play-services binaries are
    published as a cordova plugin via a project hosted on github [3].<br>
    <br>
    I propose we create a project similar to [3], to hold the aerogear
    android dependencies.  Call it "aerogear-android-services" for the
    sake of this argument.  We would then register this project with
    cordova so the aerogear-cordova-oauth2 plugin can have a dependency
    on the aerogear-android-services cordova plugin, rather then the
    maven/gradle dependency we have now.  This would then alleviate the
    aerogear-cordova-oauth2 from needing to be built with gradle.<br>
    <br>
    Thoughts?<br>
    <br>
    [1]
<a class="moz-txt-link-freetext" href="https://aerogear.org/docs/guides/aerogear-android/how-to-build-aerogear-android/">https://aerogear.org/docs/guides/aerogear-android/how-to-build-aerogear-android/</a><br>
    [2]
<a class="moz-txt-link-freetext" href="https://github.com/bleathem/cordova-oauth-google-services/blob/master/plugin.xml#L28">https://github.com/bleathem/cordova-oauth-google-services/blob/master/plugin.xml#L28</a><br>
    [3] <a class="moz-txt-link-freetext" href="https://github.com/MobileChromeApps/google-play-services">https://github.com/MobileChromeApps/google-play-services</a><br>
    <br>
  </body>
</html>