Compare commits

...

3 Commits

Author SHA1 Message Date
Brett
91b0f4eb00 chore: update SDK. 2024-10-15 10:10:38 +08:00
Brett
bd210e74cb fix: Why does 3.8.1 getFriendList return List<PublicUserInfo> instead of List<FriendInfo>? (#165) 2024-10-15 10:06:21 +08:00
卡色
0acd81bd70 fix: missing required exports
缺失的部分导出,会导致需要额外引用 `import "package:flutter_openim_sdk/src/models/update_req.dart";`,最终导致:

```
Import of a library in the 'lib/src' directory of another package.
Try importing a public library that exports this library, or removing the import.dartimplementation_imports
```
2024-10-09 14:22:52 +08:00
5 changed files with 14 additions and 8 deletions

View File

@@ -1,3 +1,7 @@
## 3.8.1+1
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.8.1)
## 3.8.1
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.8.1)

View File

@@ -35,5 +35,7 @@ export 'src/models/notification_info.dart';
export 'src/models/search_info.dart';
export 'src/models/user_info.dart';
export 'src/models/input_status_changed_data.dart';
export 'src/models/set_group_member_info.dart';
export 'src/models/update_req.dart';
export 'src/openim.dart';
export 'src/utils.dart';

View File

@@ -19,7 +19,7 @@ class FriendshipManager {
/// Query Friend Information
/// [userIDList] List of user IDs
Future<List<PublicUserInfo>> getFriendsInfo({
Future<List<FriendInfo>> getFriendsInfo({
required List<String> userIDList,
bool filterBlack = false,
String? operationID,
@@ -32,7 +32,7 @@ class FriendshipManager {
'filterBlack': filterBlack,
"operationID": Utils.checkOperationID(operationID),
}))
.then((value) => Utils.toList(value, (v) => PublicUserInfo.fromJson(v)));
.then((value) => Utils.toList(value, (v) => FriendInfo.fromJson(v)));
/// Send a Friend Request, the other party needs to accept the request to become friends.
/// [userID] User ID to be invited
@@ -69,7 +69,7 @@ class FriendshipManager {
.then((value) => Utils.toList(value, (v) => FriendApplicationInfo.fromJson(v)));
/// Get Friend List, including friends who have been put into the blacklist
Future<List<PublicUserInfo>> getFriendList({
Future<List<FriendInfo>> getFriendList({
String? operationID,
bool filterBlack = false,
}) =>
@@ -80,9 +80,9 @@ class FriendshipManager {
'filterBlack': filterBlack,
"operationID": Utils.checkOperationID(operationID),
}))
.then((value) => Utils.toList(value, (v) => PublicUserInfo.fromJson(v)));
.then((value) => Utils.toList(value, (v) => FriendInfo.fromJson(v)));
Future<List<PublicUserInfo>> getFriendListPage({
Future<List<FriendInfo>> getFriendListPage({
bool filterBlack = false,
int offset = 0,
int count = 40,
@@ -97,7 +97,7 @@ class FriendshipManager {
'filterBlack': filterBlack,
"operationID": Utils.checkOperationID(operationID),
}))
.then((value) => Utils.toList(value, (v) => PublicUserInfo.fromJson(v)));
.then((value) => Utils.toList(value, (v) => FriendInfo.fromJson(v)));
/// Get Friend List, including friends who have been put into the blacklist (returns a map)
Future<List<dynamic>> getFriendListMap({String? operationID}) => _channel

View File

@@ -2,7 +2,7 @@ import 'package:flutter/services.dart';
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
class OpenIM {
static const version = '3.8.1';
static const version = '3.8.1+1';
static const _channel = MethodChannel('flutter_openim_sdk');

View File

@@ -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.8.1
version: 3.8.1+1
homepage: https://www.openim.io
repository: https://github.com/openimsdk/open-im-sdk-flutter