diff --git a/android/build.gradle b/android/build.gradle index ecfed55..d21fe20 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -52,5 +52,5 @@ android { dependencies { // 本地依赖,现将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:3.2.0-alpha.0@aar' + implementation 'io.openim:core-sdk:3.2.0@aar' } \ No newline at end of file diff --git a/android/src/main/java/io/openim/flutter_openim_sdk/listener/OnUserListener.java b/android/src/main/java/io/openim/flutter_openim_sdk/listener/OnUserListener.java index 9f37cf8..a2977b7 100644 --- a/android/src/main/java/io/openim/flutter_openim_sdk/listener/OnUserListener.java +++ b/android/src/main/java/io/openim/flutter_openim_sdk/listener/OnUserListener.java @@ -8,4 +8,9 @@ public class OnUserListener implements open_im_sdk_callback.OnUserListener { public void onSelfInfoUpdated(String s) { CommonUtil.emitEvent("userListener", "onSelfInfoUpdated", s); } + + @Override + public void onUserStatusChanged(String s) { + CommonUtil.emitEvent("userListener", "onUserStatusChanged", s); + } } diff --git a/ios/Classes/Module/UserManager.swift b/ios/Classes/Module/UserManager.swift index 49f5253..19873e5 100644 --- a/ios/Classes/Module/UserManager.swift +++ b/ios/Classes/Module/UserManager.swift @@ -40,4 +40,9 @@ public class UserListener: NSObject, Open_im_sdk_callbackOnUserListenerProtocol public func onSelfInfoUpdated(_ userInfo: String?) { CommonUtil.emitEvent(channel: self.channel, method: "userListener", type: "onSelfInfoUpdated", errCode: nil, errMsg: nil, data: userInfo) } + + public func onUserStatusChanged(_ userInfo: String?) { + CommonUtil.emitEvent(channel: self.channel, method: "userListener", type: "onUserStatusChanged", errCode: nil, errMsg: nil, data: userInfo) + } + } diff --git a/ios/flutter_openim_sdk.podspec b/ios/flutter_openim_sdk.podspec index a91da89..1dde1fb 100644 --- a/ios/flutter_openim_sdk.podspec +++ b/ios/flutter_openim_sdk.podspec @@ -17,7 +17,7 @@ A new Flutter project. s.dependency 'Flutter' s.platform = :ios, '11.0' - s.dependency 'OpenIMSDKCore','3.2.0-alpha.0' + s.dependency 'OpenIMSDKCore','3.2.0' s.static_framework = true # s.vendored_frameworks = 'Framework/*.framework' # Flutter.framework does not contain a i386 slice. diff --git a/lib/src/openim.dart b/lib/src/openim.dart index 37522a2..b18660a 100644 --- a/lib/src/openim.dart +++ b/lib/src/openim.dart @@ -2,7 +2,7 @@ import 'package:flutter/services.dart'; import 'package:flutter_openim_sdk/flutter_openim_sdk.dart'; class OpenIM { - static const version = '3.2.0-alpha.0'; + static const version = '3.2.0'; static const _channel = const MethodChannel('flutter_openim_sdk'); diff --git a/pubspec.yaml b/pubspec.yaml index 314e9ca..c86ff8a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: 3.2.0-alpha.0 +version: 3.2.0 homepage: https://www.rentsoft.cn repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter