<div dir="ltr">About Licence of their SDK : <a href="https://developer.amazon.com/appsandservices/support/pml.html">https://developer.amazon.com/appsandservices/support/pml.html</a><div>&quot;<span style="color:rgb(51,51,51);font-family:Arial,Helvetica,sans-serif;font-size:12px"> </span><span style="color:rgb(51,51,51);font-family:Arial,Helvetica,sans-serif;font-size:12px">you will not (a) incorporate or compile any portion of the Program Materials into your own programs or any other software, (b) distribute, sub-license or otherwise provide any portion of the Program Materials to any third party, or (c) modify or create derivative works of the Program Materials.&quot; </span></div><div>...</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 4:35 PM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Tue, Feb 3, 2015 at 4:07 PM, Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><span>
    <div>On 02/03/2015 09:56 AM, Matthias
      Wessendorf wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr"><br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Tue, Feb 3, 2015 at 2:31 PM,
            Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">Good Morning all ! 
                <div><br>
                </div>
                <div>As you might know, we are currently adding Amazon
                  Device Messaging support to the UnifiedPush server. </div>
                <div>The server side has been PRed and it&#39;s now time to
                  work on the client SDK.</div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>once our java-adm is on maven central, I will take a
              look at the PR</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div>As you probably know, the amazon devices :  the
                  Kindle Fire (2nd and third generation), Fire Phone and
                  FireTV are running FireOS which is basically a fork of
                  Android OS. And since we have an Android Push SDK I
                  start looking if we could reuse it.<br>
                </div>
                <div><br>
                </div>
                <div>First good news, is that since AGDroid 2.0, things
                  has been nicely isolated and is open for extension.
                  But there is still some refactoring to do, the &quot;UPS
                  Registration&quot; flow/logic is still in the &quot;gcm&quot;
                  package[1]. </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>the package name shouldn&#39;t be the smallest concern :-) </div>
            <div><br>
            </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div>That logic should be moved one package level higher
                  in a new Abstract class. </div>
                <div>In the end we will have a &quot;gcm&quot; package and a &quot;adm&quot;
                  package (or project, see later in my questions)</div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>+1</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div><br>
                </div>
                <div>This way the ADM logic would be able to reuse that
                  registration code. I started to play a bit with this
                  refactoring here[2], disclaimer here, I&#39;m not even
                  sure that this code compiles, is just to give an
                  idea. </div>
                <div><br>
                </div>
                <div>So before I go further,  some questions (mainly for
                  our Android Gods ;)  ) : </div>
                <div><br>
                </div>
                <div>- Is this a good idea (reusing your SDK) ? I think
                  yes, even if there is some time and effort needed for
                  refactoring to make it completly generic.</div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>sounds reasonable to me, to extend it and apply changes
              on a separate ADM-PUSH-SDK</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div><br>
                </div>
                <div>- How do we build / package / deliver ? </div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>gradle? or, what does Amazon do / prefer ? </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div>We probably want 2 distinct JAR/aar. We could use
                  profile in Maven to only package one feature but that
                  sounds a bit &quot;messy&quot;.</div>
                <div>What about having sub-projects, this way we would
                  have aerogear-android-push and then :
                  aerogear-android-push-gcm and aerogear-push-gcm.</div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>Not sure I get that, but do you mean
              &quot;aerogear-android-push&quot;</div>
            <div>- aerogear-android-push-gcm</div>
            <div>- aerogear-android-push-adm</div>
            <div><br>
            </div>
            <div>sounds reasonable</div>
          </div>
        </div>
      </div>
    </blockquote></span>
    No it isn&#39;t.  For starters it will break the 2.0 API and require a
    3.0 API release.  <br><span>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div><br>
                </div>
                <div>- The registration flow for ADM[3] (so device
                  &lt;-&gt; Amazon&#39;s server) is a bit different thant
                  the GCM one</div>
                <div>, it&#39;s the same interface that receive the
                  registration event and the push notification events.
                  We have to check how this fit with the current
                  architecture of android-push.</div>
                <div><br>
                </div>
                <div>Other challenge will be shipping ADM jar, since
                  this one is on Maven and must be downloaded manually
                  but that is for later ;)</div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>not sure, why do we need to ship it? what&#39;s the
              license? Why do I need a manual download from maven ? Not
              following here</div>
          </div>
        </div>
      </div>
    </blockquote></span>
    Amazon&#39;s SDK is a giant zip bundle.  We will need to find a way to
    package it into the local maven repo.  <br></div></blockquote></div></div><div> Yeah it&#39;s a nightmare. You can get this ZIP only from their developer&#39;s portal. Once unzipped, you have to dig some folder before finding the ADM jar (the only one that we need)</div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF">
    <br>
    They do publish some things to central, but it looks like that is
    their AWS APIs but not ADM.</div></blockquote></span><div>Yep, I checked as well and it&#39;s only for AWS stuff :(  </div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"><span><br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
              <div dir="ltr">
                <div><br>
                </div>
                <div>Sebi</div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>[1]<a href="https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java" target="_blank">https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/gcm/AeroGearGCMPushRegistrar.java</a></div>
                <div>[2] <a href="https://github.com/sebastienblanc/aerogear-android-push/tree/refactoring" target="_blank">https://github.com/sebastienblanc/aerogear-android-push/tree/refactoring</a></div>
                <div>[3] <a href="https://developer.amazon.com/public/apis/engage/device-messaging/tech-docs/04-integrating-your-app-with-adm" target="_blank">https://developer.amazon.com/public/apis/engage/device-messaging/tech-docs/04-integrating-your-app-with-adm</a></div>
              </div>
              <br>
              _______________________________________________<br>
              aerogear-dev mailing list<br>
              <a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
              <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div>Matthias Wessendorf <br>
            <br>
            blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>
            sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
            twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></pre>
    </blockquote>
    <br>
    <br>
    </span><span><font color="#888888"><pre cols="72">-- 
Summers Pittman
&gt;&gt;Phone:<a href="tel:404%20941%204698" value="+14049414698" target="_blank">404 941 4698</a>
&gt;&gt;Java is my crack.
</pre>
  </font></span></div>

<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>