Skip to content

Commit

Permalink
SDK and Sample v5.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad committed Jul 2, 2024
1 parent d6aa509 commit 13c7e53
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.
## [5.19.0] - 2024-07-01
### Added:
- `testDelivery` and `journeyId` parameters to all push events.
- context parameters to screenViews and documents. There are two additional methods.
- validation of reserved parameters in events. ReservedKeys will not be send. Only error log will be printed to logcat.

## [5.18.1] - 2024-06-19
### Fixed:
- `com.google.gson.JsonIOException` when calling getDocument.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Synerise Android SDK (v5.18.1)
# Synerise Android SDK (v5.19.0)

[![Platform](https://img.shields.io/badge/platform-Android-orange.svg)](https://github.com/synerise/android-sdk)
[![Languages](https://img.shields.io/badge/language-Java-orange.svg)](https://github.com/synerise/android-sdk)
Expand Down
6 changes: 3 additions & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
minSdkVersion 21
targetSdkVersion 33
applicationId "com.synerise.sample"
versionCode 247
versionName "5.18.1"
versionCode 250
versionName "5.19.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
Expand Down Expand Up @@ -81,7 +81,7 @@ android {

ext {
daggerVersion = '2.16'
syneriseVersion = '5.18.1'
syneriseVersion = '5.19.0'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;

import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
Expand All @@ -24,12 +25,20 @@
import com.synerise.sdk.client.model.listener.OnClientStateChangeListener;

import com.synerise.sdk.content.Content;
import com.synerise.sdk.content.model.document.Document;
import com.synerise.sdk.content.model.document.DocumentApiQuery;
import com.synerise.sdk.content.model.recommendation.RecommendationRequestBody;
import com.synerise.sdk.content.model.screenview.ScreenView;
import com.synerise.sdk.content.model.screenview.ScreenViewApiQuery;
import com.synerise.sdk.core.listeners.ActionListener;
import com.synerise.sdk.core.listeners.DataActionListener;
import com.synerise.sdk.core.net.IDataApiCall;
import com.synerise.sdk.core.types.enums.ClientSessionEndReason;
import com.synerise.sdk.core.types.enums.ClientSignOutMode;
import com.synerise.sdk.error.ApiError;
import com.synerise.sdk.event.Tracker;
import com.synerise.sdk.event.TrackerParams;
import com.synerise.sdk.event.model.CustomEvent;
import com.synerise.sdk.sample.App;
import com.synerise.sdk.sample.R;
import com.synerise.sdk.sample.model.LoyaltyPoints;
Expand Down Expand Up @@ -216,13 +225,15 @@ public boolean onNavigationItemSelected(@NonNull MenuItem item) {
Client.signOut(ClientSignOutMode.SIGN_OUT, false).execute(new ActionListener() {
@Override
public void onAction() {
if (!(currentFragment instanceof SectionsFragment)) changeFragment(SECTIONS);
if (!(currentFragment instanceof SectionsFragment))
changeFragment(SECTIONS);
handleSigningVisibility();
}
}, new DataActionListener<ApiError>() {
@Override
public void onDataAction(ApiError data) {
if (!(currentFragment instanceof SectionsFragment)) changeFragment(SECTIONS);
if (!(currentFragment instanceof SectionsFragment))
changeFragment(SECTIONS);
handleSigningVisibility();
}
});
Expand Down

0 comments on commit 13c7e53

Please sign in to comment.