Skip to content

Commit

Permalink
SDK and Sample v3.6.22
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Nedzynski committed Feb 8, 2021
1 parent ff0cd85 commit 67a40a7
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
20 changes: 14 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,37 @@
# Changelog
All notable changes to this project will be documented in this file.
## [3.6.22] - 2021-02-08
### Added
- `SyneriseListener` as a callback. Called when Synerise sdk initialization is completed.
- 'hostApplicationType' to Synerise builder.
- Sending app Started event after first change of setting: sdk.enable
### Fixed
- RuntimeException on TimeChangedReceiver

## [3.6.21] - 2021-01-21
## Added
### Added
- `backgroundRestricted` field to appStarted event
## Changed
### Changed
- ACCESS FINE LOCATION is no longer required by sdk

## Fixed
### Fixed
- System time change during session will not affect events time
- Currency issues on ContentWidget
- autotracking fix: Stop counting fragments/activities with no view

## [3.6.20] - 2020-12-04
## Changed
### Changed
- Upgrade of FCM dependencies
- Upgrade of AGP
- Added retry mechanism on image downloading in push notifications

## [3.6.19] - 2020-11-23
## Added
### Added
- `WalkthroughResponse` returned in Walkthrough callback `onLoaded`
- `deleteAccount` method
- `isBackendTimeSyncRequired` property in `TrackerSettings`

## Changed
### Changed
- Information about device root is moved to applicationStarted event

## [3.6.18] - 2020-10-08
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ apply plugin: 'com.android.application'
dependencies {
...
// Synerise Android SDK
implementation 'com.synerise.sdk:synerise-mobile-sdk:3.6.20'
implementation 'com.synerise.sdk:synerise-mobile-sdk:3.6.22'
}
```

Expand Down
6 changes: 3 additions & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
minSdkVersion 21
targetSdkVersion 29
applicationId "com.synerise.sample"
versionCode 90
versionName "3.6.21"
versionCode 91
versionName "3.6.22"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
Expand Down Expand Up @@ -62,7 +62,7 @@ android {

ext {
daggerVersion = '2.16'
syneriseVersion = '3.6.21'
syneriseVersion = '3.6.22'
}

dependencies {
Expand Down
12 changes: 11 additions & 1 deletion sample/src/main/java/com/synerise/sdk/sample/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
import com.synerise.sdk.core.Synerise;
import com.synerise.sdk.core.listeners.OnLocationUpdateListener;
import com.synerise.sdk.core.listeners.OnRegisterForPushListener;
import com.synerise.sdk.core.listeners.SyneriseListener;
import com.synerise.sdk.core.net.IApiCall;
import com.synerise.sdk.core.types.enums.HostApplicationType;
import com.synerise.sdk.core.types.enums.TrackMode;
import com.synerise.sdk.core.utils.SystemUtils;
import com.synerise.sdk.injector.callback.InjectorSource;
Expand All @@ -39,7 +41,8 @@
public class App extends MultiDexApplication
implements OnInjectorListener, // optional action callback
OnRegisterForPushListener,
OnLocationUpdateListener {
OnLocationUpdateListener,
SyneriseListener {

private static final String TAG = App.class.getSimpleName();

Expand Down Expand Up @@ -87,11 +90,13 @@ private void initSynerise() {
.crashHandlingEnabled(true)
.pushRegistrationRequired(this)
.locationUpdateRequired(this)
.initializationListener(this)
.notificationDefaultChannelId(CHANNEL_ID)
.notificationDefaultChannelName(CHANNEL_NAME)
.notificationHighPriorityChannelId(CHANNEL_HIGH_PRIORITY_ID)
.notificationHighPriorityChannelName(CHANNEL_HIGH_PRIORITY_NAME)
.baseUrl(null)
.hostApplicationType(HostApplicationType.NATIVE_ANDROID)
.build();
}

Expand Down Expand Up @@ -135,4 +140,9 @@ public boolean onDeepLink(InjectorSource source, String deepLink) {
SystemUtils.openDeepLink(this, deepLink); // default behavior
return source != InjectorSource.WALKTHROUGH; // default behavior
}

@Override
public void onInitializationCompleted() {
// your action here
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
}

private void sdkEnable(boolean enabled) {
Synerise.settings.sdk.enabled = enabled;
Synerise.settings.sdk.setSDKEnabled(enabled);
settingChosen.setText("sdk enabled = " + enabled);
}

Expand Down

0 comments on commit 67a40a7

Please sign in to comment.