diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..e2d591f Binary files /dev/null and b/.DS_Store differ diff --git a/CHANGELOG.md b/CHANGELOG.md index 2845032..e647ce0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,15 @@ * TODO: Describe initial release. -### 0.0.2 +## 0.0.2 1,将 markSingleMessageHasRead、markGroupMessageHasRead和getTotalUnreadMsgCount方法从类MessageManager移动到类ConversationManager。
2,修改setFriendInfo方法的参数。
3,修改createGroup和setGroupInfo方法的参数。 -### 0.0.3 - upgrade sdk
- fix bug
+## 0.0.3 +upgrade sdk
+fix bug
+ +## 0.0.4 +将createCustomMessage方法入参从Uint8List替换为Map \ No newline at end of file diff --git a/android/src/main/java/io/openim/flutter_openim_sdk/util/CommonUtil.java b/android/src/main/java/io/openim/flutter_openim_sdk/util/CommonUtil.java index b8aedff..6590d01 100644 --- a/android/src/main/java/io/openim/flutter_openim_sdk/util/CommonUtil.java +++ b/android/src/main/java/io/openim/flutter_openim_sdk/util/CommonUtil.java @@ -276,12 +276,12 @@ public class CommonUtil { return getParamValue(methodCall, KEY_MESSAGE_DES); } - public static byte[] getCustomMessageData(MethodCall methodCall) { - return getParamValue(methodCall, KEY_CUSTOM_MESSAGE_DATA); + public static String getCustomMessageData(MethodCall methodCall) { + return getSDKJsonParam(methodCall, KEY_CUSTOM_MESSAGE_DATA); } - public static byte[] getCustomMessageExt(MethodCall methodCall) { - return getParamValue(methodCall, KEY_CUSTOM_MESSAGE_EXT); + public static String getCustomMessageExt(MethodCall methodCall) { + return getSDKJsonParam(methodCall, KEY_CUSTOM_MESSAGE_EXT); } public static String getQuoteMessageText(MethodCall methodCall) { diff --git a/example/pubspec.lock b/example/pubspec.lock index de2c0d4..e54f1d3 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -68,7 +68,7 @@ packages: path: ".." relative: true source: path - version: "0.0.2" + version: "0.0.4" flutter_test: dependency: "direct dev" description: flutter diff --git a/lib/.DS_Store b/lib/.DS_Store new file mode 100644 index 0000000..84ae108 Binary files /dev/null and b/lib/.DS_Store differ diff --git a/lib/src/manager/im_message_manager.dart b/lib/src/manager/im_message_manager.dart index 2a1cc79..af91fee 100644 --- a/lib/src/manager/im_message_manager.dart +++ b/lib/src/manager/im_message_manager.dart @@ -1,5 +1,4 @@ import 'dart:convert'; -import 'dart:typed_data'; import 'package:flutter/services.dart'; import 'package:flutter_openim_sdk/flutter_openim_sdk.dart'; @@ -318,8 +317,8 @@ class MessageManager { /// Future createCustomMessage({ - required Uint8List data, - required Uint8List extension, + required Map data, + required Map extension, required String description, }) { return _channel diff --git a/pubspec.yaml b/pubspec.yaml index dfce4b0..0798bf6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_openim_sdk description: openim flutter plugin. -version: 0.0.3 +version: 0.0.4 homepage: https://www.rentsoft.cn repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter