Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some missing apns keys and update dependencies #102

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.8.1</version>
<version>5.11.0-M1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand All @@ -38,19 +38,19 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.17.0</version>
<version>2.17.1</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.17.0</version>
<version>2.17.1</version>
</dependency>

<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.11</version>
<version>1.17.0</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -113,7 +113,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<version>3.2.4</version>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
Expand Down Expand Up @@ -151,16 +151,16 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.13.0</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>3.2.5</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -173,7 +173,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.7</version>
<version>3.6.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand All @@ -187,7 +187,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.2.0</version>
<version>3.7.1</version>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
Expand Down
49 changes: 49 additions & 0 deletions src/main/java/com/clevertap/apns/Notification.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,56 @@ public Builder alertBody(String body) {
return this;
}

public Builder alertLocKey(String locKey) {
alert.put("loc-key", locKey);
return this;
}

public Builder alertLocArgs(String[] locArgs) {
alert.put("loc-args", locArgs);
return this;
}

public Builder alertTitle(String title) {
alert.put("title", title);
return this;
}

public Builder alertTitleLocKey(String titleLocKey) {
alert.put("title-loc-key", titleLocKey);
return this;
}

public Builder alertTitleLocArgs(String[] titleLocArgs) {
alert.put("title-loc-args", titleLocArgs);
return this;
}

public Builder alertSubtitle(String subtitle) {
alert.put("subtitle", subtitle);
return this;
}

public Builder alertSubtitleLocKey(String subtitleLocKey) {
alert.put("subtitle-loc-key", subtitleLocKey);
return this;
}

public Builder alertSubtitleLocArgs(String[] subtitleLocArgs) {
alert.put("subtitle-loc-args", subtitleLocArgs);
return this;
}

public Builder actionLocKey(String actionLocKey) {
alert.put("action-loc-key", actionLocKey);
return this;
}

public Builder launchImage(String launchImage) {
alert.put("launch-image", launchImage);
return this;
}

public Builder urlArgs(String[] args) {
aps.put("url-args", args);
return this;
Expand Down Expand Up @@ -303,6 +348,10 @@ public Builder interruptionLevel(InterruptionLevel interruptionLevel) {
return this;
}

public Builder threadId(String threadId) {
aps.put("thread-id", threadId);
return this;
}

public int size() {
try {
Expand Down