From 68312dbf7f193faf9851f1fb37df5931f264ab8f Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Thu, 18 May 2023 17:42:12 -0300 Subject: [PATCH 1/4] Version 0.1.3 & CHANGELOG --- splitio/CHANGELOG.md | 11 +++++++++++ splitio/pubspec.yaml | 8 ++++---- splitio_android/CHANGELOG.md | 9 +++++++++ splitio_android/pubspec.yaml | 4 ++-- splitio_ios/CHANGELOG.md | 9 +++++++++ splitio_ios/pubspec.yaml | 4 ++-- splitio_platform_interface/CHANGELOG.md | 9 +++++++++ .../lib/split_configuration.dart | 2 +- splitio_platform_interface/pubspec.yaml | 2 +- 9 files changed, 48 insertions(+), 10 deletions(-) diff --git a/splitio/CHANGELOG.md b/splitio/CHANGELOG.md index 43e580e..84e0b1f 100644 --- a/splitio/CHANGELOG.md +++ b/splitio/CHANGELOG.md @@ -1,3 +1,14 @@ +# 0.1.3 (May 18, 2023) + +* Updated iOS SDK to `2.20.1` & Android SDK to `3.2.1` +* Added support for new configuration options: + * `impressionsMode` + * `syncEnabled` + * `logLevel` + * `userConsent` + * `encryptionEnabled` +* Deprecated `enableDebug` configuration in favor of `logLevel`. + # 0.1.3-rc.1 (May 18, 2023) # 0.1.2+2 (Dec 7, 2022) diff --git a/splitio/pubspec.yaml b/splitio/pubspec.yaml index 1fb383b..650fcbc 100644 --- a/splitio/pubspec.yaml +++ b/splitio/pubspec.yaml @@ -1,6 +1,6 @@ name: splitio description: Official plugin for split.io, the platform for controlled rollouts, which serves features to your users via feature flags to manage your complete customer experience. -version: 0.1.3-rc.1 +version: 0.1.3 homepage: https://split.io/ repository: https://github.com/splitio/flutter-sdk-plugin/tree/main/splitio/ @@ -19,9 +19,9 @@ flutter: dependencies: flutter: sdk: flutter - splitio_android: ^0.1.3-rc.1 - splitio_ios: ^0.1.3-rc.1 - splitio_platform_interface: ^1.1.0-rc.1 + splitio_android: ^0.1.3 + splitio_ios: ^0.1.3 + splitio_platform_interface: ^1.1.0 dev_dependencies: flutter_test: diff --git a/splitio_android/CHANGELOG.md b/splitio_android/CHANGELOG.md index e292dd9..09abe36 100644 --- a/splitio_android/CHANGELOG.md +++ b/splitio_android/CHANGELOG.md @@ -1,3 +1,12 @@ +# 0.1.3 (May 18, 2023) +* Updated Android SDK to `3.2.1` +* Added support for new configuration options: + * `impressionsMode` + * `syncEnabled` + * `logLevel` + * `userConsent` + * `encryptionEnabled` + # 0.1.3-rc.1 (May 18, 2023) # 0.1.2+1 (Dec 7, 2022) diff --git a/splitio_android/pubspec.yaml b/splitio_android/pubspec.yaml index d1282ec..33d267c 100644 --- a/splitio_android/pubspec.yaml +++ b/splitio_android/pubspec.yaml @@ -1,7 +1,7 @@ name: splitio_android description: The official Android implementation of splitio Flutter plugin. repository: https://github.com/splitio/flutter-sdk-plugin/tree/main/splitio_android -version: 0.1.3-rc.1 +version: 0.1.3 environment: sdk: ">=2.16.2 <4.0.0" @@ -19,7 +19,7 @@ flutter: dependencies: flutter: sdk: flutter - splitio_platform_interface: ^1.1.0-rc.1 + splitio_platform_interface: ^1.1.0 dev_dependencies: flutter_test: diff --git a/splitio_ios/CHANGELOG.md b/splitio_ios/CHANGELOG.md index 301f867..0c8fcb4 100644 --- a/splitio_ios/CHANGELOG.md +++ b/splitio_ios/CHANGELOG.md @@ -1,3 +1,12 @@ +# 0.1.3 (May 18, 2023) +* Updated iOS SDK to `2.20.1` +* Added support for new configuration options: + * `impressionsMode` + * `syncEnabled` + * `logLevel` + * `userConsent` + * `encryptionEnabled` + # 0.1.3-rc.1 (May 18, 2023) # 0.1.2 (Aug 13, 2022) diff --git a/splitio_ios/pubspec.yaml b/splitio_ios/pubspec.yaml index 14110d7..4481a13 100644 --- a/splitio_ios/pubspec.yaml +++ b/splitio_ios/pubspec.yaml @@ -1,7 +1,7 @@ name: splitio_ios description: The official iOS implementation of splitio Flutter plugin. repository: https://github.com/splitio/flutter-sdk-plugin/tree/main/splitio_ios -version: 0.1.3-rc.1 +version: 0.1.3 environment: sdk: ">=2.16.2 <4.0.0" @@ -18,7 +18,7 @@ flutter: dependencies: flutter: sdk: flutter - splitio_platform_interface: ^1.1.0-rc.1 + splitio_platform_interface: ^1.1.0 dev_dependencies: flutter_test: diff --git a/splitio_platform_interface/CHANGELOG.md b/splitio_platform_interface/CHANGELOG.md index 74a02f8..ab885ce 100644 --- a/splitio_platform_interface/CHANGELOG.md +++ b/splitio_platform_interface/CHANGELOG.md @@ -1,3 +1,12 @@ +# 1.1.0 (May 18, 2023) +* Added support for new configuration options: + * `impressionsMode` + * `syncEnabled` + * `logLevel` + * `userConsent` + * `encryptionEnabled` +* Deprecated `enableDebug` configuration in favor of `logLevel`. + # 1.1.0-rc.1 (May 18, 2023) # 1.0.0 (Aug 13, 2022) diff --git a/splitio_platform_interface/lib/split_configuration.dart b/splitio_platform_interface/lib/split_configuration.dart index 9adb7d6..0ee7d2b 100644 --- a/splitio_platform_interface/lib/split_configuration.dart +++ b/splitio_platform_interface/lib/split_configuration.dart @@ -37,7 +37,7 @@ class SplitConfiguration { /// /// [syncEnabled] Controls the SDK continuous synchronization flags. When true, a running SDK processes rollout plan updates performed in the Split user interface (default). When false, it fetches all data upon init, which ensures a consistent experience during a user session and optimizes resources when these updates are not consumed by the app. /// - /// [UserConsent] User consent status used to control the tracking of events and impressions. Possible values are [UserConsent.granted], [UserConsent.declined], and [UserConsent.unknown]. + /// [userConsent] User consent status used to control the tracking of events and impressions. Possible values are [UserConsent.granted], [UserConsent.declined], and [UserConsent.unknown]. /// /// [encryptionEnabled] If set to true, the local database contents is encrypted. Defaults to false. /// diff --git a/splitio_platform_interface/pubspec.yaml b/splitio_platform_interface/pubspec.yaml index e20f38b..1947654 100644 --- a/splitio_platform_interface/pubspec.yaml +++ b/splitio_platform_interface/pubspec.yaml @@ -2,7 +2,7 @@ name: splitio_platform_interface description: A common platform interface for the splitio plugin. # NOTE: We strongly prefer non-breaking changes, even at the expense of a # less-clean API. See https://flutter.dev/go/platform-interface-breaking-changes -version: 1.1.0-rc.1 +version: 1.1.0 repository: https://github.com/splitio/flutter-sdk-plugin/tree/main/splitio_platform_interface environment: From 71dd975016fe34ec05fe7cf5b08846a3f1f922a5 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Thu, 18 May 2023 17:56:40 -0300 Subject: [PATCH 2/4] Fix deprecation warnings in platform_interface tests --- .../test/method_channel_platform_test.dart | 8 +++++--- .../test/split_event_method_call_handler_test.dart | 4 +++- .../test/splitio_configuration_test.dart | 1 - 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/splitio_platform_interface/test/method_channel_platform_test.dart b/splitio_platform_interface/test/method_channel_platform_test.dart index 9f5ee07..72cb4ed 100644 --- a/splitio_platform_interface/test/method_channel_platform_test.dart +++ b/splitio_platform_interface/test/method_channel_platform_test.dart @@ -23,7 +23,8 @@ void main() { } setUp(() { - _channel.setMockMethodCallHandler((MethodCall methodCall) async { + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .setMockMethodCallHandler(_channel, (MethodCall methodCall) async { methodName = methodCall.method; methodArguments = methodCall.arguments; @@ -54,6 +55,7 @@ void main() { case 'clearAttributes': return true; } + return null; }); }); @@ -371,13 +373,13 @@ void main() { matchingKey: 'matching-key', bucketingKey: 'bucketing-key', sdkConfiguration: - SplitConfiguration(enableDebug: true, streamingEnabled: false)); + SplitConfiguration(logLevel: SplitLogLevel.debug, streamingEnabled: false)); expect(methodName, 'init'); expect(methodArguments, { 'apiKey': 'api-key', 'matchingKey': 'matching-key', 'bucketingKey': 'bucketing-key', - 'sdkConfiguration': {'enableDebug': true, 'streamingEnabled': false}, + 'sdkConfiguration': {'logLevel': 'debug', 'streamingEnabled': false}, }); }); }); diff --git a/splitio_platform_interface/test/split_event_method_call_handler_test.dart b/splitio_platform_interface/test/split_event_method_call_handler_test.dart index 2388fe3..7d2f760 100644 --- a/splitio_platform_interface/test/split_event_method_call_handler_test.dart +++ b/splitio_platform_interface/test/split_event_method_call_handler_test.dart @@ -17,9 +17,11 @@ void main() { } setUp(() { - _channel.setMockMethodCallHandler((MethodCall methodCall) { + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .setMockMethodCallHandler(_channel, (MethodCall methodCall) { splitEventMethodCallHandler.handle( methodCall.method, methodCall.arguments); + return null; }); }); diff --git a/splitio_platform_interface/test/splitio_configuration_test.dart b/splitio_platform_interface/test/splitio_configuration_test.dart index 72c563f..5348041 100644 --- a/splitio_platform_interface/test/splitio_configuration_test.dart +++ b/splitio_platform_interface/test/splitio_configuration_test.dart @@ -5,7 +5,6 @@ import 'package:splitio_platform_interface/split_sync_config.dart'; void main() { test('valuesAreMappedCorrectly', () async { final SplitConfiguration config = SplitConfiguration( - enableDebug: true, eventFlushInterval: 2000, eventsPerPush: 300, eventsQueueSize: 250, From 6a4b6f170402e299cec7246cad2386050e9342c7 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Thu, 18 May 2023 18:05:32 -0300 Subject: [PATCH 3/4] Fix deprecation warnings in splitio_ios tests --- splitio_ios/test/splitio_ios_test.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/splitio_ios/test/splitio_ios_test.dart b/splitio_ios/test/splitio_ios_test.dart index a68a007..d037cb3 100644 --- a/splitio_ios/test/splitio_ios_test.dart +++ b/splitio_ios/test/splitio_ios_test.dart @@ -23,7 +23,8 @@ void main() { } setUp(() { - _channel.setMockMethodCallHandler((MethodCall methodCall) async { + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .setMockMethodCallHandler(_channel, (MethodCall methodCall) async { methodName = methodCall.method; methodArguments = methodCall.arguments; @@ -54,6 +55,7 @@ void main() { case 'clearAttributes': return true; } + return null; }); }); @@ -371,13 +373,13 @@ void main() { matchingKey: 'matching-key', bucketingKey: 'bucketing-key', sdkConfiguration: - SplitConfiguration(enableDebug: true, streamingEnabled: false)); + SplitConfiguration(logLevel: SplitLogLevel.warning, streamingEnabled: false)); expect(methodName, 'init'); expect(methodArguments, { 'apiKey': 'api-key', 'matchingKey': 'matching-key', 'bucketingKey': 'bucketing-key', - 'sdkConfiguration': {'enableDebug': true, 'streamingEnabled': false}, + 'sdkConfiguration': {'logLevel': 'warning', 'streamingEnabled': false}, }); }); }); From 75f54e4f2a47d2193d02010a4c50fe52ede72646 Mon Sep 17 00:00:00 2001 From: Gaston Thea Date: Thu, 18 May 2023 18:09:51 -0300 Subject: [PATCH 4/4] Fix deprecation warnings in splitio_android tests --- splitio_android/test/splitio_android_test.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/splitio_android/test/splitio_android_test.dart b/splitio_android/test/splitio_android_test.dart index 308d056..a2def3f 100644 --- a/splitio_android/test/splitio_android_test.dart +++ b/splitio_android/test/splitio_android_test.dart @@ -23,7 +23,8 @@ void main() { } setUp(() { - _channel.setMockMethodCallHandler((MethodCall methodCall) async { + TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger + .setMockMethodCallHandler(_channel, (MethodCall methodCall) async { methodName = methodCall.method; methodArguments = methodCall.arguments; @@ -54,6 +55,7 @@ void main() { case 'clearAttributes': return true; } + return null; }); }); @@ -371,13 +373,13 @@ void main() { matchingKey: 'matching-key', bucketingKey: 'bucketing-key', sdkConfiguration: - SplitConfiguration(enableDebug: true, streamingEnabled: false)); + SplitConfiguration(logLevel: SplitLogLevel.error, streamingEnabled: false)); expect(methodName, 'init'); expect(methodArguments, { 'apiKey': 'api-key', 'matchingKey': 'matching-key', 'bucketingKey': 'bucketing-key', - 'sdkConfiguration': {'enableDebug': true, 'streamingEnabled': false}, + 'sdkConfiguration': {'logLevel': 'error', 'streamingEnabled': false}, }); }); });