Skip to content

Commit

Permalink
build: release v0.4.08
Browse files Browse the repository at this point in the history
* update android info entity
* upgrade vuepress version
  • Loading branch information
yanglbme committed Nov 12, 2024
1 parent 7df8dd4 commit bbb307f
Show file tree
Hide file tree
Showing 9 changed files with 1,736 additions and 786 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you're using Maven, just add the following dependency in `pom.xml`.
<dependency>
<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.4.07</version>
<version>0.4.08</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<dependency>
<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.4.07</version>
<version>0.4.08</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion docs/guide/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 介绍

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

## 前提条件

Expand Down
4 changes: 2 additions & 2 deletions docs/guide/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<dependency>
<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.4.07</version>
<version>0.4.08</version>
</dependency>
```

### Gradle

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

### 下载 JAR
Expand Down
2,347 changes: 1,572 additions & 775 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qcloud-im-server-sdk-java",
"version": "0.4.07",
"version": "0.4.08",
"description": "腾讯云 IM 服务端 SDK API 文档 Java 版",
"main": "index.js",
"scripts": {
Expand All @@ -18,10 +18,11 @@
},
"homepage": "https://github.com/doocs/qcloud-im-server-sdk-java#readme",
"devDependencies": {
"@vuepress/bundler-vite": "^2.0.0-rc.13",
"@vuepress/plugin-search": "^2.0.0-rc.13",
"@vuepress/bundler-vite": "^2.0.0-rc.18",
"@vuepress/plugin-search": "^2.0.0-rc.18",
"@vuepress/theme-default": "^2.0.0-rc.35",
"prettier": "2.8.8",
"vuepress": "^2.0.0-rc.13"
"sass-embedded": "^1.80.6",
"vuepress": "^2.0.0-rc.18"
}
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.doocs</groupId>
<artifactId>im-server-sdk-java</artifactId>
<version>0.4.07</version>
<version>0.4.08</version>
<packaging>jar</packaging>

<name>qcloud-im-server-sdk-java</name>
Expand Down
152 changes: 152 additions & 0 deletions src/main/java/io/github/doocs/im/model/request/AndroidInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ public class AndroidInfo implements Serializable {
@JsonProperty("Sound")
private String sound;

/**
* Android通知栏样式,“0”代表默认样式,“1”代表大文本样式,不填默认为0。仅对
* 华为/荣耀/OPPO生效。
*/
@JsonProperty("PushStyle")
private Integer pushStyle;

/**
* 华为手机 EMUI 10.0 及以上的通知渠道字段。
* 该字段不为空时,会覆盖控制台配置的 ChannelID 值;该字段为空时,不会覆盖控制台配置的 ChannelID 值。
Expand Down Expand Up @@ -52,6 +59,12 @@ public class AndroidInfo implements Serializable {
@JsonProperty("VIVOClassification")
private Integer vivoClassification;

/**
* vivo 手机用来标识消息类型,该字段不为空时,会覆盖控制台配置的 category 值;该字段为空时,不会覆盖控制台配置的 category 值。
*/
@JsonProperty("VIVOCategory")
private String vivoCategory;

/**
* 华为推送通知消息分类,取值为 LOW、NORMAL,不填默认为 NORMAL。
*/
Expand All @@ -65,15 +78,56 @@ public class AndroidInfo implements Serializable {
@JsonProperty("ExtAsHuaweiIntentParam")
private Integer extAsHuaweiIntentParam;

/**
* 华为手机用来标识消息类型,该字段不为空时,会覆盖控制台配置的 category 值;该字段为空时,不会覆盖控制台配置的 category 值。
*/
@JsonProperty("HuaWeiCategory")
private String huaweiCategory;

/**
* 华为推送通知栏消息右侧小图标URL,URL必须使用HTTPS协议,取值样例:https://example.com/image.png。
* 图片文件须小于512KB,规格建议为40dp x 40dp,弧角大小为8dp。超出建议规格的图片会存在图片压缩或图片显示不全的情况。
* 图片格式建议使用JPG/JPEG/PNG。
*/
@JsonProperty("HuaWeiImage")
private String huaweiImage;

/**
* 荣耀推送通知栏消息右侧小图标 URL,URL 必须使用 HTTPS 协议,取值样例:https://example.com/image.png。
* 图标文件须小于512KB,图标建议规格大小:40dp x 40dp,弧角大小为8dp,超出建议规格大小的图标会存在图片压缩或显示不全的情况。
*/
@JsonProperty("HonorImage")
private String honorImage;

/**
* 荣耀推送通知消息分类,取值为 LOW、NORMAL,不填默认为 NORMAL。
*/
@JsonProperty("HonorImportance")
private String honorImportance;

/**
* Google 推送通知栏消息右侧图标 URL,图片资源不超过1M,支持 JPG/JPEG/PNG 格式,
* 取值样例:https://example.com/image.png。
*/
@JsonProperty("GoogleImage")
private String googleImage;

private AndroidInfo(Builder builder) {
this.sound = builder.sound;
this.pushStyle = builder.pushStyle;
this.huaweiChannelId = builder.huaweiChannelId;
this.xiaomiChannelId = builder.xiaomiChannelId;
this.oppoChannelId = builder.oppoChannelId;
this.googleChannelId = builder.googleChannelId;
this.vivoClassification = builder.vivoClassification;
this.vivoCategory = builder.vivoCategory;
this.huaweiImportance = builder.huaweiImportance;
this.extAsHuaweiIntentParam = builder.extAsHuaweiIntentParam;
this.huaweiCategory = builder.huaweiCategory;
this.huaweiImage = builder.huaweiImage;
this.honorImage = builder.honorImage;
this.honorImportance = builder.honorImportance;
this.googleImage = builder.googleImage;
}

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

public Integer getPushStyle() {
return pushStyle;
}

public void setPushStyle(Integer pushStyle) {
this.pushStyle = pushStyle;
}

public String getHuaweiChannelId() {
return huaweiChannelId;
}
Expand Down Expand Up @@ -128,6 +190,14 @@ public void setVivoClassification(Integer vivoClassification) {
this.vivoClassification = vivoClassification;
}

public String getVivoCategory() {
return vivoCategory;
}

public void setVivoCategory(String vivoCategory) {
this.vivoCategory = vivoCategory;
}

public String getHuaweiImportance() {
return huaweiImportance;
}
Expand All @@ -144,16 +214,63 @@ public void setExtAsHuaweiIntentParam(Integer extAsHuaweiIntentParam) {
this.extAsHuaweiIntentParam = extAsHuaweiIntentParam;
}

public String getHuaweiCategory() {
return huaweiCategory;
}

public void setHuaweiCategory(String huaweiCategory) {
this.huaweiCategory = huaweiCategory;
}

public String getHuaweiImage() {
return huaweiImage;
}

public void setHuaweiImage(String huaweiImage) {
this.huaweiImage = huaweiImage;
}

public String getHonorImage() {
return honorImage;
}

public void setHonorImage(String honorImage) {
this.honorImage = honorImage;
}

public String getHonorImportance() {
return honorImportance;
}

public void setHonorImportance(String honorImportance) {
this.honorImportance = honorImportance;
}

public String getGoogleImage() {
return googleImage;
}

public void setGoogleImage(String googleImage) {
this.googleImage = googleImage;
}

public static final class Builder {
private String sound;
private Integer pushStyle;
private String huaweiChannelId;
private String xiaomiChannelId;
private String oppoChannelId;
private String googleChannelId;
private Integer vivoClassification;
private String vivoCategory;
private String huaweiImportance;
private Integer extAsHuaweiIntentParam;
private String huaweiCategory;
private String huaweiImage;
private String honorImage;
private String honorImportance;
private String googleImage;


private Builder() {
}
Expand Down Expand Up @@ -201,5 +318,40 @@ public Builder extAsHuaweiIntentParam(Integer extAsHuaweiIntentParam) {
this.extAsHuaweiIntentParam = extAsHuaweiIntentParam;
return this;
}

public Builder pushStyle(Integer pushStyle) {
this.pushStyle = pushStyle;
return this;
}

public Builder vivoCategory(String vivoCategory) {
this.vivoCategory = vivoCategory;
return this;
}

public Builder huaweiCategory(String huaweiCategory) {
this.huaweiCategory = huaweiCategory;
return this;
}

public Builder huaweiImage(String huaweiImage) {
this.huaweiImage = huaweiImage;
return this;
}

public Builder honorImage(String honorImage) {
this.honorImage = honorImage;
return this;
}

public Builder honorImportance(String honorImportance) {
this.honorImportance = honorImportance;
return this;
}

public Builder googleImage(String googleImage) {
this.googleImage = googleImage;
return this;
}
}
}
2 changes: 1 addition & 1 deletion src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.4.07
version=0.4.08

0 comments on commit bbb307f

Please sign in to comment.