Skip to content

Commit a96b43d

Browse files
authored
Merge pull request #59 from XDex/TNT-43949
TNT-43949 Update ECID-service to fix NFE in parsing expiry values from AMCV cookie
2 parents 2d820e6 + ecfd45d commit a96b43d

6 files changed

Lines changed: 10 additions & 31 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [2.2.2] - 2022-03-30
5+
### Fixed
6+
- Updated ECID-service dependency to fix parsing expiry values from AMCV cookie
7+
- Add ClientHints to Delivery API model in preparation for ClientHints support
8+
49
## [2.2.1] - 2022-03-10
510
### Fixed
611
- Fixed incorrect logic for execution mode calculation.
712
- Always use context.beacon=false for sendNotifications() calls.
813

9-
10-
1114
## [2.2.0] - 2022-01-24
1215
### Added
1316
- Added SDK telemetry data collection.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ Analytics.
1919

2020
To get started with Target Java SDK, just add it as a dependency in `gradle` as:
2121
```groovy
22-
implementation 'com.adobe.target:target-java-sdk:2.2.1'
22+
implementation 'com.adobe.target:target-java-sdk:2.2.2'
2323
```
2424
or `maven` as:
2525
```xml
2626
<dependency>
2727
<groupId>com.adobe.target</groupId>
2828
<artifactId>target-java-sdk</artifactId>
29-
<version>2.2.1 </version>
29+
<version>2.2.2</version>
3030
</dependency>
3131
```
3232

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ signing {
132132
}
133133

134134
dependencies {
135-
api "com.adobe.experiencecloud.ecid:ecid-service:1.0.2"
135+
api "com.adobe.experiencecloud.ecid:ecid-service:1.0.3"
136136
implementation "org.slf4j:slf4j-api:1.7.30"
137137
implementation "com.fasterxml.jackson.core:jackson-annotations:2.11.3"
138138
implementation "com.fasterxml.jackson.core:jackson-core:2.11.3"

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group=com.adobe.target
2-
version=2.2.1
2+
version=2.2.2
33
mavenCentralUrl=https://oss.sonatype.org/service/local/staging/deploy/maven2
44
pomDescription=Adobe Target Java SDK
55
pomURL=https://docs.adobe.com/content/help/en/target/using/implement-target/server-side/api-and-sdk-overview.html

src/main/java/com/adobe/target/delivery/v1/model/Context.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ public class Context {
5151
@JsonProperty("userAgent")
5252
private String userAgent;
5353

54-
@JsonProperty("clientHints")
55-
private ClientHints clientHints;
56-
5754
@JsonProperty("beacon")
5855
private Boolean beacon = false;
5956

@@ -237,24 +234,6 @@ public void setUserAgent(String userAgent) {
237234
this.userAgent = userAgent;
238235
}
239236

240-
public Context clientHints(ClientHints clientHints) {
241-
this.clientHints = clientHints;
242-
return this;
243-
}
244-
245-
/**
246-
* Get clientHints
247-
*
248-
* @return clientHints
249-
*/
250-
public ClientHints getClientHints() {
251-
return clientHints;
252-
}
253-
254-
public void setClientHints(ClientHints clientHints) {
255-
this.clientHints = clientHints;
256-
}
257-
258237
public Context beacon(Boolean beacon) {
259238
this.beacon = beacon;
260239
return this;
@@ -293,7 +272,6 @@ public boolean equals(Object o) {
293272
&& Objects.equals(this.geo, context.geo)
294273
&& Objects.equals(this.timeOffsetInMinutes, context.timeOffsetInMinutes)
295274
&& Objects.equals(this.userAgent, context.userAgent)
296-
&& Objects.equals(this.clientHints, context.clientHints)
297275
&& Objects.equals(this.beacon, context.beacon);
298276
}
299277

@@ -310,7 +288,6 @@ public int hashCode() {
310288
geo,
311289
timeOffsetInMinutes,
312290
userAgent,
313-
clientHints,
314291
beacon);
315292
}
316293

@@ -330,7 +307,6 @@ public String toString() {
330307
.append(toIndentedString(timeOffsetInMinutes))
331308
.append("\n");
332309
sb.append(" userAgent: ").append(toIndentedString(userAgent)).append("\n");
333-
sb.append(" clientHints: ").append(toIndentedString(clientHints)).append("\n");
334310
sb.append(" beacon: ").append(toIndentedString(beacon)).append("\n");
335311
sb.append("}");
336312
return sb.toString();

src/main/java/com/adobe/target/edge/client/utils/TargetConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ public class TargetConstants {
1515

1616
public static final String COOKIE_NAME = "mbox";
1717
public static final String CLUSTER_COOKIE_NAME = "mboxEdgeCluster";
18-
public static final String SDK_VERSION = "2.2.1";
18+
public static final String SDK_VERSION = "2.2.2";
1919
}

0 commit comments

Comments
 (0)