Skip to content

Commit

Permalink
update version to 5.1.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
wicked-tc130 committed Sep 9, 2024
1 parent c2d0245 commit 84b6b29
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
## 1. 集成
引入sdk包
```xml
<!--以5.1.6版本为例-->
<!--以5.1.7版本为例-->
<dependencies>
<!-- jiguang-sdk -->
<dependency>
<groupId>io.github.jpush</groupId>
<artifactId>jiguang-sdk</artifactId>
<version>5.1.6</version>
<version>5.1.7</version>
</dependency>
</dependencies>
```
Expand Down
4 changes: 2 additions & 2 deletions example-for-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>io.github.jpush</groupId>
<artifactId>example-for-spring</artifactId>
<version>5.1.6</version>
<version>5.1.7</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand All @@ -26,7 +26,7 @@
<dependency>
<groupId>io.github.jpush</groupId>
<artifactId>jiguang-sdk</artifactId>
<version>5.1.6</version>
<version>5.1.7</version>
</dependency>
<!-- lombok -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public void setTag() {
String tag = "13111111111";
TagSetParam.RegistrationIds registrationIds = new TagSetParam.RegistrationIds();
registrationIds.setAdd(Arrays.asList("1104a89793af2cfc030", "1104a89793af2cfc030"));
// registrationIds.setRemove(Arrays.asList("1104a89793af2cfc030", "1104a89793af2cfc030"));
TagSetParam param = new TagSetParam();
param.setRegistrationIds(registrationIds);
deviceApi.setTag(tag, param);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import cn.jiguang.sdk.bean.push.batch.BatchPushParam;
import cn.jiguang.sdk.bean.push.batch.BatchPushSendParam;
import cn.jiguang.sdk.bean.push.batch.BatchPushSendResult;
import cn.jiguang.sdk.bean.push.callback.Callback;
import cn.jiguang.sdk.bean.push.message.notification.NotificationMessage;
import cn.jiguang.sdk.bean.push.options.Options;
import cn.jiguang.sdk.bean.push.other.CidGetResult;
Expand Down Expand Up @@ -110,6 +111,12 @@ public void send() {
options.setThirdPartyChannel(thirdPartyMap);
param.setOptions(options);

Map<String, Object> callbackParams = new HashMap<>();
callbackParams.put("callbackKey", "callbackValue");
Callback callback = new Callback();
callback.setParams(callbackParams);
param.setCallback(callback);

// 发送
PushSendResult result = pushApi.send(param);
log.info("result:{}", result);
Expand Down
4 changes: 2 additions & 2 deletions jiguang-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<parent>
<groupId>io.github.jpush</groupId>
<artifactId>jiguang-sdk-java</artifactId>
<version>5.1.6</version>
<version>5.1.7</version>
<relativePath>../pom.xml</relativePath>
</parent>

<groupId>io.github.jpush</groupId>
<artifactId>jiguang-sdk</artifactId>
<version>5.1.6</version>
<version>5.1.7</version>
<packaging>jar</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package cn.jiguang.sdk.bean.device;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

Expand All @@ -14,9 +15,11 @@ public class TagSetParam {
@Data
public static class RegistrationIds {
@JsonProperty("add")
@JsonInclude(JsonInclude.Include.NON_NULL)
private List<String> add;

@JsonProperty("remove")
@JsonInclude(JsonInclude.Include.NON_NULL)
private List<String> remove;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
public class Callback {

@JsonProperty("url")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String url;

/**
Expand Down
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.jpush</groupId>
<artifactId>jiguang-sdk-java</artifactId>
<version>5.1.6</version>
<version>5.1.7</version>
<packaging>pom</packaging>

<name>Jiguang SDK For Rest Api</name>
Expand Down

0 comments on commit 84b6b29

Please sign in to comment.