diff --git a/splitio/lib/splitio.dart b/splitio/lib/splitio.dart index a63f9f2..3db1151 100644 --- a/splitio/lib/splitio.dart +++ b/splitio/lib/splitio.dart @@ -13,7 +13,7 @@ export 'package:splitio_platform_interface/split_view.dart'; typedef ClientReadinessCallback = void Function(SplitClient splitClient); class Splitio { - final String _apiKey; + final String _sdkKey; final String _defaultMatchingKey; @@ -25,7 +25,7 @@ class Splitio { /// SDK instance constructor. /// - /// Use [_apiKey] to specify your Split API key. + /// Use [_sdkKey] to specify your Split SDK key. /// /// Use [_defaultMatchingKey] to specify a default matching key. The default /// client will be associated with it. @@ -33,7 +33,7 @@ class Splitio { /// An optional [bucketingKey] can also be specified. /// /// Use the optional [configuration] parameter to fine tune configuration options. - Splitio(this._apiKey, this._defaultMatchingKey, + Splitio(this._sdkKey, this._defaultMatchingKey, {String? bucketingKey, SplitConfiguration? configuration}) { _defaultBucketingKey = bucketingKey; _splitConfiguration = configuration; @@ -60,7 +60,7 @@ class Splitio { /// up-to-date, but all the functionality will be available. /// /// [onUpdated] is executed when changes have been made, such as creating - /// new splits or modifying segments. + /// new feature flags or modifying segments. /// /// [onTimeout] is executed if the SDK has not been able to get ready in time. SplitClient client( @@ -123,7 +123,7 @@ class Splitio { Future _init() { return _platform.init( - apiKey: _apiKey, + apiKey: _sdkKey, matchingKey: _defaultMatchingKey, bucketingKey: _defaultBucketingKey, sdkConfiguration: _splitConfiguration); diff --git a/splitio/pubspec.yaml b/splitio/pubspec.yaml index ae25ce4..091916f 100644 --- a/splitio/pubspec.yaml +++ b/splitio/pubspec.yaml @@ -1,5 +1,5 @@ name: splitio -description: Official plugin for split.io, the platform for controlled rollouts, which serves features to your users via a Split feature flag to manage your complete customer experience. +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.2+2 homepage: https://split.io/ repository: https://github.com/splitio/flutter-sdk-plugin/tree/main/splitio/