Compare commits
5 Commits
3.5.1-alph
...
3.5.1-alph
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b11686dac | ||
|
|
1764da125b | ||
|
|
bf4cdf0754 | ||
|
|
45cd497d94 | ||
|
|
1db776e23d |
@@ -1,3 +1,7 @@
|
|||||||
|
## 3.5.1-alpha.7
|
||||||
|
|
||||||
|
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.5.1-alpha.7)
|
||||||
|
-
|
||||||
## 3.5.1-alpha.2
|
## 3.5.1-alpha.2
|
||||||
|
|
||||||
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.5.1-alpha.2)
|
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.5.1-alpha.2)
|
||||||
|
|||||||
@@ -52,5 +52,5 @@ android {
|
|||||||
dependencies {
|
dependencies {
|
||||||
// 本地依赖,现将aar复制到libs/io/openim/core-sdk/0.0.1/ 下,命名core-sdk-0.0.1.aar
|
// 本地依赖,现将aar复制到libs/io/openim/core-sdk/0.0.1/ 下,命名core-sdk-0.0.1.aar
|
||||||
// implementation 'io.openim:core-sdk:0.0.1@aar'
|
// implementation 'io.openim:core-sdk:0.0.1@aar'
|
||||||
implementation 'io.openim:core-sdk:3.5.1-alpha.2@aar'
|
implementation 'io.openim:core-sdk:3.5.1-alpha.8@aar'
|
||||||
}
|
}
|
||||||
@@ -67,6 +67,7 @@ public class IMManager extends BaseManager {
|
|||||||
Open_im_sdk.uploadLogs(
|
Open_im_sdk.uploadLogs(
|
||||||
new OnBaseListener(result, methodCall),
|
new OnBaseListener(result, methodCall),
|
||||||
value(methodCall, "operationID"),
|
value(methodCall, "operationID"),
|
||||||
|
value(methodCall, "ex"),
|
||||||
new OnUploadLogsListener(result, methodCall)
|
new OnUploadLogsListener(result, methodCall)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,11 +69,12 @@ public class UserManager extends BaseManager {
|
|||||||
jsonValue(methodCall, "userIDs"),
|
jsonValue(methodCall, "userIDs"),
|
||||||
value(methodCall, "groupID"));
|
value(methodCall, "groupID"));
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
public void setSelfInfoEx(MethodCall methodCall, MethodChannel.Result result) {
|
public void setSelfInfoEx(MethodCall methodCall, MethodChannel.Result result) {
|
||||||
Open_im_sdk.setSelfInfoEx(
|
Open_im_sdk.setSelfInfoEx(
|
||||||
new OnBaseListener(result, methodCall),
|
new OnBaseListener(result, methodCall),
|
||||||
value(methodCall, "operationID"),
|
value(methodCall, "operationID"),
|
||||||
jsonValue(methodCall));
|
jsonValue(methodCall));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,7 +86,8 @@ public class IMMananger: BaseServiceManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func uploadLogs(methodCall: FlutterMethodCall, result: @escaping FlutterResult) {
|
func uploadLogs(methodCall: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||||
Open_im_sdkUploadLogs(BaseCallback(result: result), methodCall[string: "operationID"], UploadLogsListener(channel: self.channel))
|
Open_im_sdkUploadLogs(BaseCallback(result: result), methodCall[string: "operationID"], methodCall[string: "ex"], UploadLogsListener(channel: self
|
||||||
|
.channel))
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateFcmToken(methodCall: FlutterMethodCall, result: @escaping FlutterResult) {
|
func updateFcmToken(methodCall: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ public class UserManager: BaseServiceManager {
|
|||||||
self["getSubscribeUsersStatus"] = getSubscribeUsersStatus
|
self["getSubscribeUsersStatus"] = getSubscribeUsersStatus
|
||||||
self["getUserStatus"] = getUserStatus
|
self["getUserStatus"] = getUserStatus
|
||||||
self["getUsersInfoWithCache"] = getUsersInfoWithCache
|
self["getUsersInfoWithCache"] = getUsersInfoWithCache
|
||||||
|
/*
|
||||||
self["setSelfInfoEx"] = setSelfInfoEx
|
self["setSelfInfoEx"] = setSelfInfoEx
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
func setUserListener(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
func setUserListener(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
||||||
@@ -54,10 +56,11 @@ public class UserManager: BaseServiceManager {
|
|||||||
Open_im_sdkGetUsersInfoWithCache(BaseCallback(result: result), methodCall[string: "operationID"], methodCall[jsonString: "userIDs"],
|
Open_im_sdkGetUsersInfoWithCache(BaseCallback(result: result), methodCall[string: "operationID"], methodCall[jsonString: "userIDs"],
|
||||||
methodCall[string: "groupID"])
|
methodCall[string: "groupID"])
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
func setSelfInfoEx(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
func setSelfInfoEx(methodCall: FlutterMethodCall, result: @escaping FlutterResult){
|
||||||
Open_im_sdkSetSelfInfoEx(BaseCallback(result: result), methodCall[string: "operationID"], methodCall.toJsonString())
|
Open_im_sdkSetSelfInfoEx(BaseCallback(result: result), methodCall[string: "operationID"], methodCall.toJsonString())
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public class UserListener: NSObject, Open_im_sdk_callbackOnUserListenerProtocol {
|
public class UserListener: NSObject, Open_im_sdk_callbackOnUserListenerProtocol {
|
||||||
|
|||||||
@@ -17,8 +17,10 @@ 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.1-alpha.2'
|
s.dependency 'OpenIMSDKCore','3.5.1-alpha.8'
|
||||||
s.static_framework = true
|
s.static_framework = true
|
||||||
|
s.library = 'resolv'
|
||||||
|
|
||||||
# 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.
|
||||||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386 arm64' }
|
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386 arm64' }
|
||||||
|
|||||||
@@ -18,43 +18,39 @@ class GroupManager {
|
|||||||
/// Invite users to a group, allowing them to join without approval.
|
/// Invite users to a group, allowing them to join without approval.
|
||||||
/// [groupID] Group ID
|
/// [groupID] Group ID
|
||||||
/// [userIDList] List of user IDs
|
/// [userIDList] List of user IDs
|
||||||
Future<List<GroupInviteResult>> inviteUserToGroup({
|
Future inviteUserToGroup({
|
||||||
required String groupID,
|
required String groupID,
|
||||||
required List<String> userIDList,
|
required List<String> userIDList,
|
||||||
String? reason,
|
String? reason,
|
||||||
String? operationID,
|
String? operationID,
|
||||||
}) =>
|
}) =>
|
||||||
_channel
|
_channel.invokeMethod(
|
||||||
.invokeMethod(
|
'inviteUserToGroup',
|
||||||
'inviteUserToGroup',
|
_buildParam({
|
||||||
_buildParam({
|
'groupID': groupID,
|
||||||
'groupID': groupID,
|
'userIDList': userIDList,
|
||||||
'userIDList': userIDList,
|
'reason': reason,
|
||||||
'reason': reason,
|
"operationID": Utils.checkOperationID(operationID),
|
||||||
"operationID": Utils.checkOperationID(operationID),
|
}));
|
||||||
}))
|
|
||||||
.then((value) => Utils.toList(value, (map) => GroupInviteResult.fromJson(map)));
|
|
||||||
|
|
||||||
/// Remove group members
|
/// Remove group members
|
||||||
/// [groupID] Group ID
|
/// [groupID] Group ID
|
||||||
/// [userIDList] List of user IDs
|
/// [userIDList] List of user IDs
|
||||||
/// [reason] Reason for removal
|
/// [reason] Reason for removal
|
||||||
Future<List<GroupInviteResult>> kickGroupMember({
|
Future kickGroupMember({
|
||||||
required String groupID,
|
required String groupID,
|
||||||
required List<String> userIDList,
|
required List<String> userIDList,
|
||||||
String? reason,
|
String? reason,
|
||||||
String? operationID,
|
String? operationID,
|
||||||
}) =>
|
}) =>
|
||||||
_channel
|
_channel.invokeMethod(
|
||||||
.invokeMethod(
|
'kickGroupMember',
|
||||||
'kickGroupMember',
|
_buildParam({
|
||||||
_buildParam({
|
'groupID': groupID,
|
||||||
'groupID': groupID,
|
'userIDList': userIDList,
|
||||||
'userIDList': userIDList,
|
'reason': reason,
|
||||||
'reason': reason,
|
"operationID": Utils.checkOperationID(operationID),
|
||||||
"operationID": Utils.checkOperationID(operationID),
|
}));
|
||||||
}))
|
|
||||||
.then((value) => Utils.toList(value, (map) => GroupInviteResult.fromJson(map)));
|
|
||||||
|
|
||||||
/// Query group member information
|
/// Query group member information
|
||||||
/// [groupID] Group ID
|
/// [groupID] Group ID
|
||||||
|
|||||||
@@ -526,13 +526,15 @@ class IMManager {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
/// 上传日志
|
/// 上传日志
|
||||||
/// [uploadlogParams] system_type、ex
|
/// [uploadlogParams] ex
|
||||||
Future uploadLogs({
|
Future uploadLogs({
|
||||||
|
String? ex,
|
||||||
String? operationID,
|
String? operationID,
|
||||||
}) =>
|
}) =>
|
||||||
_channel.invokeMethod(
|
_channel.invokeMethod(
|
||||||
'uploadLogs',
|
'uploadLogs',
|
||||||
_buildParam({
|
_buildParam({
|
||||||
|
'ex': ex,
|
||||||
'operationID': Utils.checkOperationID(operationID),
|
'operationID': Utils.checkOperationID(operationID),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ class UserManager {
|
|||||||
.then((value) => Utils.toList(value, (map) => FullUserInfo.fromJson(map)));
|
.then((value) => Utils.toList(value, (map) => FullUserInfo.fromJson(map)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
Future<String?> setSelfUserInfoEx(
|
Future<String?> setSelfUserInfoEx(
|
||||||
UserInfo userInfo, {
|
UserInfo userInfo, {
|
||||||
String? operationID,
|
String? operationID,
|
||||||
@@ -142,7 +143,7 @@ class UserManager {
|
|||||||
'operationID': Utils.checkOperationID(operationID),
|
'operationID': Utils.checkOperationID(operationID),
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
static Map _buildParam(Map param) {
|
static Map _buildParam(Map param) {
|
||||||
param["ManagerName"] = "userManager";
|
param["ManagerName"] = "userManager";
|
||||||
return param;
|
return param;
|
||||||
|
|||||||
@@ -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.1-alpha.2';
|
static const version = '3.5.1-alpha.8';
|
||||||
|
|
||||||
static const _channel = const MethodChannel('flutter_openim_sdk');
|
static const _channel = const MethodChannel('flutter_openim_sdk');
|
||||||
|
|
||||||
|
|||||||
@@ -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: 3.5.1-alpha.2
|
version: 3.5.1-alpha.8
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user