hrxiang 4 years ago
parent b8ebc36d29
commit 631230a1df
  1. 4
      ios/Classes/CommonUtil.swift
  2. 4
      ios/Classes/SwiftFlutterOpenimSdkPlugin.swift
  3. 1
      lib/flutter_openim_sdk.dart
  4. 9
      lib/src/enum/im_platform.dart

@ -62,7 +62,6 @@ public class CommonUtil {
return r
}
public static func getMessageText(methodCall: FlutterMethodCall)->String{
let result: String = getParamValue(methodCall: methodCall, param: KEY_TEXT) as! String
return result
@ -267,7 +266,6 @@ public class CommonUtil {
return r
}
//login
private static let KEY_UID: String = "uid";
private static let KEY_TOKEN: String = "token";
@ -285,7 +283,7 @@ public class CommonUtil {
private static let KEY_FILE_NAME: String = "fileName";
private static let KEY_MERGER_MESSAGE_LIST: String = "messageList";
private static let KEY_MERGER_MESSAGE_TITLE: String = "title";
private static let KEY_SUMMARY_LIST =: String "summaryList";
private static let KEY_SUMMARY_LIST: String = "summaryList";
private static let KEY_FORWARD_MESSAGE: String = "message";
//send message
private static let KEY_SEND_MESSAGE_CONTENT: String = "message";

@ -172,7 +172,9 @@ public class SwiftFlutterOpenimSdkPlugin: NSObject, FlutterPlugin {
private func handleGroupManager(call: FlutterMethodCall, result: @escaping FlutterResult){
let method: String = call.method
if method == "inviteUserToGroup" {
if method == "setGroupListener" {
groupManager.setGroupListener(methodCall: call, result: result)
}else if method == "inviteUserToGroup" {
groupManager.inviteUserToGroup(methodCall: call, result: result)
}else if method == "kickGroupMember" {
groupManager.kickGroupMember(methodCall: call, result: result)

@ -2,6 +2,7 @@ library flutter_openim_sdk;
export 'src/enum/conversation_type.dart';
export 'src/enum/group_role.dart';
export 'src/enum/im_platform.dart';
export 'src/enum/listener_type.dart';
export 'src/enum/message_status.dart';
export 'src/enum/message_type.dart';

@ -0,0 +1,9 @@
class IMPlatform {
static const ios = 1;
static const android = 2;
static const windows = 3;
static const xos = 4;
static const web = 5;
static const mini_web = 6;
static const linux = 7;
}
Loading…
Cancel
Save