This commit is contained in:
hrxiang 2021-09-18 10:32:25 +08:00
parent 95c88cb61a
commit be1c10fb38
7 changed files with 15 additions and 13 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -2,12 +2,15 @@
* TODO: Describe initial release. * TODO: Describe initial release.
### 0.0.2 ## 0.0.2
1将 markSingleMessageHasRead、markGroupMessageHasRead和getTotalUnreadMsgCount方法从类MessageManager移动到类ConversationManager。</br> 1将 markSingleMessageHasRead、markGroupMessageHasRead和getTotalUnreadMsgCount方法从类MessageManager移动到类ConversationManager。</br>
2修改setFriendInfo方法的参数。</br> 2修改setFriendInfo方法的参数。</br>
3修改createGroup和setGroupInfo方法的参数。 3修改createGroup和setGroupInfo方法的参数。
### 0.0.3 ## 0.0.3
upgrade sdk </br> upgrade sdk </br>
fix bug </br> fix bug </br>
## 0.0.4
将createCustomMessage方法入参从Uint8List替换为Map

View File

@ -276,12 +276,12 @@ public class CommonUtil {
return getParamValue(methodCall, KEY_MESSAGE_DES); return getParamValue(methodCall, KEY_MESSAGE_DES);
} }
public static byte[] getCustomMessageData(MethodCall methodCall) { public static String getCustomMessageData(MethodCall methodCall) {
return getParamValue(methodCall, KEY_CUSTOM_MESSAGE_DATA); return getSDKJsonParam(methodCall, KEY_CUSTOM_MESSAGE_DATA);
} }
public static byte[] getCustomMessageExt(MethodCall methodCall) { public static String getCustomMessageExt(MethodCall methodCall) {
return getParamValue(methodCall, KEY_CUSTOM_MESSAGE_EXT); return getSDKJsonParam(methodCall, KEY_CUSTOM_MESSAGE_EXT);
} }
public static String getQuoteMessageText(MethodCall methodCall) { public static String getQuoteMessageText(MethodCall methodCall) {

View File

@ -68,7 +68,7 @@ packages:
path: ".." path: ".."
relative: true relative: true
source: path source: path
version: "0.0.2" version: "0.0.4"
flutter_test: flutter_test:
dependency: "direct dev" dependency: "direct dev"
description: flutter description: flutter

BIN
lib/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -1,5 +1,4 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:typed_data';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart'; import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
@ -318,8 +317,8 @@ class MessageManager {
/// ///
Future<Message> createCustomMessage({ Future<Message> createCustomMessage({
required Uint8List data, required Map<String, dynamic> data,
required Uint8List extension, required Map<String, dynamic> extension,
required String description, required String description,
}) { }) {
return _channel return _channel

View File

@ -1,6 +1,6 @@
name: flutter_openim_sdk name: flutter_openim_sdk
description: openim flutter plugin. description: openim flutter plugin.
version: 0.0.3 version: 0.0.4
homepage: https://www.rentsoft.cn homepage: https://www.rentsoft.cn
repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter