Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
617f25eb
Commit
617f25eb
authored
Sep 26, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改im配置为空闪退的问题
parent
b39589f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
build.gradle
RvClient/build.gradle
+2
-2
XmppConnectionManager.java
...m/src/main/java/com/rv/im/xmpp/XmppConnectionManager.java
+6
-2
No files found.
RvClient/build.gradle
View file @
617f25eb
...
@@ -8,8 +8,8 @@ android {
...
@@ -8,8 +8,8 @@ android {
minSdkVersion
rootProject
.
ext
.
minSdkVersion
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
flavorDimensions
"default"
versionCode
1
52
versionCode
1
45
versionName
"1.
5.2
"
versionName
"1.
4.5
"
multiDexEnabled
true
multiDexEnabled
true
...
...
plugin_im/src/main/java/com/rv/im/xmpp/XmppConnectionManager.java
View file @
617f25eb
...
@@ -183,8 +183,11 @@ public class XmppConnectionManager {
...
@@ -183,8 +183,11 @@ public class XmppConnectionManager {
mContext
=
context
;
mContext
=
context
;
initConfig
();
initConfig
();
mNotifyConnectionListener
=
listener
;
mNotifyConnectionListener
=
listener
;
XMPPTCPConnectionConfiguration
connectionConfiguration
=
getConnectionConfiguration
();
mConnection
=
new
XMPPTCPConnection
(
getConnectionConfiguration
());
if
(
connectionConfiguration
==
null
)
{
return
;
}
mConnection
=
new
XMPPTCPConnection
(
connectionConfiguration
);
mConnection
.
addConnectionListener
(
mAbstractConnectionListener
);
mConnection
.
addConnectionListener
(
mAbstractConnectionListener
);
initNetWorkStatusReceiver
();
initNetWorkStatusReceiver
();
...
@@ -201,6 +204,7 @@ public class XmppConnectionManager {
...
@@ -201,6 +204,7 @@ public class XmppConnectionManager {
private
AppConfig
staticConfig
=
null
;
private
AppConfig
staticConfig
=
null
;
private
XMPPTCPConnectionConfiguration
getConnectionConfiguration
()
{
private
XMPPTCPConnectionConfiguration
getConnectionConfiguration
()
{
if
(
staticConfig
==
null
)
return
null
;
final
String
mXmppHost
=
staticConfig
.
XMPPHost
;
final
String
mXmppHost
=
staticConfig
.
XMPPHost
;
int
mXmppPort
=
staticConfig
.
mXMPPPort
;
int
mXmppPort
=
staticConfig
.
mXMPPPort
;
String
mXmppDomain
=
staticConfig
.
XMPPDomain
;
String
mXmppDomain
=
staticConfig
.
XMPPDomain
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment