From 054ddec00ed282255437af82da53a8f275aae956 Mon Sep 17 00:00:00 2001 From: Szymon Oczowinski Date: Fri, 5 Apr 2024 15:24:46 +0200 Subject: [PATCH] Release of 1.0.1 version --- CHANGELOG.md | 10 ++++++++ README.md | 4 ++-- android/build.gradle | 4 ++-- .../modules/SyneriseInitializer.java | 2 +- example/ios/Runner.xcodeproj/project.pbxproj | 24 +++++++++---------- example/pubspec.yaml | 2 +- ios/Classes/Modules/FSettings.m | 2 +- ios/Classes/Modules/FSynerise.m | 2 +- ios/synerise_flutter_sdk.podspec | 2 +- lib/main/index.dart | 4 ++-- pubspec.yaml | 2 +- 11 files changed, 34 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f14f515..438f54f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Changelog All notable changes to this project will be documented in this file. +## [1.0.1] - 2024-04-05 + +### Fixed +- [android] NPE on getClientId after apiKey changes. +- [android] registerForPushCache was not passing request after client context change within 24h. + +### Changed +- Stability improvements. + + ## [1.0.0] - 2024-04-04 IMPORTANT: diff --git a/README.md b/README.md index 852d43b..874e418 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Synerise Flutter SDK (synerise-flutter-sdk) (1.0.0) +# Synerise Flutter SDK (synerise-flutter-sdk) (1.0.1) [![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) @@ -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.0 + synerise_flutter_sdk: ^1.0.1 ``` Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more. diff --git a/android/build.gradle b/android/build.gradle index 1380601..403379f 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,5 +1,5 @@ group 'com.synerise.synerise_flutter_sdk' -version '1.0.0' +version '1.0.1' buildscript { repositories { @@ -41,5 +41,5 @@ repositories { } dependencies { - implementation 'com.synerise.sdk:synerise-mobile-sdk:5.16.0' + implementation 'com.synerise.sdk:synerise-mobile-sdk:5.16.2' } \ No newline at end of file diff --git a/android/src/main/java/com/synerise/synerise_flutter_sdk/modules/SyneriseInitializer.java b/android/src/main/java/com/synerise/synerise_flutter_sdk/modules/SyneriseInitializer.java index 800344d..8f3f70d 100644 --- a/android/src/main/java/com/synerise/synerise_flutter_sdk/modules/SyneriseInitializer.java +++ b/android/src/main/java/com/synerise/synerise_flutter_sdk/modules/SyneriseInitializer.java @@ -17,7 +17,7 @@ import io.flutter.plugin.common.MethodChannel; public class SyneriseInitializer implements SyneriseModule { - private static String sdkPluginVersion = "1.0.0"; + private static String sdkPluginVersion = "1.0.1"; private static SyneriseInitializer instance; protected static volatile boolean isInitialized = false; public SyneriseInitializer() { diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 349c840..70e2b0e 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -739,7 +739,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -869,7 +869,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -894,7 +894,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter"; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -930,7 +930,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.notification-service-extension"; @@ -974,7 +974,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.notification-service-extension"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1017,7 +1017,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.notification-service-extension"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1060,7 +1060,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.single-media-notification"; @@ -1104,7 +1104,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.single-media-notification"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1147,7 +1147,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.single-media-notification"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1190,7 +1190,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.carousel-notification"; @@ -1234,7 +1234,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.carousel-notification"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1277,7 +1277,7 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.0; + MARKETING_VERSION = 1.0.1; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = "com.synerise.sdk.sample-flutter.carousel-notification"; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/example/pubspec.yaml b/example/pubspec.yaml index e7e6cd7..6f416ee 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -1,6 +1,6 @@ name: synerise_flutter_sdk_example description: Demonstrates how to use the synerise_flutter_sdk plugin. -version: 1.0.0 +version: 1.0.1 # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. diff --git a/ios/Classes/Modules/FSettings.m b/ios/Classes/Modules/FSettings.m index 94534ac..140f1c8 100644 --- a/ios/Classes/Modules/FSettings.m +++ b/ios/Classes/Modules/FSettings.m @@ -188,7 +188,7 @@ - (NSDictionary *)normalizeSDKLocalizableDictionary:(nullable NSDictionary *)dic newDictionary[SNR_LOCALIZABLE_STRING_KEY_CANCEL] = localizableKeyCancel; } - if ([newDictionary count] < 0 ){ + if ([newDictionary count] == 0){ return nil; } diff --git a/ios/Classes/Modules/FSynerise.m b/ios/Classes/Modules/FSynerise.m index 6a8814b..8863a65 100644 --- a/ios/Classes/Modules/FSynerise.m +++ b/ios/Classes/Modules/FSynerise.m @@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN -static NSString * const sdkPluginVersion = @"1.0.0"; +static NSString * const sdkPluginVersion = @"1.0.1"; @interface FSynerise () diff --git a/ios/synerise_flutter_sdk.podspec b/ios/synerise_flutter_sdk.podspec index 6f5d719..bd9d189 100644 --- a/ios/synerise_flutter_sdk.podspec +++ b/ios/synerise_flutter_sdk.podspec @@ -7,7 +7,7 @@ SYNERISE_SDK_FRAMEWORK_VERSION = '4.16.0' Pod::Spec.new do |s| s.name = 'synerise_flutter_sdk' - s.version = '1.0.0' + s.version = '1.0.1' s.summary = 'Synerise SDK plugin for Flutter' s.description = 'Flutter plugin for Synerise SDK' s.homepage = 'http://synerise.com' diff --git a/lib/main/index.dart b/lib/main/index.dart index 54be811..8bdf996 100644 --- a/lib/main/index.dart +++ b/lib/main/index.dart @@ -1,5 +1,5 @@ -/// This code exports various classes and enums from the Synerise Flutter SDK. It allows the application developer -/// to access the objects from the Synerise SDK without the importing them. +// This code exports various classes and enums from the Synerise Flutter SDK. It allows the application developer +// to access the objects from the Synerise SDK without the importing them. // CONFIG export 'package:synerise_flutter_sdk/main/dependencies.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index e7cf868..aa1e2fb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: synerise_flutter_sdk description: >- Flutter plugin for Synerise SDK. Most up-to-date documentation is available at Synerise Help Center. -version: 1.0.0 +version: 1.0.1 homepage: https://synerise.com documentation: https://help.synerise.com/developers/mobile-sdk/ repository: https://github.com/Synerise/synerise-flutter-sdk