Mark M. | has entered the room |
Sep 5 | 8:55 AM |
Mark M. | turned on guest access |
Sep 5 | 9:00 AM |
Mathias | has entered the room |
Mark M. |
hello, Mathias!
|
Mathias |
Hello hello
|
Mark M. |
how can I help you today?
|
Mathias |
Long time no see! hope all is well
|
Mathias |
i had a question about push notifications
|
Mark M. |
I don't do much with those, but I can try to help
|
Mathias |
I looked in the omnibus, but couldn't find much about it. Am i correct that it does not cover it?
|
Mark M. |
I used to have a chapter on GCM, but I pulled it quite some time ago, as it was out of date
|
Mark M. |
and that was even before Google started rebranding it to FCM
|
Mark M. |
so, no, I do not have any current material on that subject
|
Sep 5 | 9:05 AM |
Mathias |
Yeah, that's why i got in here - i took a peek at the GCM webpage, but its SO confusing...
|
Mathias |
exactly, that rebranding...
|
Mark M. |
yeah, and the fact that they keep changing the API means that a lot of community-developed material will be out of date
|
Mark M. |
AFAIK, though, the FCM API hasn't changed that much, post-rebrand
|
Mathias |
i've done it on IOS, so just started looking at it and was looking to see if you had any pointers. no worries!
|
Mark M. |
so, anything you see written specifically on FCM is probably up to date
|
Mathias |
right
|
Mathias |
ok
|
Mark M. |
that being said, YMMV
|
Mathias |
right. well ill look around
|
Mathias |
thx
|
Mathias |
Oh, just remembered, i have a puzzling gradle think i maybe can ask you about?
|
Mathias |
*thing
|
Mark M. |
go right ahead!
|
Mathias |
ok. so i migrated from spring to gradle a while back
|
Mathias |
in my gradle i have some dependencies that are aar
|
Mathias |
for example
|
Mathias |
View paste
|
Mark M. |
play-services:5.0.9 seems old
|
Mathias |
in my /build/intermediaries/exploded-aar, i have a folder for each of my aar dependencies
|
Mathias |
however, they are there since a long time. If i remove them and build with gradle, they do not re-appear, and my whole intellij-project goes bonkers (it cant find lots of dependencies, things turn red)
|
Mathias |
so, my question is, do you have any idea what i am doing wrong?
|
Sep 5 | 9:10 AM |
Mathias |
yeah i know, but i cant upgrade since they moved all api's for geofencing around (of course...) and i don't have time to re-write right now...
|
Mark M. |
have you switched development machines since this app was created?
|
Mathias |
no. and that's why that dir is still there. I noticed this error because i moved my git repo and checked out clean :)
|
Mathias |
so i had to manually put those folders back in to build
|
Mark M. |
for the play-services dependency, go to your Android SDK installation, and look in extras/google/m2repository/com/google/android/gms/play-services, and see if 5.0.89 is there
|
Mark M. |
with regards to StickyListHeaders, it would appear that their 2.7.0 artifact is up on Maven Central, which should also get mirrored to JCenter
|
Mark M. |
so, double-check whether you are pulling in from mavenCentral() or jcenter()
|
Mark M. |
in modern Android Studio projects, that would be determined by default in the allprojects { dependencies {} } closure in the project-level build.gradle file
|
Mathias |
well, i have it in my "regular" repo, since i share between spring/android, but its not in the sdk-dir
|
Sep 5 | 9:15 AM |
Mark M. |
I do not understand what the "regular" repo is, I guess
|
Mathias |
i pull from jcenter
|
Mathias |
well i have configured the sdk to use a repo in another dir
|
Mark M. |
OK
|
Mark M. |
you might try a command-line build, using --refresh-dependencies
|
Mark M. |
Gradle only checks for dependencies once per day, if it thinks that it has already satisfied them
|
Mark M. |
so that might help convince Gradle to go pull down the artifacts again
|
Mark M. |
you might also check your Gradle cache (e.g., ~/.gradle/caches/modules-2/files-2.1/) and see if either of these artifacts appear there
|
Mark M. |
and what versions they are, based on the downloaded POM files
|
Mathias |
right. hangon ill look around
|
Sep 5 | 9:25 AM |
Mathias |
ok so i built with gradle from command line, worked fine, no problems. But nothing appears in "exploded-aar"
|
Mark M. |
that may reflect changes in the build tools
|
Mark M. |
looking at a project that I am working on, I do not see an exploded-aar directory either
|
Mark M. |
and I'm pretty sure that some of my dependencies are AARs, not JARs
|
Mark M. |
(e.g., recyclerview-v7)
|
Mark M. |
I haven't gone looking for exploded-aar in some time, though I recognize that directory name, having seen it before
|
Mathias |
right
|
Mathias |
so the problem is not the build or the apk, my problem is with intellij. My jar-dependencies get included fine, but the classes that are in my aar's are not found and all calls to them become red
|
Mathias |
weird
|
Sep 5 | 9:30 AM |
Mark M. |
I haven't used IntelliJ IDEA itself in some time
|
Mathias |
i could add them manually i guess, but cant see why intellij doesnt check up the dependencies
|
Mathias |
oh? what do you use?
|
Mark M. |
Android Studio
|
Mark M. |
which is based on IDEA, of course
|
Mathias |
exactly :)
|
Mathias |
its basically the same thing
|
Mark M. |
um, I don't know if I'd go that far
|
Mark M. |
regardless, I have no idea what you would change in IDEA to help here
|
Mathias |
ok. i tried it and well there's some more stuff in intellij, but it works the same
|
Mathias |
no problem, i'll continue to look around!
|
Sep 5 | 9:45 AM |
Mathias |
aar seems to indeed be some intellij-issuue, have logged a ticket
|
Mathias |
oh well, gots to go. thanks for the chat!
|
Mark M. |
happy to help!
|
Mathias |
(will extend license in october)
|
Mathias | has left the room |
Sep 5 | 10:00 AM |
Mark M. | turned off guest access |