diff --git a/CHANGELOG.md b/CHANGELOG.md index e738f76..df4c7a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 0.0.9+1 +Fix bug + ## 0.0.9 Add ios support @@ -14,7 +17,7 @@ Fix bug ## 0.0.5 Upgrade sdk
-fix message error bug +Fix message error bug ## 0.0.4 diff --git a/README.md b/README.md index 3fd36bd..266feae 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ A flutter IM plugin for android and ios. #### 1,Add dependency in yaml - flutter_openim_sdk: ^0.0.9 + flutter_openim_sdk: ^0.0.9+1 #### 2,Import package diff --git a/example/pubspec.lock b/example/pubspec.lock index 4ac48f3..69c2c2f 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -68,7 +68,7 @@ packages: path: ".." relative: true source: path - version: "0.0.8+1" + version: "0.0.9" flutter_test: dependency: "direct dev" description: flutter diff --git a/lib/src/enum/message_status.dart b/lib/src/enum/message_status.dart index 6de4750..969b21f 100644 --- a/lib/src/enum/message_status.dart +++ b/lib/src/enum/message_status.dart @@ -1,6 +1,6 @@ -class MessageStatus{ +class MessageStatus { static const sending = 1; static const succeeded = 2; static const failed = 3; static const deleted = 4; -} \ No newline at end of file +} diff --git a/lib/src/listener/advanced_msg_listener.dart b/lib/src/listener/advanced_msg_listener.dart index 56ece44..311b084 100644 --- a/lib/src/listener/advanced_msg_listener.dart +++ b/lib/src/listener/advanced_msg_listener.dart @@ -1,6 +1,5 @@ import 'package:flutter_openim_sdk/flutter_openim_sdk.dart'; - abstract class AdvancedMsgListener { /// Uniquely identifies final String id; diff --git a/lib/src/listener/impl/friendship_listener.dart b/lib/src/listener/impl/friendship_listener.dart index f6cafb3..88d9057 100644 --- a/lib/src/listener/impl/friendship_listener.dart +++ b/lib/src/listener/impl/friendship_listener.dart @@ -35,7 +35,8 @@ class OnFriendshipListener extends FriendshipListener { @override void friendApplicationListAccept(UserInfo u) { - if (null != onFriendApplicationListAccept) onFriendApplicationListAccept!(u); + if (null != onFriendApplicationListAccept) + onFriendApplicationListAccept!(u); } @override @@ -45,12 +46,14 @@ class OnFriendshipListener extends FriendshipListener { @override void friendApplicationListDeleted(UserInfo u) { - if (null != onFriendApplicationListDeleted) onFriendApplicationListDeleted!(u); + if (null != onFriendApplicationListDeleted) + onFriendApplicationListDeleted!(u); } @override void friendApplicationListReject(UserInfo u) { - if (null != onFriendApplicationListReject) onFriendApplicationListReject!(u); + if (null != onFriendApplicationListReject) + onFriendApplicationListReject!(u); } @override diff --git a/lib/src/listener/impl/msg_send_progress_listener.dart b/lib/src/listener/impl/msg_send_progress_listener.dart index 7fdf974..7bda19f 100644 --- a/lib/src/listener/impl/msg_send_progress_listener.dart +++ b/lib/src/listener/impl/msg_send_progress_listener.dart @@ -1,6 +1,5 @@ import 'package:flutter_openim_sdk/flutter_openim_sdk.dart'; - class OnMsgSendProgressListener extends MsgSendProgressListener { Function(String msgID, int progress)? onProgress; diff --git a/lib/src/manager/im_message_manager.dart b/lib/src/manager/im_message_manager.dart index ec3d84e..cac7db7 100644 --- a/lib/src/manager/im_message_manager.dart +++ b/lib/src/manager/im_message_manager.dart @@ -44,14 +44,13 @@ class MessageManager { bool onlineUserOnly = false, }) { return _channel.invokeMethod( - 'sendMessage', - _buildParam({ - 'message': message.toJson(), - 'receiver': userID ?? '', - 'groupID': groupID ?? '', - 'onlineUserOnly': onlineUserOnly, - })) - /*.then((value) => _toObj(value))*/; + 'sendMessage', + _buildParam({ + 'message': message.toJson(), + 'receiver': userID ?? '', + 'groupID': groupID ?? '', + 'onlineUserOnly': onlineUserOnly, + })) /*.then((value) => _toObj(value))*/; } /// Find all history message diff --git a/lib/src/manager/im_offline_push_manager.dart b/lib/src/manager/im_offline_push_manager.dart index 1961a8f..810c424 100644 --- a/lib/src/manager/im_offline_push_manager.dart +++ b/lib/src/manager/im_offline_push_manager.dart @@ -4,4 +4,4 @@ // MethodChannel _channel; // // OfflinePushManager(this._channel); -// } \ No newline at end of file +// } diff --git a/lib/src/models/conversation_info.dart b/lib/src/models/conversation_info.dart index 6da93ad..579b02c 100644 --- a/lib/src/models/conversation_info.dart +++ b/lib/src/models/conversation_info.dart @@ -4,6 +4,7 @@ import 'package:flutter_openim_sdk/flutter_openim_sdk.dart'; class ConversationInfo { String conversationID; + /// [ConversationType] int? conversationType; String? userID; diff --git a/lib/src/models/group_info.dart b/lib/src/models/group_info.dart index 0ef58d8..f790361 100644 --- a/lib/src/models/group_info.dart +++ b/lib/src/models/group_info.dart @@ -18,7 +18,7 @@ class GroupInfo { this.createTime, this.memberCount}); - GroupInfo.fromJson(Map json): groupID = json['groupID'] { + GroupInfo.fromJson(Map json) : groupID = json['groupID'] { /*groupID = json['groupID'];*/ groupName = json['groupName']; notification = json['notification']; diff --git a/lib/src/models/message.dart b/lib/src/models/message.dart index aa297dc..8b347ff 100644 --- a/lib/src/models/message.dart +++ b/lib/src/models/message.dart @@ -1,5 +1,3 @@ - - class Message { String? clientMsgID; String? serverMsgID; @@ -69,8 +67,8 @@ class Message { this.mergeElem, }); - Message.fromJson(Map json) - /* : clientMsgID = json['clientMsgID']*/ { + Message.fromJson( + Map json) /* : clientMsgID = json['clientMsgID']*/ { clientMsgID = json['clientMsgID']; serverMsgID = json['serverMsgID']; createTime = json['createTime']; diff --git a/pubspec.yaml b/pubspec.yaml index 8aeb084..5f1a4c2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_openim_sdk description: An instant messaging plug-in that supports Android and IOS. And the server is also all open source. -version: 0.0.9 +version: 0.0.9+1 homepage: https://www.rentsoft.cn repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter