[Fix]
This commit is contained in:
parent
239b0893d5
commit
91f40333dc
@ -1,3 +1,6 @@
|
|||||||
|
## 0.0.9+1
|
||||||
|
Fix bug
|
||||||
|
|
||||||
## 0.0.9
|
## 0.0.9
|
||||||
Add ios support
|
Add ios support
|
||||||
|
|
||||||
@ -14,7 +17,7 @@ Fix bug
|
|||||||
|
|
||||||
## 0.0.5
|
## 0.0.5
|
||||||
Upgrade sdk </br>
|
Upgrade sdk </br>
|
||||||
fix message error bug
|
Fix message error bug
|
||||||
|
|
||||||
## 0.0.4
|
## 0.0.4
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ A flutter IM plugin for android and ios.
|
|||||||
|
|
||||||
#### 1,Add dependency in yaml
|
#### 1,Add dependency in yaml
|
||||||
|
|
||||||
flutter_openim_sdk: ^0.0.9
|
flutter_openim_sdk: ^0.0.9+1
|
||||||
|
|
||||||
#### 2,Import package
|
#### 2,Import package
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "0.0.8+1"
|
version: "0.0.9"
|
||||||
flutter_test:
|
flutter_test:
|
||||||
dependency: "direct dev"
|
dependency: "direct dev"
|
||||||
description: flutter
|
description: flutter
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
class MessageStatus{
|
class MessageStatus {
|
||||||
static const sending = 1;
|
static const sending = 1;
|
||||||
static const succeeded = 2;
|
static const succeeded = 2;
|
||||||
static const failed = 3;
|
static const failed = 3;
|
||||||
static const deleted = 4;
|
static const deleted = 4;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
||||||
|
|
||||||
|
|
||||||
abstract class AdvancedMsgListener {
|
abstract class AdvancedMsgListener {
|
||||||
/// Uniquely identifies
|
/// Uniquely identifies
|
||||||
final String id;
|
final String id;
|
||||||
|
@ -35,7 +35,8 @@ class OnFriendshipListener extends FriendshipListener {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void friendApplicationListAccept(UserInfo u) {
|
void friendApplicationListAccept(UserInfo u) {
|
||||||
if (null != onFriendApplicationListAccept) onFriendApplicationListAccept!(u);
|
if (null != onFriendApplicationListAccept)
|
||||||
|
onFriendApplicationListAccept!(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -45,12 +46,14 @@ class OnFriendshipListener extends FriendshipListener {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void friendApplicationListDeleted(UserInfo u) {
|
void friendApplicationListDeleted(UserInfo u) {
|
||||||
if (null != onFriendApplicationListDeleted) onFriendApplicationListDeleted!(u);
|
if (null != onFriendApplicationListDeleted)
|
||||||
|
onFriendApplicationListDeleted!(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void friendApplicationListReject(UserInfo u) {
|
void friendApplicationListReject(UserInfo u) {
|
||||||
if (null != onFriendApplicationListReject) onFriendApplicationListReject!(u);
|
if (null != onFriendApplicationListReject)
|
||||||
|
onFriendApplicationListReject!(u);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
||||||
|
|
||||||
|
|
||||||
class OnMsgSendProgressListener extends MsgSendProgressListener {
|
class OnMsgSendProgressListener extends MsgSendProgressListener {
|
||||||
Function(String msgID, int progress)? onProgress;
|
Function(String msgID, int progress)? onProgress;
|
||||||
|
|
||||||
|
@ -44,14 +44,13 @@ class MessageManager {
|
|||||||
bool onlineUserOnly = false,
|
bool onlineUserOnly = false,
|
||||||
}) {
|
}) {
|
||||||
return _channel.invokeMethod(
|
return _channel.invokeMethod(
|
||||||
'sendMessage',
|
'sendMessage',
|
||||||
_buildParam({
|
_buildParam({
|
||||||
'message': message.toJson(),
|
'message': message.toJson(),
|
||||||
'receiver': userID ?? '',
|
'receiver': userID ?? '',
|
||||||
'groupID': groupID ?? '',
|
'groupID': groupID ?? '',
|
||||||
'onlineUserOnly': onlineUserOnly,
|
'onlineUserOnly': onlineUserOnly,
|
||||||
}))
|
})) /*.then((value) => _toObj(value))*/;
|
||||||
/*.then((value) => _toObj(value))*/;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Find all history message
|
/// Find all history message
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
// MethodChannel _channel;
|
// MethodChannel _channel;
|
||||||
//
|
//
|
||||||
// OfflinePushManager(this._channel);
|
// OfflinePushManager(this._channel);
|
||||||
// }
|
// }
|
||||||
|
@ -4,6 +4,7 @@ import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
|||||||
|
|
||||||
class ConversationInfo {
|
class ConversationInfo {
|
||||||
String conversationID;
|
String conversationID;
|
||||||
|
|
||||||
/// [ConversationType]
|
/// [ConversationType]
|
||||||
int? conversationType;
|
int? conversationType;
|
||||||
String? userID;
|
String? userID;
|
||||||
|
@ -18,7 +18,7 @@ class GroupInfo {
|
|||||||
this.createTime,
|
this.createTime,
|
||||||
this.memberCount});
|
this.memberCount});
|
||||||
|
|
||||||
GroupInfo.fromJson(Map<String, dynamic> json): groupID = json['groupID'] {
|
GroupInfo.fromJson(Map<String, dynamic> json) : groupID = json['groupID'] {
|
||||||
/*groupID = json['groupID'];*/
|
/*groupID = json['groupID'];*/
|
||||||
groupName = json['groupName'];
|
groupName = json['groupName'];
|
||||||
notification = json['notification'];
|
notification = json['notification'];
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
class Message {
|
class Message {
|
||||||
String? clientMsgID;
|
String? clientMsgID;
|
||||||
String? serverMsgID;
|
String? serverMsgID;
|
||||||
@ -69,8 +67,8 @@ class Message {
|
|||||||
this.mergeElem,
|
this.mergeElem,
|
||||||
});
|
});
|
||||||
|
|
||||||
Message.fromJson(Map<String, dynamic> json)
|
Message.fromJson(
|
||||||
/* : clientMsgID = json['clientMsgID']*/ {
|
Map<String, dynamic> json) /* : clientMsgID = json['clientMsgID']*/ {
|
||||||
clientMsgID = json['clientMsgID'];
|
clientMsgID = json['clientMsgID'];
|
||||||
serverMsgID = json['serverMsgID'];
|
serverMsgID = json['serverMsgID'];
|
||||||
createTime = json['createTime'];
|
createTime = json['createTime'];
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: flutter_openim_sdk
|
name: flutter_openim_sdk
|
||||||
description: An instant messaging plug-in that supports Android and IOS. And the server is also all open source.
|
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
|
homepage: https://www.rentsoft.cn
|
||||||
repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter
|
repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user