Skip to content

Commit 0471bc7

Browse files
authored
Merge pull request #84 from JoshLipan/dev
Dev
2 parents d676134 + 38c1859 commit 0471bc7

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jmessage-phonegap-plugin",
3-
"version": "3.5.2",
3+
"version": "3.5.3",
44
"description": "JMessage Cordova Plugin.",
55
"cordova": {
66
"id": "jmessage-phonegap-plugin",
@@ -24,7 +24,7 @@
2424
],
2525
"devDependencies": {
2626
"cordova-plugin-device": "*",
27-
"cordova-plugin-jcore": ">=1.2.0"
27+
"cordova-plugin-jcore": ">=1.2.5"
2828
},
2929
"author": "JiGuang",
3030
"license": "MIT",

plugin.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
33
xmlns:android="http://schemas.android.com/apk/res/android"
44
id="jmessage-phonegap-plugin"
5-
version="3.5.2">
5+
version="3.5.3">
66

77
<name>JMessage</name>
88
<description>集成极光 IM 和推送功能</description>
@@ -153,6 +153,12 @@
153153
android:name="cn.jpush.android.service.DataProvider"
154154
android:exported="true" />
155155

156+
<!-- Required since JMessage 2.7.0 SDK 核心功能-->
157+
<provider
158+
android:name="cn.jpush.im.android.helpers.ipc.IMProvider"
159+
android:authorities="$PACKAGE_NAME.IMProvider"
160+
android:exported="false" />
161+
156162
<meta-data android:name="JPUSH_APPKEY" android:value="$APP_KEY"/>
157163
<meta-data android:name="JPUSH_CHANNEL" android:value="developer-default"/>
158164
</config-file>

src/android/ChatroomHandler.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
import cn.jpush.im.android.api.model.Conversation;
1717
import cn.jpush.im.api.BasicCallback;
1818

19-
import static cn.jiguang.cordova.im.JMessagePlugin.ERR_CODE_CONVERSATION;
2019
import static cn.jiguang.cordova.im.JMessagePlugin.ERR_CODE_PARAMETER;
21-
import static cn.jiguang.cordova.im.JMessagePlugin.ERR_MSG_CONVERSATION;
2220
import static cn.jiguang.cordova.im.JMessagePlugin.ERR_MSG_PARAMETER;
2321
import static cn.jiguang.cordova.im.JMessageUtils.handleResult;
2422
import static cn.jiguang.cordova.im.JsonUtils.toJson;
@@ -85,7 +83,7 @@ public void gotResult(int status, String desc, List<ChatRoomInfo> chatRoomInfoLi
8583
}
8684

8785
static void getChatRoomInfoListById(JSONArray data, final CallbackContext callback) {
88-
Set<Long> roomIds = new HashSet<Long>(); // JS 层为了和 iOS 统一,因此 roomId 类型为 String,在原生做转换。
86+
Set<Long> roomIds = new HashSet<Long>(); // JS 层为了和 iOS 统一,因此 roomId 类型为 String,在原生做转换。
8987

9088
try {
9189
JSONObject params = data.getJSONObject(0);
@@ -201,7 +199,7 @@ static void exitChatRoom(JSONArray data, final CallbackContext callback) {
201199
ChatRoomManager.leaveChatRoom(roomId, new BasicCallback() {
202200
@Override
203201
public void gotResult(int status, String desc) {
204-
if (status == 0) { // success
202+
if (status == 0) { // success
205203
callback.success();
206204
} else {
207205
handleResult(status, desc, callback);
-1.55 MB
Binary file not shown.
2.03 MB
Binary file not shown.

0 commit comments

Comments
 (0)