Skip to content

Commit

Permalink
Release of version 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Kurzawa committed Aug 5, 2024
1 parent b708c43 commit 28109c7
Show file tree
Hide file tree
Showing 16 changed files with 219 additions and 135 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.3.0] - 2024-08-05

### Fixed
- [iOS] Potential issue with slow SDK initialization.
- [iOS] Potential issues with Simple Authentication requests.

### Added
- We extended a `Synerise.changeClientApiKey(apiKey, config)` method and added new parameter (`config`) that allows adding some initialization parameters.
- We added new parameters to the push.click event: `clickSource`, `actionType`, `url` and `actionButtonTitle`.

### Changed
- `requestValidationSalt` (Simple Auth) is cleared when `Synerise.changeClientApiKey(apiKey, config)` is invoked without suitable config.
- Update of native SDK's dependencies.
- Improvements to stability.

## [1.2.0] - 2024-07-15

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Synerise Flutter SDK (synerise-flutter-sdk) (1.2.0)
# Synerise Flutter SDK (synerise-flutter-sdk) (1.3.0)

[![Platform](https://img.shields.io/badge/platform-iOS-orange.svg)](https://github.com/synerise/ios-sdk)
[![Platform](https://img.shields.io/badge/platform-Android-orange.svg)](https://github.com/synerise/android-sdk)
Expand Down Expand Up @@ -40,7 +40,7 @@ This will add a line like this to your package's pubspec.yaml (and run an implic

```
dependencies:
synerise_flutter_sdk: ^1.0.2
synerise_flutter_sdk: ^1.3.0
```

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ repositories {
}

dependencies {
implementation 'com.synerise.sdk:synerise-mobile-sdk:5.19.0'
implementation 'com.synerise.sdk:synerise-mobile-sdk:5.20.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
import android.util.Log;

import com.synerise.sdk.client.Client;
import com.synerise.sdk.client.model.client.Agreements;
import com.synerise.sdk.core.Synerise;
import com.synerise.sdk.core.types.enums.HostApplicationType;
import com.synerise.sdk.core.types.model.InitializationConfig;
import com.synerise.synerise_flutter_sdk.SyneriseConnector;
import com.synerise.synerise_flutter_sdk.SyneriseModule;

Expand All @@ -18,9 +20,10 @@
import io.flutter.plugin.common.MethodChannel;

public class SyneriseInitializer implements SyneriseModule {
private static String sdkPluginVersion = "1.2.0";
private static String sdkPluginVersion = "1.3.0";
private static SyneriseInitializer instance;
protected static volatile boolean isInitialized = false;

public SyneriseInitializer() {
}

Expand Down Expand Up @@ -63,16 +66,20 @@ public void initSynerise(Application app, MethodCall call, MethodChannel.Result
public void changeApiKey(MethodCall call, MethodChannel.Result result) {
Map data = (Map) call.arguments;
String apiKey = null;

InitializationConfig initializationConfig = null;
if (data != null && data.containsKey("apiKey")) {
apiKey = (String) data.get("apiKey");
} else {
result.error("apiKey missing", null, null);
return;
}

Client.changeApiKey(apiKey);
SyneriseModule.executeSuccessResult(true,result);
if (data != null && data.containsKey("config")) {
initializationConfig = configMapper((Map) data.get("config"));
}

Client.changeApiKey(apiKey, initializationConfig);
SyneriseModule.executeSuccessResult(true, result);
}

private static void prepareDefaultSettings() {
Expand All @@ -85,4 +92,16 @@ public static SyneriseInitializer getInstance() {
}
return instance;
}

private static InitializationConfig configMapper(Map map) {
if (map != null) {
InitializationConfig initializationConfig = new InitializationConfig();
if (map.containsKey("requestValidationSalt") && map.get("requestValidationSalt") != null) {
initializationConfig.setSalt((String) map.get("requestValidationSalt"));
}
return initializationConfig;
} else {
return null;
}
}
}
6 changes: 3 additions & 3 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ end

target 'SyneriseNotificationServiceExtension' do

pod 'SyneriseSDK', '4.18.2'
pod 'SyneriseSDK', '4.19.1'

end

target 'SyneriseSingleMediaNotificationContentExtension' do

pod 'SyneriseSDK', '4.18.2'
pod 'SyneriseSDK', '4.19.1'

end

target 'SyneriseCarouselNotificationContentExtension' do

pod 'SyneriseSDK', '4.18.2'
pod 'SyneriseSDK', '4.19.1'

end

Expand Down
14 changes: 7 additions & 7 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,18 @@ PODS:
- nanopb/decode (2.30909.1)
- nanopb/encode (2.30909.1)
- PromisesObjC (2.4.0)
- synerise_flutter_sdk (1.0.2):
- synerise_flutter_sdk (1.3.0):
- Flutter
- SyneriseSDK (= 4.18.2)
- SyneriseSDK (4.18.2)
- SyneriseSDK (= 4.19.1)
- SyneriseSDK (4.19.1)

DEPENDENCIES:
- firebase_analytics (from `.symlinks/plugins/firebase_analytics/ios`)
- firebase_core (from `.symlinks/plugins/firebase_core/ios`)
- firebase_messaging (from `.symlinks/plugins/firebase_messaging/ios`)
- Flutter (from `Flutter`)
- synerise_flutter_sdk (from `.symlinks/plugins/synerise_flutter_sdk/ios`)
- SyneriseSDK (= 4.18.2)
- SyneriseSDK (= 4.19.1)

SPEC REPOS:
trunk:
Expand Down Expand Up @@ -173,9 +173,9 @@ SPEC CHECKSUMS:
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
synerise_flutter_sdk: a23402bdae88979d8899a4f49cda1b42b2bb06d1
SyneriseSDK: b688556cf12498cc94459ca90ea002fa3b21b401
synerise_flutter_sdk: 306fc2419e8bf5b790c360e0c0539801bff4af3d
SyneriseSDK: 3f22378a01be8236f9c3941e48208445b7b11eac

PODFILE CHECKSUM: cb21b30515252236c092dd55ff32693742254343
PODFILE CHECKSUM: c5a60b1751cae32094dbccc28a827d83bdccd32f

COCOAPODS: 1.13.0
Loading

0 comments on commit 28109c7

Please sign in to comment.