Control feature rollout for certain user segments of your application with feature flags. To start using feature management in the platform, follow the instructions below to install the SDK and deploy a feature flag.
These same instructions are available in the platform UI. Select Installation from the left pane to use. |
To install the SDK:
-
Select
. -
Select an Environment from the options, or create an environment by completing the following:
-
Select CREATE ENVIRONMENT.
-
Enter an Environment name.
-
(Optional) Enter a Description.
-
(Optional) Select Approvers if you want to have a manual approval required before deployment.
-
(Optional) Enter any Properties you want to associate with the environment. For more information, refer to properties configuration and properties in an environment.
-
Select SUBMIT.
-
-
Select iOS or tvOS, as appropriate, from the language options.
-
Select a type of platform from the options.
-
Follow the instructions specific for your chosen platform to add the ROX package to your application:
Add the ROX package with Carthage
To add the ROX package with Carthage:
-
Add the following to the cartfile:
github "rollout/rox-spm"
-
Run the following command in the terminal to install the Carthage dependencies:
carthage update --use-xcframeworks
-
Add the appropriate binaries from the Carthage/Bin directory to your project.
-
For Objective-C:
ROXCore.xcframework
-
For Swift:
ROXCore.xcframework
andROX.xcframework
-
Add the ROX package with CocoaPods
To add the ROX package with CocoaPods:
-
Add the following to the podfile:
pod 'ROX'
-
Run the following command in the terminal to install the CocoaPods dependencies:
pod install
Add the ROX package with Swift Package Manager
To add the ROX package with Swift Package Manager, use the appropriate repositories for your project:
-
For Objective-C: https://github.com/rollout/rox-core-spm
-
For Swift: https://github.com/rollout/rox-spm
Add the ROX package with XCFramework (manual installation)
To add the ROX package with XCFramework (manual installation):
-
Download the latest version
ROX.xcframework
ZIP archive from https://github.com/rollout/rox-spm/releases. -
Extract the archive into a directory within your application.
-
Add files in Xcode by adding the appropriate binaries for your project:
-
For Objective-C:
ROXCore.xcframework
-
For Swift:
ROXCore.xcframework
andROX.xcframework
-
-
-
Add the following code, as appropriate for your project, to import the SDK and create flags in your application:
Objective-CSwift1 The platform provides the unique SDK key for your environment at the <YOUR-SDK-KEY>
location within theRox.setup
call. -
Run your application and then select TEST INTEGRATION to confirm a successful connection.
After running the application, flags added in the code are automatically added to your feature flag list. |
You have installed an SDK and created flags in your application.