Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions splitio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
8 changes: 4 additions & 4 deletions splitio/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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/

Expand All @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions splitio_android/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions splitio_android/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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:
Expand Down
8 changes: 5 additions & 3 deletions splitio_android/test/splitio_android_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -54,6 +55,7 @@ void main() {
case 'clearAttributes':
return true;
}
return null;
});
});

Expand Down Expand Up @@ -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},
});
});
});
Expand Down
9 changes: 9 additions & 0 deletions splitio_ios/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions splitio_ios/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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:
Expand Down
8 changes: 5 additions & 3 deletions splitio_ios/test/splitio_ios_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -54,6 +55,7 @@ void main() {
case 'clearAttributes':
return true;
}
return null;
});
});

Expand Down Expand Up @@ -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},
});
});
});
Expand Down
9 changes: 9 additions & 0 deletions splitio_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion splitio_platform_interface/lib/split_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand Down
2 changes: 1 addition & 1 deletion splitio_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -54,6 +55,7 @@ void main() {
case 'clearAttributes':
return true;
}
return null;
});
});

Expand Down Expand Up @@ -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},
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down