Skip to content

Commit 2437ca0

Browse files
author
zhanq
committed
update notification extras, and update version to 5.0.2.
1 parent f558882 commit 2437ca0

File tree

5 files changed

+8
-27
lines changed

5 files changed

+8
-27
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
## 1. 集成
1515
引入sdk包
1616
```xml
17-
<!--以5.0.1版本为例-->
17+
<!--以5.0.2版本为例-->
1818
<dependencies>
1919
<!-- jiguang-sdk -->
2020
<dependency>
2121
<groupId>io.github.jpush</groupId>
2222
<artifactId>jiguang-sdk</artifactId>
23-
<version>5.0.1</version>
23+
<version>5.0.2</version>
2424
</dependency>
2525
</dependencies>
2626
```

example-for-spring/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
<groupId>io.github.jpush</groupId>
1515
<artifactId>example-for-spring</artifactId>
16-
<version>5.0.1</version>
16+
<version>5.0.2</version>
1717

1818
<properties>
1919
<maven.compiler.source>8</maven.compiler.source>
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>io.github.jpush</groupId>
2828
<artifactId>jiguang-sdk</artifactId>
29-
<version>5.0.1</version>
29+
<version>5.0.2</version>
3030
</dependency>
3131
<!-- lombok -->
3232
<dependency>

jiguang-sdk/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
<parent>
88
<groupId>io.github.jpush</groupId>
99
<artifactId>jiguang-sdk-java</artifactId>
10-
<version>5.0.1</version>
10+
<version>5.0.2</version>
1111
<relativePath>../pom.xml</relativePath>
1212
</parent>
1313

1414
<groupId>io.github.jpush</groupId>
1515
<artifactId>jiguang-sdk</artifactId>
16-
<version>5.0.1</version>
16+
<version>5.0.2</version>
1717
<packaging>jar</packaging>
1818

1919
<properties>

jiguang-sdk/src/main/java/cn/jiguang/sdk/bean/push/message/notification/NotificationMessage.java

+1-20
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static class Android {
8888

8989
@JsonProperty("extras")
9090
@JsonInclude(JsonInclude.Include.NON_NULL)
91-
private Extras extras;
91+
private Map<String, Object> extras;
9292

9393
@JsonProperty("large_icon")
9494
@JsonInclude(JsonInclude.Include.NON_NULL)
@@ -140,25 +140,6 @@ public static class Android {
140140
@JsonInclude(JsonInclude.Include.NON_NULL)
141141
private Integer displayForeground;
142142

143-
@Data
144-
public static class Extras {
145-
@JsonProperty("mipns_content_forshort")
146-
@JsonInclude(JsonInclude.Include.NON_NULL)
147-
private String xiaomiContent;
148-
149-
@JsonProperty("mzpns_content_forshort")
150-
@JsonInclude(JsonInclude.Include.NON_NULL)
151-
private String meizuContent;
152-
153-
@JsonProperty("oppns_content_forshort")
154-
@JsonInclude(JsonInclude.Include.NON_NULL)
155-
private String oppoContent;
156-
157-
@JsonProperty("vpns_content_forshort")
158-
@JsonInclude(JsonInclude.Include.NON_NULL)
159-
private String vivoContent;
160-
}
161-
162143
@Data
163144
public static class Intent {
164145
@JsonProperty("url")

pom.xml

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

77
<groupId>io.github.jpush</groupId>
88
<artifactId>jiguang-sdk-java</artifactId>
9-
<version>5.0.1</version>
9+
<version>5.0.2</version>
1010
<packaging>pom</packaging>
1111

1212
<name>Jiguang SDK For Rest Api</name>

0 commit comments

Comments
 (0)