diff --git a/package.json b/package.json index 40ca560..9c9b9a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jmessage-phonegap-plugin", - "version": "3.5.2", + "version": "3.5.3", "description": "JMessage Cordova Plugin.", "cordova": { "id": "jmessage-phonegap-plugin", @@ -24,7 +24,7 @@ ], "devDependencies": { "cordova-plugin-device": "*", - "cordova-plugin-jcore": ">=1.2.0" + "cordova-plugin-jcore": ">=1.2.5" }, "author": "JiGuang", "license": "MIT", diff --git a/plugin.xml b/plugin.xml index 18e8917..9498076 100644 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="3.5.3"> JMessage 集成极光 IM 和推送功能 @@ -153,6 +153,12 @@ android:name="cn.jpush.android.service.DataProvider" android:exported="true" /> + + + diff --git a/src/android/ChatroomHandler.java b/src/android/ChatroomHandler.java index 72aa5db..64d1d36 100644 --- a/src/android/ChatroomHandler.java +++ b/src/android/ChatroomHandler.java @@ -16,9 +16,7 @@ import cn.jpush.im.android.api.model.Conversation; import cn.jpush.im.api.BasicCallback; -import static cn.jiguang.cordova.im.JMessagePlugin.ERR_CODE_CONVERSATION; import static cn.jiguang.cordova.im.JMessagePlugin.ERR_CODE_PARAMETER; -import static cn.jiguang.cordova.im.JMessagePlugin.ERR_MSG_CONVERSATION; import static cn.jiguang.cordova.im.JMessagePlugin.ERR_MSG_PARAMETER; import static cn.jiguang.cordova.im.JMessageUtils.handleResult; import static cn.jiguang.cordova.im.JsonUtils.toJson; @@ -85,7 +83,7 @@ public void gotResult(int status, String desc, List chatRoomInfoLi } static void getChatRoomInfoListById(JSONArray data, final CallbackContext callback) { - Set roomIds = new HashSet(); // JS 层为了和 iOS 统一,因此 roomId 类型为 String,在原生做转换。 + Set roomIds = new HashSet(); // JS 层为了和 iOS 统一,因此 roomId 类型为 String,在原生做转换。 try { JSONObject params = data.getJSONObject(0); @@ -201,7 +199,7 @@ static void exitChatRoom(JSONArray data, final CallbackContext callback) { ChatRoomManager.leaveChatRoom(roomId, new BasicCallback() { @Override public void gotResult(int status, String desc) { - if (status == 0) { // success + if (status == 0) { // success callback.success(); } else { handleResult(status, desc, callback); diff --git a/src/android/libs/jmessage-sdk-android-2.6.1.jar b/src/android/libs/jmessage-sdk-android-2.6.1.jar deleted file mode 100755 index afae255..0000000 Binary files a/src/android/libs/jmessage-sdk-android-2.6.1.jar and /dev/null differ diff --git a/src/android/libs/jmessage-sdk-android-2.7.1.jar b/src/android/libs/jmessage-sdk-android-2.7.1.jar new file mode 100644 index 0000000..6af94c8 Binary files /dev/null and b/src/android/libs/jmessage-sdk-android-2.7.1.jar differ