Skip to content

Commit bbb307f

Browse files
committed
build: release v0.4.08
* update android info entity * upgrade vuepress version
1 parent 7df8dd4 commit bbb307f

File tree

9 files changed

+1736
-786
lines changed

9 files changed

+1736
-786
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you're using Maven, just add the following dependency in `pom.xml`.
2626
<dependency>
2727
<groupId>io.github.doocs</groupId>
2828
<artifactId>im-server-sdk-java</artifactId>
29-
<version>0.4.07</version>
29+
<version>0.4.08</version>
3030
</dependency>
3131
```
3232

README_CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>io.github.doocs</groupId>
2828
<artifactId>im-server-sdk-java</artifactId>
29-
<version>0.4.07</version>
29+
<version>0.4.08</version>
3030
</dependency>
3131
```
3232

docs/guide/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 介绍
22

3-
本文档基于腾讯云 IM Server SDK Java <Badge type="tip" text="v0.4.07" vertical="top" /> 编写。
3+
本文档基于腾讯云 IM Server SDK Java <Badge type="tip" text="v0.4.08" vertical="top" /> 编写。
44

55
## 前提条件
66

docs/guide/quickstart.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
<dependency>
1111
<groupId>io.github.doocs</groupId>
1212
<artifactId>im-server-sdk-java</artifactId>
13-
<version>0.4.07</version>
13+
<version>0.4.08</version>
1414
</dependency>
1515
```
1616

1717
### Gradle
1818

1919
```gradle
20-
implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.07'
20+
implementation group: 'io.github.doocs', name: 'im-server-sdk-java', version: '0.4.08'
2121
```
2222

2323
### 下载 JAR

package-lock.json

+1,572-775
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "qcloud-im-server-sdk-java",
3-
"version": "0.4.07",
3+
"version": "0.4.08",
44
"description": "腾讯云 IM 服务端 SDK API 文档 Java 版",
55
"main": "index.js",
66
"scripts": {
@@ -18,10 +18,11 @@
1818
},
1919
"homepage": "https://github.com/doocs/qcloud-im-server-sdk-java#readme",
2020
"devDependencies": {
21-
"@vuepress/bundler-vite": "^2.0.0-rc.13",
22-
"@vuepress/plugin-search": "^2.0.0-rc.13",
21+
"@vuepress/bundler-vite": "^2.0.0-rc.18",
22+
"@vuepress/plugin-search": "^2.0.0-rc.18",
2323
"@vuepress/theme-default": "^2.0.0-rc.35",
2424
"prettier": "2.8.8",
25-
"vuepress": "^2.0.0-rc.13"
25+
"sass-embedded": "^1.80.6",
26+
"vuepress": "^2.0.0-rc.18"
2627
}
2728
}

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.doocs</groupId>
88
<artifactId>im-server-sdk-java</artifactId>
9-
<version>0.4.07</version>
9+
<version>0.4.08</version>
1010
<packaging>jar</packaging>
1111

1212
<name>qcloud-im-server-sdk-java</name>

src/main/java/io/github/doocs/im/model/request/AndroidInfo.java

+152
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ public class AndroidInfo implements Serializable {
1818
@JsonProperty("Sound")
1919
private String sound;
2020

21+
/**
22+
* Android通知栏样式,“0”代表默认样式,“1”代表大文本样式,不填默认为0。仅对
23+
* 华为/荣耀/OPPO生效。
24+
*/
25+
@JsonProperty("PushStyle")
26+
private Integer pushStyle;
27+
2128
/**
2229
* 华为手机 EMUI 10.0 及以上的通知渠道字段。
2330
* 该字段不为空时,会覆盖控制台配置的 ChannelID 值;该字段为空时,不会覆盖控制台配置的 ChannelID 值。
@@ -52,6 +59,12 @@ public class AndroidInfo implements Serializable {
5259
@JsonProperty("VIVOClassification")
5360
private Integer vivoClassification;
5461

62+
/**
63+
* vivo 手机用来标识消息类型,该字段不为空时,会覆盖控制台配置的 category 值;该字段为空时,不会覆盖控制台配置的 category 值。
64+
*/
65+
@JsonProperty("VIVOCategory")
66+
private String vivoCategory;
67+
5568
/**
5669
* 华为推送通知消息分类,取值为 LOW、NORMAL,不填默认为 NORMAL。
5770
*/
@@ -65,15 +78,56 @@ public class AndroidInfo implements Serializable {
6578
@JsonProperty("ExtAsHuaweiIntentParam")
6679
private Integer extAsHuaweiIntentParam;
6780

81+
/**
82+
* 华为手机用来标识消息类型,该字段不为空时,会覆盖控制台配置的 category 值;该字段为空时,不会覆盖控制台配置的 category 值。
83+
*/
84+
@JsonProperty("HuaWeiCategory")
85+
private String huaweiCategory;
86+
87+
/**
88+
* 华为推送通知栏消息右侧小图标URL,URL必须使用HTTPS协议,取值样例:https://example.com/image.png。
89+
* 图片文件须小于512KB,规格建议为40dp x 40dp,弧角大小为8dp。超出建议规格的图片会存在图片压缩或图片显示不全的情况。
90+
* 图片格式建议使用JPG/JPEG/PNG。
91+
*/
92+
@JsonProperty("HuaWeiImage")
93+
private String huaweiImage;
94+
95+
/**
96+
* 荣耀推送通知栏消息右侧小图标 URL,URL 必须使用 HTTPS 协议,取值样例:https://example.com/image.png。
97+
* 图标文件须小于512KB,图标建议规格大小:40dp x 40dp,弧角大小为8dp,超出建议规格大小的图标会存在图片压缩或显示不全的情况。
98+
*/
99+
@JsonProperty("HonorImage")
100+
private String honorImage;
101+
102+
/**
103+
* 荣耀推送通知消息分类,取值为 LOW、NORMAL,不填默认为 NORMAL。
104+
*/
105+
@JsonProperty("HonorImportance")
106+
private String honorImportance;
107+
108+
/**
109+
* Google 推送通知栏消息右侧图标 URL,图片资源不超过1M,支持 JPG/JPEG/PNG 格式,
110+
* 取值样例:https://example.com/image.png。
111+
*/
112+
@JsonProperty("GoogleImage")
113+
private String googleImage;
114+
68115
private AndroidInfo(Builder builder) {
69116
this.sound = builder.sound;
117+
this.pushStyle = builder.pushStyle;
70118
this.huaweiChannelId = builder.huaweiChannelId;
71119
this.xiaomiChannelId = builder.xiaomiChannelId;
72120
this.oppoChannelId = builder.oppoChannelId;
73121
this.googleChannelId = builder.googleChannelId;
74122
this.vivoClassification = builder.vivoClassification;
123+
this.vivoCategory = builder.vivoCategory;
75124
this.huaweiImportance = builder.huaweiImportance;
76125
this.extAsHuaweiIntentParam = builder.extAsHuaweiIntentParam;
126+
this.huaweiCategory = builder.huaweiCategory;
127+
this.huaweiImage = builder.huaweiImage;
128+
this.honorImage = builder.honorImage;
129+
this.honorImportance = builder.honorImportance;
130+
this.googleImage = builder.googleImage;
77131
}
78132

79133
public static Builder builder() {
@@ -88,6 +142,14 @@ public void setSound(String sound) {
88142
this.sound = sound;
89143
}
90144

145+
public Integer getPushStyle() {
146+
return pushStyle;
147+
}
148+
149+
public void setPushStyle(Integer pushStyle) {
150+
this.pushStyle = pushStyle;
151+
}
152+
91153
public String getHuaweiChannelId() {
92154
return huaweiChannelId;
93155
}
@@ -128,6 +190,14 @@ public void setVivoClassification(Integer vivoClassification) {
128190
this.vivoClassification = vivoClassification;
129191
}
130192

193+
public String getVivoCategory() {
194+
return vivoCategory;
195+
}
196+
197+
public void setVivoCategory(String vivoCategory) {
198+
this.vivoCategory = vivoCategory;
199+
}
200+
131201
public String getHuaweiImportance() {
132202
return huaweiImportance;
133203
}
@@ -144,16 +214,63 @@ public void setExtAsHuaweiIntentParam(Integer extAsHuaweiIntentParam) {
144214
this.extAsHuaweiIntentParam = extAsHuaweiIntentParam;
145215
}
146216

217+
public String getHuaweiCategory() {
218+
return huaweiCategory;
219+
}
220+
221+
public void setHuaweiCategory(String huaweiCategory) {
222+
this.huaweiCategory = huaweiCategory;
223+
}
224+
225+
public String getHuaweiImage() {
226+
return huaweiImage;
227+
}
228+
229+
public void setHuaweiImage(String huaweiImage) {
230+
this.huaweiImage = huaweiImage;
231+
}
232+
233+
public String getHonorImage() {
234+
return honorImage;
235+
}
236+
237+
public void setHonorImage(String honorImage) {
238+
this.honorImage = honorImage;
239+
}
240+
241+
public String getHonorImportance() {
242+
return honorImportance;
243+
}
244+
245+
public void setHonorImportance(String honorImportance) {
246+
this.honorImportance = honorImportance;
247+
}
248+
249+
public String getGoogleImage() {
250+
return googleImage;
251+
}
252+
253+
public void setGoogleImage(String googleImage) {
254+
this.googleImage = googleImage;
255+
}
147256

148257
public static final class Builder {
149258
private String sound;
259+
private Integer pushStyle;
150260
private String huaweiChannelId;
151261
private String xiaomiChannelId;
152262
private String oppoChannelId;
153263
private String googleChannelId;
154264
private Integer vivoClassification;
265+
private String vivoCategory;
155266
private String huaweiImportance;
156267
private Integer extAsHuaweiIntentParam;
268+
private String huaweiCategory;
269+
private String huaweiImage;
270+
private String honorImage;
271+
private String honorImportance;
272+
private String googleImage;
273+
157274

158275
private Builder() {
159276
}
@@ -201,5 +318,40 @@ public Builder extAsHuaweiIntentParam(Integer extAsHuaweiIntentParam) {
201318
this.extAsHuaweiIntentParam = extAsHuaweiIntentParam;
202319
return this;
203320
}
321+
322+
public Builder pushStyle(Integer pushStyle) {
323+
this.pushStyle = pushStyle;
324+
return this;
325+
}
326+
327+
public Builder vivoCategory(String vivoCategory) {
328+
this.vivoCategory = vivoCategory;
329+
return this;
330+
}
331+
332+
public Builder huaweiCategory(String huaweiCategory) {
333+
this.huaweiCategory = huaweiCategory;
334+
return this;
335+
}
336+
337+
public Builder huaweiImage(String huaweiImage) {
338+
this.huaweiImage = huaweiImage;
339+
return this;
340+
}
341+
342+
public Builder honorImage(String honorImage) {
343+
this.honorImage = honorImage;
344+
return this;
345+
}
346+
347+
public Builder honorImportance(String honorImportance) {
348+
this.honorImportance = honorImportance;
349+
return this;
350+
}
351+
352+
public Builder googleImage(String googleImage) {
353+
this.googleImage = googleImage;
354+
return this;
355+
}
204356
}
205357
}

src/main/resources/version.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.4.07
1+
version=0.4.08

0 commit comments

Comments
 (0)