Commit e2efd3c0 authored by feihuaduo's avatar feihuaduo

更新smack版本到4.3.0

parent ae927568
...@@ -91,6 +91,8 @@ dependencies { ...@@ -91,6 +91,8 @@ dependencies {
implementation 'com.github.chrisbanes.photoview:library:1.2.4' implementation 'com.github.chrisbanes.photoview:library:1.2.4'
exclude group: 'com.android.support', module: 'support-v4' // exclude group: 'com.android.support', module: 'support-v4' //
} }
implementation "org.igniterealtime.smack:smack-android-extensions:4.3.0"
implementation "org.igniterealtime.smack:smack-tcp:4.3.0"
// //
implementation 'org.greenrobot:eventbus:3.0.0' implementation 'org.greenrobot:eventbus:3.0.0'
implementation 'com.tubb.smrv:swipemenu-recyclerview:5.4.0' implementation 'com.tubb.smrv:swipemenu-recyclerview:5.4.0'
......
...@@ -25,7 +25,7 @@ public class ChatMessage { ...@@ -25,7 +25,7 @@ public class ChatMessage {
public static ChatMessage toChatMessage(Message message) { public static ChatMessage toChatMessage(Message message) {
if (message.getBody() != null) { if (message.getBody() != null) {
String xs = message.toXML().toString(); String xs = message.toString();
int cc = xs.indexOf("stamp='"); int cc = xs.indexOf("stamp='");
if (cc != -1) { if (cc != -1) {
......
...@@ -38,27 +38,6 @@ public class TaxiConnectionListener implements ConnectionListener { ...@@ -38,27 +38,6 @@ public class TaxiConnectionListener implements ConnectionListener {
// TODO: Implement this method // TODO: Implement this method
} }
@Override
public void reconnectionSuccessful() {
//重新连接成功
Log.e("TaxiConnectionListener", "重连成功");
// TODO: Implement this method
}
@Override
public void reconnectingIn(int p1) {
//正在重连
Log.e("TaxiConnectionListener", "正在重连" + p1);
// TODO: Implement this method
}
@Override
public void reconnectionFailed(Exception p1) {
//重新连接失败
Log.e("重连失败", "失败" + p1);
// TODO: Implement this method
}
@Override @Override
public void connectionClosed() { public void connectionClosed() {
//正常关闭连接 //正常关闭连接
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment