main
hrxiang 2 years ago
parent 3b5f47c9f0
commit 2c40b626e4
  1. 4
      CHANGELOG.md
  2. 2
      android/build.gradle
  3. 16
      lib/src/models/user_info.dart
  4. 2
      pubspec.yaml

@ -1,3 +1,7 @@
## 2.3.5+1
- Add birthTime for UserInfo
## 2.3.5
- Add setCustomBusinessListener method for MessageManager

@ -34,5 +34,5 @@ android {
}
}
dependencies {
api 'io.openim:core-sdk:2.3.5@aar'
api 'io.openim:core-sdk:2.3.5-t02@aar'
}

@ -20,9 +20,12 @@ class UserInfo {
///
String? phoneNumber;
///
@deprecated
int? birth;
///
String? birthTime;
///
String? email;
@ -77,6 +80,7 @@ class UserInfo {
this.faceURL,
this.phoneNumber,
this.birth,
this.birthTime,
this.gender,
this.email,
this.ex,
@ -121,6 +125,7 @@ class UserInfo {
gender = json['gender'] ?? _gender;
phoneNumber = json['phoneNumber'] ?? _phoneNumber;
birth = json['birth'] ?? _birth;
birthTime = json['birthTime'] ?? _birthTime;
email = json['email'] ?? _email;
remark = json['remark'] ?? _remark;
ex = json['ex'] ?? _ex;
@ -146,6 +151,7 @@ class UserInfo {
data['gender'] = this.gender;
data['phoneNumber'] = this.phoneNumber;
data['birth'] = this.birth;
data['birthTime'] = this.birthTime;
data['email'] = this.email;
data['ex'] = this.ex;
data['createTime'] = this.createTime;
@ -188,6 +194,8 @@ class UserInfo {
int? get _birth => friendInfo?.birth;
String? get _birthTime => friendInfo?.birthTime;
String? get _email => friendInfo?.email;
String? get _remark => friendInfo?.remark;
@ -278,6 +286,9 @@ class FriendInfo {
String? phoneNumber;
///
String? birthTime;
@deprecated
int? birth;
///
@ -305,6 +316,7 @@ class FriendInfo {
this.gender,
this.phoneNumber,
this.birth,
this.birthTime,
this.email,
this.remark,
this.ex,
@ -325,6 +337,7 @@ class FriendInfo {
gender = json['gender'];
phoneNumber = json['phoneNumber'];
birth = json['birth'];
birthTime = json['birthTime'];
email = json['email'];
ex = json['ex'];
}
@ -342,6 +355,7 @@ class FriendInfo {
data['gender'] = this.gender;
data['phoneNumber'] = this.phoneNumber;
data['birth'] = this.birth;
data['birthTime'] = this.birthTime;
data['email'] = this.email;
data['ex'] = this.ex;
return data;

@ -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: 2.3.5
version: 2.3.5+1
homepage: https://www.rentsoft.cn
repository: https://github.com/OpenIMSDK/Open-IM-SDK-Flutter

Loading…
Cancel
Save