Skip to content

Commit

Permalink
Release of 0.6.3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
soczowinski committed Jul 13, 2023
1 parent ab32785 commit 21f2859
Show file tree
Hide file tree
Showing 12 changed files with 73 additions and 45 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.6.3] - 2023-07-13
### Added
- ios native push extensions to example app

### Fixed
- ios tracker params mapping
- client methods not finishing with results

## [0.6.2] - 2023-06-28
### Fixed
- removed redundant code from example app
- fixed parameters mapping for custom events in ios native part

## [0.6.1] - 2023-06-28
### Fixed
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) (0.6.2)
# Synerise Flutter SDK (synerise-flutter-sdk) (0.6.3)

[![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 @@ -45,7 +45,7 @@ This will add a line like this to your package's pubspec.yaml (and run an implic

```
dependencies:
synerise_flutter_sdk: ^0.6.2
synerise_flutter_sdk: ^0.6.3
```

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
@@ -1,5 +1,5 @@
group 'com.synerise.synerise_flutter_sdk'
version '0.6.2'
version '0.6.3'

buildscript {
repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void handleMethodCall(MethodCall call, MethodChannel.Result result, Strin
signIn(call, result);
return;
case "signOut":
signOut();
signOut(result);
return;
case "isSignedIn":
isSignedIn(result);
Expand All @@ -71,7 +71,7 @@ public void handleMethodCall(MethodCall call, MethodChannel.Result result, Strin
getUUID(result);
return;
case "regenerateUUID":
regenerateUUID();
regenerateUUID(result);
return;
case "requestPasswordReset":
requestPasswordReset(call, result);
Expand All @@ -80,7 +80,7 @@ public void handleMethodCall(MethodCall call, MethodChannel.Result result, Strin
getAccount(call, result);
return;
case "destroySession":
destroySession();
destroySession(result);
return;
case "changePassword":
changePassword(call, result);
Expand Down Expand Up @@ -171,8 +171,9 @@ public void onDataAction(ApiError apiError) {
});
}

private static void signOut() {
private static void signOut(MethodChannel.Result result) {
Client.signOut();
SyneriseModule.executeSuccessResult(true, result);
}

private static void isSignedIn(MethodChannel.Result result) {
Expand Down Expand Up @@ -252,8 +253,9 @@ public void getUUID(MethodChannel.Result result) {
SyneriseModule.executeSuccessResult(uuid, result);
}

public void regenerateUUID() {
public void regenerateUUID(MethodChannel.Result result) {
Client.regenerateUuid();
SyneriseModule.executeSuccessResult(true, result);
}

public void updateAccount(MethodCall call, MethodChannel.Result result) {
Expand Down Expand Up @@ -358,8 +360,9 @@ public void onDataAction(ApiError apiError) {
});
}

public void destroySession() {
public void destroySession(MethodChannel.Result result) {
Client.destroySession();
SyneriseModule.executeSuccessResult(true, result);
}

public void changePassword(MethodCall call, MethodChannel.Result result) {
Expand Down
12 changes: 6 additions & 6 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ PODS:
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/Logger (~> 7.8)
- FirebaseCoreInternal (10.11.0):
- FirebaseCoreInternal (10.12.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseInstallations (10.11.0):
- FirebaseInstallations (10.12.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
Expand Down Expand Up @@ -108,7 +108,7 @@ PODS:
- nanopb/decode (2.30909.0)
- nanopb/encode (2.30909.0)
- PromisesObjC (2.2.0)
- synerise_flutter_sdk (0.6.2):
- synerise_flutter_sdk (0.6.3):
- Flutter
- SyneriseSDK (= 4.13.1)
- SyneriseSDK (4.13.1)
Expand Down Expand Up @@ -155,16 +155,16 @@ SPEC CHECKSUMS:
firebase_messaging: 8ac28baba96e69a58ad26b4bb5f9ee67c3e5efe2
FirebaseAnalytics: 036232b6a1e2918e5f67572417be1173576245f3
FirebaseCore: 988754646ab3bd4bdcb740f1bfe26b9f6c0d5f2a
FirebaseCoreInternal: 9e46c82a14a3b3a25be4e1e151ce6d21536b89c0
FirebaseInstallations: 2a2c6859354cbec0a228a863d4daf6de7c74ced4
FirebaseCoreInternal: 950500ad8a08963657f6d8c67b579740c06d6aa1
FirebaseInstallations: 7b99ef103f013624444c614397038219c45f8e63
FirebaseMessaging: e345b219fd15d325f0cf2fef28cb8ce00d851b3f
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
GoogleAppMeasurement: c7d6fff39bf2d829587d74088d582e32d75133c3
GoogleDataTransport: f0308f5905a745f94fb91fea9c6cbaf3831cb1bd
GoogleUtilities: 9aa0ad5a7bc171f8bae016300bfcfa3fb8425749
nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431
PromisesObjC: 09985d6d70fbe7878040aa746d78236e6946d2ef
synerise_flutter_sdk: 3bf373dedd3c8029df803e684d030e102d8c242d
synerise_flutter_sdk: 0556f4dd1bbc112e20f0ffaa17e85d80d4853e89
SyneriseSDK: 811c9cad83d986a1ad0bac1826c6c0fb1fc9fe35

PODFILE CHECKSUM: d4b311433acbfaca5931fa80e48619297945167e
Expand Down
48 changes: 24 additions & 24 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
ENABLE_BITCODE = NO;
Expand All @@ -740,7 +740,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -864,7 +864,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
ENABLE_BITCODE = NO;
Expand All @@ -873,7 +873,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -892,7 +892,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
ENABLE_BITCODE = NO;
Expand All @@ -901,7 +901,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -924,7 +924,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -938,7 +938,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.notification-service-extension";
Expand Down Expand Up @@ -968,7 +968,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -982,7 +982,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.notification-service-extension";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1011,7 +1011,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -1025,7 +1025,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.notification-service-extension";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1054,7 +1054,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -1068,7 +1068,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.single-media-notification";
Expand Down Expand Up @@ -1098,7 +1098,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -1112,7 +1112,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.single-media-notification";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1141,7 +1141,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -1155,7 +1155,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.single-media-notification";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1184,7 +1184,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -1198,7 +1198,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.carousel-notification";
Expand Down Expand Up @@ -1228,7 +1228,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -1242,7 +1242,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.carousel-notification";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1271,7 +1271,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 4;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 34N2Z22TKH;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand All @@ -1285,7 +1285,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 0.6.2;
MARKETING_VERSION = 0.6.3;
MTL_FAST_MATH = YES;
PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.carousel-notification";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
15 changes: 13 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ class _InitialViewState extends State<InitialView> {
Synerise.settings.sdk.keychainGroupIdentifier = "34N2Z22TKH.FlutterKeychainGroup";
Synerise.settings.injector.automatic = true;

Synerise.initializer().withClientApiKey("YOUR_PROFILE_API_KEY").withBaseUrl("https://api.snrapi.com").withDebugModeEnabled(true).init();
Synerise.initializer()
.withClientApiKey("YOUR_PROFILE_API_KEY")
.withBaseUrl("https://api.snrapi.com")
.withDebugModeEnabled(true)
.init();

Synerise.injector.listener((listener) {
listener.onOpenUrl = (url) {
Expand Down Expand Up @@ -163,7 +167,14 @@ class _InitialViewState extends State<InitialView> {
ElevatedButton(
child: const Text('Tracker Method Test'),
onPressed: () {
final paramMap = <String, String>{"firstKeyCustomParam": "TEST"};
final paramMap = <String, Object>{
"firstKeyCustomParam": "TEST",
"arraytest": [
{
"test1": "test2"
}
]};

CustomEvent event = CustomEvent("label", "flutter", paramMap);
Synerise.tracker.send(event);
},
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.6.2"
version: "0.6.3"
term_glyph:
dependency: transitive
description:
Expand Down
Loading

0 comments on commit 21f2859

Please sign in to comment.