Skip to content

Commit

Permalink
(For David) Add app browser support to logout (#33)
Browse files Browse the repository at this point in the history
* Add app browser support to logout

* add logout change to changelog
  • Loading branch information
hd authored Oct 29, 2018
1 parent 8aa50ab commit ee460d1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions CHANGES.MD
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
2.4.0 (2018-10-22)
2.4.0 (2018-10-24)
=================
- Add support for `$app` and `$browser` to the following events: `AddItemToCart`, `AddPromotion`, `CreateAccount`, `CreateContent`, `CreateOrder`, `CustomEvent`, `RemoveItemFromCart`, `Transaction`, `UpdateAccount`, and `UpdateContent`
- Add support for Rescore User and Get User Score APIs
- Add support for `$app` and `$browser` to the following events: `AddItemToCart`, `AddPromotion`, `CreateAccount`, `CreateContent`, `CreateOrder`, `CustomEvent`, `Logout`, `RemoveItemFromCart`, `Transaction`, `UpdateAccount`, and `UpdateContent`
- Upgrade okhttp3 to 3.4.2

2.3.0 (2018-08-08)
=================
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Java 1.7 or later.
<dependency>
<groupId>com.siftscience</groupId>
<artifactId>sift-java</artifactId>
<version>2.1.0</version>
<version>2.4.0</version>
</dependency>
```
### Gradle
```
dependencies {
compile 'com.siftscience:sift-java:2.1.0'
compile 'com.siftscience:sift-java:2.4.0'
}
```
### Other
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/siftscience/model/LogoutFieldSet.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.siftscience.model;

public class LogoutFieldSet extends EventsApiRequestFieldSet<LogoutFieldSet> {
public class LogoutFieldSet extends BaseAppBrowserFieldSet<LogoutFieldSet> {
public static LogoutFieldSet fromJson(String json) {
return gson.fromJson(json, LogoutFieldSet.class);
}
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/com/siftscience/BaseAppBrowserFieldSetTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.siftscience.model.CreateReviewFieldSet;
import com.siftscience.model.CustomEventFieldSet;
import com.siftscience.model.LoginFieldSet;
import com.siftscience.model.LogoutFieldSet;
import com.siftscience.model.RemoveItemFromCartFieldSet;
import com.siftscience.model.TransactionFieldSet;
import com.siftscience.model.UpdateAccountFieldSet;
Expand Down Expand Up @@ -67,6 +68,7 @@ public void testAllSubclasses() {
CreateReviewFieldSet.class,
CustomEventFieldSet.class,
LoginFieldSet.class,
LogoutFieldSet.class,
RemoveItemFromCartFieldSet.class,
TransactionFieldSet.class,
UpdateAccountFieldSet.class,
Expand Down

0 comments on commit ee460d1

Please sign in to comment.