- Notifications
You must be signed in to change notification settings - Fork4
Flutter SDK for Optimizely Feature Experimentation and Optimizely Full Stack (legacy).
License
optimizely/optimizely-flutter-sdk
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository houses the Flutter SDK for use with Optimizely Feature Experimentation and Optimizely Full Stack (legacy).
Optimizely Feature Experimentation is an A/B testing and feature management tool for product development teams that enables you to experiment at every step. Using Optimizely Feature Experimentation allows for every feature on your roadmap to be an opportunity to discover hidden insights. Learn more atOptimizely.com, or see thedeveloper documentation.
Optimizely Rollouts isfree feature flags for development teams. You can easily roll out and roll back features in any application without code deploys, mitigating risk for every feature on your roadmap.
Refer to theFlutter SDK's developer documentation for detailed instructions on getting started with using the SDK.
See thepubspec.yaml file for Flutter version requirements.
On the Android platform, the SDK requires a minimum SDK version of 21 or higher and compile SDK version of 32.
On the iOS platform, the SDK requires a minimum version of 10.0.
Other Flutter platforms are not currently supported by this SDK.
To add the flutter-sdk to your project dependencies, include the following in your app's pubspec.yaml:
optimizely_flutter_sdk: ^3.3.0Then run
flutter pub get
Import the package in your application code:
import'package:optimizely_flutter_sdk/optimizely_flutter_sdk.dart';Instantiate the SDK, adding your SDK Key and initializing the client:
var flutterSDK=OptimizelyFlutterSdk("your_sdk_key");var response=await flutterSDK.initializeClient();
import'package:optimizely_flutter_sdk/optimizely_flutter_sdk.dart';// Also supports eventOptions, datafilePeriodicDownloadInterval, datafileHostOptions and defaultDecideOptionsvar flutterSDK=OptimizelyFlutterSdk("your_sdk_key");var response=await flutterSDK.initializeClient();// User attributes are optional and used for targeting and results segmentationvar attributes= {"state":"California","likes_donuts":true };var user=await flutterSDK.createUserContext("user_id", attributes);var decideReponse=await user!.decide("binary_feature");
To rununit tests using terminal, simply use the following command:
fluttertest test/optimizely_flutter_sdk_test.dartPlease seeCONTRIBUTING.
About
Flutter SDK for Optimizely Feature Experimentation and Optimizely Full Stack (legacy).
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors8
Uh oh!
There was an error while loading.Please reload this page.