hrxiang 4 years ago
parent 239b0893d5
commit 91f40333dc
  1. 5
      CHANGELOG.md
  2. 2
      README.md
  3. 2
      example/pubspec.lock
  4. 4
      lib/src/enum/message_status.dart
  5. 1
      lib/src/listener/advanced_msg_listener.dart
  6. 9
      lib/src/listener/impl/friendship_listener.dart
  7. 1
      lib/src/listener/impl/msg_send_progress_listener.dart
  8. 15
      lib/src/manager/im_message_manager.dart
  9. 2
      lib/src/manager/im_offline_push_manager.dart
  10. 1
      lib/src/models/conversation_info.dart
  11. 2
      lib/src/models/group_info.dart
  12. 6
      lib/src/models/message.dart
  13. 2
      pubspec.yaml

@ -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 </br>
fix message error bug
Fix message error bug
## 0.0.4

@ -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

@ -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

@ -1,6 +1,6 @@
class MessageStatus{
class MessageStatus {
static const sending = 1;
static const succeeded = 2;
static const failed = 3;
static const deleted = 4;
}
}

@ -1,6 +1,5 @@
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
abstract class AdvancedMsgListener {
/// Uniquely identifies
final String id;

@ -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

@ -1,6 +1,5 @@
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
class OnMsgSendProgressListener extends MsgSendProgressListener {
Function(String msgID, int progress)? onProgress;

@ -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

@ -4,4 +4,4 @@
// MethodChannel _channel;
//
// OfflinePushManager(this._channel);
// }
// }

@ -4,6 +4,7 @@ import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
class ConversationInfo {
String conversationID;
/// [ConversationType]
int? conversationType;
String? userID;

@ -18,7 +18,7 @@ class GroupInfo {
this.createTime,
this.memberCount});
GroupInfo.fromJson(Map<String, dynamic> json): groupID = json['groupID'] {
GroupInfo.fromJson(Map<String, dynamic> json) : groupID = json['groupID'] {
/*groupID = json['groupID'];*/
groupName = json['groupName'];
notification = json['notification'];

@ -1,5 +1,3 @@
class Message {
String? clientMsgID;
String? serverMsgID;
@ -69,8 +67,8 @@ class Message {
this.mergeElem,
});
Message.fromJson(Map<String, dynamic> json)
/* : clientMsgID = json['clientMsgID']*/ {
Message.fromJson(
Map<String, dynamic> json) /* : clientMsgID = json['clientMsgID']*/ {
clientMsgID = json['clientMsgID'];
serverMsgID = json['serverMsgID'];
createTime = json['createTime'];

@ -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

Loading…
Cancel
Save