This commit is contained in:
parent
da148f78e3
commit
98227756df
@ -1,3 +1,7 @@
|
|||||||
|
## 3.5.1-alpha.2
|
||||||
|
|
||||||
|
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.5.1-alpha.2)
|
||||||
|
|
||||||
## 3.5.0-rc.1
|
## 3.5.0-rc.1
|
||||||
|
|
||||||
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.5.0-rc.1)
|
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.5.0-rc.1)
|
||||||
|
@ -161,6 +161,10 @@ public class ConversationListener: NSObject, Open_im_sdk_callbackOnConversationL
|
|||||||
public func onTotalUnreadMessageCountChanged(_ totalUnreadCount: Int32) {
|
public func onTotalUnreadMessageCountChanged(_ totalUnreadCount: Int32) {
|
||||||
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onTotalUnreadMessageCountChanged", errCode: nil, errMsg: nil, data: totalUnreadCount)
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onTotalUnreadMessageCountChanged", errCode: nil, errMsg: nil, data: totalUnreadCount)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public func onConversationUserInputStatusChanged(_ change: String?) {
|
||||||
|
CommonUtil.emitEvent(channel: channel, method: "conversationListener", type: "onConversationUserInputStatusChanged", errCode: nil, errMsg: nil, data: change)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -357,7 +357,13 @@ public class AdvancedMsgListener: NSObject, Open_im_sdk_callbackOnAdvancedMsgLis
|
|||||||
values["message"] = message
|
values["message"] = message
|
||||||
CommonUtil.emitEvent(channel: channel, method: "advancedMsgListener", type: "onRecvOfflineNewMessage", errCode: nil, errMsg: nil, data: values);
|
CommonUtil.emitEvent(channel: channel, method: "advancedMsgListener", type: "onRecvOfflineNewMessage", errCode: nil, errMsg: nil, data: values);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public func onRecvOnlineOnlyMessage(_ message: String?) {
|
||||||
|
var values: [String: Any] = [:]
|
||||||
|
values["id"] = id
|
||||||
|
values["message"] = message
|
||||||
|
CommonUtil.emitEvent(channel: channel, method: "advancedMsgListener", type: "onRecvOnlineOnlyMessage", errCode: nil, errMsg: nil, data: values);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class CustomBusinessListener: NSObject, Open_im_sdk_callbackOnCustomBusinessListenerProtocol {
|
public class CustomBusinessListener: NSObject, Open_im_sdk_callbackOnCustomBusinessListenerProtocol {
|
||||||
|
@ -17,7 +17,7 @@ A new Flutter project.
|
|||||||
s.dependency 'Flutter'
|
s.dependency 'Flutter'
|
||||||
s.platform = :ios, '11.0'
|
s.platform = :ios, '11.0'
|
||||||
|
|
||||||
s.dependency 'OpenIMSDKCore','3.5.0-rc1'
|
s.dependency 'OpenIMSDKCore','3.5.1-alpha.2'
|
||||||
s.static_framework = true
|
s.static_framework = true
|
||||||
# s.vendored_frameworks = 'Framework/*.framework'
|
# s.vendored_frameworks = 'Framework/*.framework'
|
||||||
# Flutter.framework does not contain a i386 slice.
|
# Flutter.framework does not contain a i386 slice.
|
||||||
|
@ -9,6 +9,7 @@ class OnAdvancedMsgListener {
|
|||||||
Function(String msgID, List<String> list)? onRecvMessageExtensionsDeleted;
|
Function(String msgID, List<String> list)? onRecvMessageExtensionsDeleted;
|
||||||
Function(Message msg)? onRecvNewMessage;
|
Function(Message msg)? onRecvNewMessage;
|
||||||
Function(Message msg)? onRecvOfflineNewMessage;
|
Function(Message msg)? onRecvOfflineNewMessage;
|
||||||
|
Function(Message msg)? onRecvOnlineOnlyMessage;
|
||||||
|
|
||||||
/// Uniquely identifies
|
/// Uniquely identifies
|
||||||
String id;
|
String id;
|
||||||
@ -21,6 +22,7 @@ class OnAdvancedMsgListener {
|
|||||||
this.onRecvMessageExtensionsDeleted,
|
this.onRecvMessageExtensionsDeleted,
|
||||||
this.onRecvNewMessage,
|
this.onRecvNewMessage,
|
||||||
this.onRecvOfflineNewMessage,
|
this.onRecvOfflineNewMessage,
|
||||||
|
this.onRecvOnlineOnlyMessage,
|
||||||
}) : id = "id_${DateTime.now().microsecondsSinceEpoch}";
|
}) : id = "id_${DateTime.now().microsecondsSinceEpoch}";
|
||||||
|
|
||||||
void msgDeleted(Message msg) {
|
void msgDeleted(Message msg) {
|
||||||
@ -56,4 +58,8 @@ class OnAdvancedMsgListener {
|
|||||||
void recvOfflineNewMessage(Message msg) {
|
void recvOfflineNewMessage(Message msg) {
|
||||||
onRecvOfflineNewMessage?.call(msg);
|
onRecvOfflineNewMessage?.call(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void recvOnlineOnlyMessage(Message msg) {
|
||||||
|
onRecvOnlineOnlyMessage?.call(msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -160,6 +160,11 @@ class IMManager {
|
|||||||
final msg = Utils.toObj(value, (map) => Message.fromJson(map));
|
final msg = Utils.toObj(value, (map) => Message.fromJson(map));
|
||||||
messageManager.msgListener.recvOfflineNewMessage(msg);
|
messageManager.msgListener.recvOfflineNewMessage(msg);
|
||||||
break;
|
break;
|
||||||
|
case 'onRecvOnlineOnlyMessage':
|
||||||
|
var value = call.arguments['data']['message'];
|
||||||
|
final msg = Utils.toObj(value, (map) => Message.fromJson(map));
|
||||||
|
messageManager.msgListener.recvOnlineOnlyMessage(msg);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else if (call.method == ListenerType.msgSendProgressListener) {
|
} else if (call.method == ListenerType.msgSendProgressListener) {
|
||||||
String type = call.arguments['type'];
|
String type = call.arguments['type'];
|
||||||
@ -279,10 +284,10 @@ class IMManager {
|
|||||||
String type = call.arguments['type'];
|
String type = call.arguments['type'];
|
||||||
dynamic data = call.arguments['data'];
|
dynamic data = call.arguments['data'];
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'onProgress':
|
case 'onProgress':
|
||||||
int size = data['size'];
|
int size = data['size'];
|
||||||
int current = data['current'];
|
int current = data['current'];
|
||||||
_uploadLogsListener?.onProgress(current, size);
|
_uploadLogsListener?.onProgress(current, size);
|
||||||
}
|
}
|
||||||
} else if (call.method == ListenerType.uploadFileListener) {
|
} else if (call.method == ListenerType.uploadFileListener) {
|
||||||
String type = call.arguments['type'];
|
String type = call.arguments['type'];
|
||||||
@ -383,7 +388,6 @@ class IMManager {
|
|||||||
required String dataDir,
|
required String dataDir,
|
||||||
required OnConnectListener listener,
|
required OnConnectListener listener,
|
||||||
int logLevel = 6,
|
int logLevel = 6,
|
||||||
String objectStorage = 'minio',
|
|
||||||
bool isCompression = false,
|
bool isCompression = false,
|
||||||
bool isLogStandardOutput = true,
|
bool isLogStandardOutput = true,
|
||||||
String? logFilePath,
|
String? logFilePath,
|
||||||
@ -399,7 +403,6 @@ class IMManager {
|
|||||||
"wsAddr": wsAddr,
|
"wsAddr": wsAddr,
|
||||||
"dataDir": dataDir,
|
"dataDir": dataDir,
|
||||||
"logLevel": logLevel,
|
"logLevel": logLevel,
|
||||||
"objectStorage": objectStorage,
|
|
||||||
"isCompression": isCompression,
|
"isCompression": isCompression,
|
||||||
"isLogStandardOutput": isLogStandardOutput,
|
"isLogStandardOutput": isLogStandardOutput,
|
||||||
"logFilePath": logFilePath,
|
"logFilePath": logFilePath,
|
||||||
|
@ -3,7 +3,6 @@ class InitConfig {
|
|||||||
String apiAddr;
|
String apiAddr;
|
||||||
String wsAddr;
|
String wsAddr;
|
||||||
String dataDir;
|
String dataDir;
|
||||||
String objectStorage;
|
|
||||||
int logLevel;
|
int logLevel;
|
||||||
bool isLogStandardOutput;
|
bool isLogStandardOutput;
|
||||||
String? logFilePath;
|
String? logFilePath;
|
||||||
@ -13,7 +12,6 @@ class InitConfig {
|
|||||||
required this.apiAddr,
|
required this.apiAddr,
|
||||||
required this.wsAddr,
|
required this.wsAddr,
|
||||||
required this.dataDir,
|
required this.dataDir,
|
||||||
required this.objectStorage,
|
|
||||||
this.logLevel = 6,
|
this.logLevel = 6,
|
||||||
this.isLogStandardOutput = true,
|
this.isLogStandardOutput = true,
|
||||||
this.logFilePath,
|
this.logFilePath,
|
||||||
@ -25,7 +23,6 @@ class InitConfig {
|
|||||||
apiAddr: json['apiAddr'],
|
apiAddr: json['apiAddr'],
|
||||||
wsAddr: json['wsAddr'],
|
wsAddr: json['wsAddr'],
|
||||||
dataDir: json['dataDir'],
|
dataDir: json['dataDir'],
|
||||||
objectStorage: json['objectStorage'],
|
|
||||||
logLevel: json['logLevel'],
|
logLevel: json['logLevel'],
|
||||||
isLogStandardOutput: json['isLogStandardOutput'],
|
isLogStandardOutput: json['isLogStandardOutput'],
|
||||||
logFilePath: json['logFilePath'],
|
logFilePath: json['logFilePath'],
|
||||||
@ -38,7 +35,6 @@ class InitConfig {
|
|||||||
'apiAddr': apiAddr,
|
'apiAddr': apiAddr,
|
||||||
'wsAddr': wsAddr,
|
'wsAddr': wsAddr,
|
||||||
'dataDir': dataDir,
|
'dataDir': dataDir,
|
||||||
'objectStorage': objectStorage,
|
|
||||||
'logLevel': logLevel,
|
'logLevel': logLevel,
|
||||||
'isLogStandardOutput': isLogStandardOutput,
|
'isLogStandardOutput': isLogStandardOutput,
|
||||||
'logFilePath': logFilePath,
|
'logFilePath': logFilePath,
|
||||||
|
@ -2,7 +2,7 @@ import 'package:flutter/services.dart';
|
|||||||
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
||||||
|
|
||||||
class OpenIM {
|
class OpenIM {
|
||||||
static const version = '3.5.0-rc.1';
|
static const version = '3.5.1-alpha.2';
|
||||||
|
|
||||||
static const _channel = const MethodChannel('flutter_openim_sdk');
|
static const _channel = const MethodChannel('flutter_openim_sdk');
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
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: 3.5.0-rc.1+1
|
version: 3.5.1-alpha.2
|
||||||
homepage: https://www.openim.io
|
homepage: https://www.openim.io
|
||||||
repository: https://github.com/openimsdk/open-im-sdk-flutter
|
repository: https://github.com/openimsdk/open-im-sdk-flutter
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.12.0 <3.0.0"
|
sdk: ">=2.12.0 <4.0.0"
|
||||||
flutter: ">=1.20.0"
|
flutter: ">=1.20.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user