8000 GitHub - optimizely/optimizely-flutter-sdk at 108f8112f9f726c6d368f585d56634a623a686c8
[go: up one dir, main page]

Skip to content

optimizely/optimizely-flutter-sdk

Repository files navigation

Optimizely Flutter SDK

Apache 2.0 Build Status Pub Coverage Status

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

Getting Started

Using the SDK

Refer to the Flutter SDK developer documentation for instructions on getting started with using the SDK.

Requirements

See the pubspec.yaml file for Flutter version requirements.

On the Android platform, the SDK requires a minimum SDK version of 21.

On the iOS platform, the SDK requires a minimum version of 10.0.

Other Flutter platforms are not currently supported by this SDK.

Installing the SDK

To add the flutter-sdk to your project dependencies, include the following in your app's pubspec.yaml:

   optimizely_flutter_sdk: ^1.0.0

Then, import the package in your application code:

   import 'package:optimizely_flutter_sdk/optimizely_flutter_sdk.dart';

Samples

A sample code for SDK initialization and experiments:

   var flutterSDK = OptimizelyFlutterSdk("my_sdk_key");
   var response = await flutterSDK.initializeClient();

Testing in Terminal

  1. To run unit tests using terminal, simply use the following command: flutter test test/optimizely_flutter_sdk_test.dart

About

Flutter SDK for Optimizely Feature Experimentation and Optimizely Full Stack (legacy).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 8

0