-
Notifications
You must be signed in to change notification settings - Fork 40
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
Avoid depending on reference equality of interned strings and literals; this seems to fail sometimes on Android #367
Conversation
…s; this seems to fail sometimes on Android
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.
Confirm that this fixes the issue on Samsung tablet causing null Message.name
.
@@ -173,7 +173,7 @@ public JsonElement serialize(BaseMessage message, Type typeOfMessage, JsonSerial | |||
if(message.clientId != null) json.addProperty("clientId", message.clientId); | |||
if(message.connectionId != null) json.addProperty("connectionId", message.connectionId); | |||
return json; | |||
} | |||
} |
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.
Are these due to a change of IDE?
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.
Sort of - I saw those as I was looking through the code last night and fixed them. So they were explicit changes, but I noticed them because of a change of IDE.
… also benefit a .equals() check
@robholmes This update is in https://bintray.com/ably-io/ably/ably-android/1.0.2 Can you give it a try please? |
@paddybyers Android Studio is telling me there is an update to 1.0.2, but upon changing the gradle compile to Though there is a file named
|
@robholmes there's never been an android For 1.0.1 there was an I did upgrade the toolchain versions (gradle and Android plugins) and that seems to have messed things up. I'm going to rename the |
Can you retry now? |
@paddybyers unfortunately still no luck. It's not actually me that's requiring a |
Hmm. I tried the sample project (https://github.com/funkyboy/AblyJavaTest) and updated the ref to 1.0.2 and it built ok. I also tried updating the ref to 1.0.3 and I got:
This is in Android Studio. It does seem to be looking for all possible variants. I can't see any difference in the metadata between 1.0.1 and 1.0.2 on Bintray. Does it help to clean the project? |
@robholmes I can confirm what @paddybyers said. The master branch of this project works when using Maybe there's some special setting in your build file? Here's what I have been testing (except using version |
@robholmes any update on this from your end? |
No description provided.