-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registrations #15
Registrations #15
Conversation
@danielpassos @cvasilak care to take a look? |
ab15920
to
67e8562
Compare
@secondsun what's the JIRA for this? |
* Default lifespan (7 days) of a reservation until it is considered | ||
* expired. | ||
*/ | ||
public static final long REGISTRATION_EXPIRY_TIME_MS = 1000 * 3600 * 24 * 7; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the default lifetime for a registration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the default lifetime for a registration.
for a registrationId on GCM? Does that mean after 7 days, I get a new
registrationID?
On Wed, Oct 8, 2014 at 3:05 PM, Hoyt Summers Pittman <
notifications@github.com> wrote:
In
aerogear-android-push/src/org/jboss/aerogear/android/impl/unifiedpush/AeroGearGCMPushRegistrar.java:public class AeroGearGCMPushRegistrar implements PushRegistrar {
private static final Integer TIMEOUT = 30000;//30 seconds
- /**
\* Default lifespan (7 days) of a reservation until it is considered
\* expired.
*/
- public static final long REGISTRATION_EXPIRY_TIME_MS = 1000 * 3600 * 24 * 7;
It is the default lifetime for a registration.
—
Reply to this email directly or view it on GitHub
https://github.com/aerogear/aerogear-android-push/pull/15/files#r18580331
.
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
running |
@matzew |
@secondsun @matzew Maybe it should be added to http://aerogear.org/docs/guides/aerogear-android/how-to-build-aerogear-android/ that at least an emulator must be running to build. |
@sebastienblanc Or you can just build the library without running the tests? |
why not launch the integration tests on a specific profile, which is not enabled by default? That's what we did on the server-side as well (arquillan even got moved into its own repo) |
@matzew Because that doesn't work. If you can make it work feel free to submit a PR. |
oh, wow. too bad :) |
@matzew So it seems I'm a bit of a liar. The docs on the maven plugin are old and it supports -Dandroid.test.skip=true now. (the docs tell you to use a different flag which doesn't work. Ergo my earlier angst) |
I've added a helloWorld branch to the PR description (https://github.com/secondsun/aerogear-push-helloworld/tree/registrations) |
@@ -15,8 +16,8 @@ env: | |||
|
|||
before_install: | |||
|
|||
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI | |||
- emulator -avd test -no-skin -no-audio -no-window & | |||
- echo no | android create avd --force -n test -t 'Google Inc.:Google APIs:19' --abi $ANDROID_ABI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ANDROID_TARGET did not work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would have a problem with the path to the things later on.
Link to things : https://github.com/secondsun/aerogear-android-push/blob/registrations/.travis.yml#L32
✔️ Register But I was thinking... Is not time to we kill all http duplicated here and delegate that to pipe module? Wdyt? |
@danielpassos Done! |
Travis don't like this because we need update support library version. I'm working on update android bom For more information see: https://travis-ci.org/danielpassos/aerogear-android-push#L1442 |
I'd like to update Android bom and pipe to make travis happy before merge it
|
@danielpassos agreed on the bom |
@danielpassos @secondsun only to avoid my itching merge finger. I will close it until we update and release the bom. Feel free to reopen when we think it's "mergeable" |
Since we are with some travis problem[1] I'm reopening and about to merge it. @secondsun Could you rebase/update that? |
f0eaff4
to
8f0e8d5
Compare
Hi @secondsun
|
@qmx Could you review that? |
@secondsun could you please do a brief git history review? I think those duplicated commit messages can be merged into one, and the cleanup-like ones into a bigger cleanup commit. |
👀 |
The code looks good to me but I'd like to test it using aerogear-push-helloworld first. |
The logic of |
<artifactId>aerogear-android-pipe</artifactId> | ||
<version>${aerogear.android.pipe.version}</version> | ||
<type>aar</type> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move dependencies to library instead of root pom like we did with the other modules?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case it is correct here because the tests use -core for some things.
We also need to make travis happy. I think travis don't like |
I've tested it using aerogear-push-helloworld and works like a charm. |
ccdb25e
to
f61472e
Compare
Per @qmx did a big rebase |
f61472e
to
ea028a1
Compare
ea028a1
to
17d7757
Compare
8b67f39
to
6a9efa3
Compare
yay! Will review in a bit :) |
👍 apply the formatter and ship it :) |
@secondsun landed |
Needs AeroGear Android Core
Should mvn clean install.
Need to update quickstart for more demo testing.
Helloworld demo : https://github.com/secondsun/aerogear-push-helloworld/tree/registrations