From e4c78e0106c1524536710b7c3af064520fbd9e36 Mon Sep 17 00:00:00 2001 From: hrxiang Date: Thu, 19 May 2022 16:00:10 +0800 Subject: [PATCH] Upgrade --- android/build.gradle | 10 ++-------- lib/src/models/message.dart | 4 ++++ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 744d514..2cfad6a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -3,13 +3,10 @@ version '1.0' buildscript { repositories { - maven { url 'https://maven.aliyun.com/repository/google' } - maven { url 'https://maven.aliyun.com/repository/jcenter' } - maven { url 'http://maven.aliyun.com/nexus/content/groups/public' } maven { + url 'http://121.37.25.71:8081/repository/maven2/' allowInsecureProtocol = true // url 'http://121.37.25.71:8081/repository/maven-releases/' - url 'http://121.37.25.71:8081/repository/maven2/' } google() mavenCentral() @@ -22,13 +19,10 @@ buildscript { rootProject.allprojects { repositories { - maven { url 'https://maven.aliyun.com/repository/google' } - maven { url 'https://maven.aliyun.com/repository/jcenter' } - maven { url 'http://maven.aliyun.com/nexus/content/groups/public' } maven { + url 'http://121.37.25.71:8081/repository/maven2/' allowInsecureProtocol = true // url 'http://121.37.25.71:8081/repository/maven-releases/' - url 'http://121.37.25.71:8081/repository/maven2/' } google() mavenCentral() diff --git a/lib/src/models/message.dart b/lib/src/models/message.dart index f04af85..e9e79fb 100644 --- a/lib/src/models/message.dart +++ b/lib/src/models/message.dart @@ -608,11 +608,13 @@ class AttachedInfoElem { /// 单聊有效 bool? isPrivateChat; int? hasReadTime; + bool? notSenderNotificationPush; AttachedInfoElem({ this.groupHasReadInfo, this.isPrivateChat, this.hasReadTime, + this.notSenderNotificationPush, }); AttachedInfoElem.fromJson(Map json) { @@ -621,6 +623,7 @@ class AttachedInfoElem { : GroupHasReadInfo.fromJson(json['groupHasReadInfo']); isPrivateChat = json['isPrivateChat']; hasReadTime = json['hasReadTime']; + notSenderNotificationPush = json['notSenderNotificationPush']; } Map toJson() { @@ -628,6 +631,7 @@ class AttachedInfoElem { data['groupHasReadInfo'] = this.groupHasReadInfo?.toJson(); data['isPrivateChat'] = this.isPrivateChat; data['hasReadTime'] = this.hasReadTime; + data['notSenderNotificationPush'] = this.notSenderNotificationPush; return data; } }