1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 09:09:38 +02:00

Use jxmpp-core (0.1.0-alpha1-SNAPSHOT)

fixes also SMACK-570, since jxmpp-core's XmppStringUtil contains the fix
for SMACK-570.
This commit is contained in:
Florian Schmaus 2014-06-01 12:23:13 +02:00
parent 8977f5b3f0
commit f67d655fe7
34 changed files with 84 additions and 896 deletions

View file

@ -2,12 +2,6 @@ description = """\
Smack BOSH API.
This API is considered beta quality."""
repositories {
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
compile project(':smack-core')
compile 'org.igniterealtime.jbosh:jbosh:0.8.0'

View file

@ -41,7 +41,6 @@ import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.packet.Packet;
import org.jivesoftware.smack.packet.Presence;
import org.jivesoftware.smack.packet.Presence.Type;
import org.jivesoftware.smack.util.StringUtils;
import org.igniterealtime.jbosh.BOSHClient;
import org.igniterealtime.jbosh.BOSHClientConfig;
import org.igniterealtime.jbosh.BOSHClientConnEvent;
@ -270,7 +269,7 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
if (response != null) {
this.user = response;
// Update the serviceName with the one returned by the server
setServiceName(StringUtils.parseServer(response));
setServiceName(response);
} else {
this.user = username + "@" + getServiceName();
if (resource != null) {
@ -319,7 +318,7 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
// Set the user value.
this.user = response;
// Update the serviceName with the one returned by the server
setServiceName(StringUtils.parseServer(response));
setServiceName(response);
// Set presence to online.
if (config.isSendPresence()) {