Skip to content

Latest commit

 

History

History
executable file
·
38 lines (28 loc) · 1.4 KB

README.md

File metadata and controls

executable file
·
38 lines (28 loc) · 1.4 KB

Harness FF Sample iOS Swift Application

This is an example Swift application that uses the iOS SDK for Harness Feature Flags.

This application will demonstrate the following:

  • Connects to the Harness Feature Flags service via the CfClient
  • Creates an Event Stream to get updates from the Cloud service
  • Queries a Multivariate String feature flag and prints the value to the screen. This value will update if a change is made on the Harness Feature Flags dashboard.
Requirements
  • Xcode installed
  • Cocoapods
gem install cocoapods
Setup Instructions
  1. Ensure you have a Harness Feature Flags project and environment set up.
  2. Generate a Client SDK Key
  3. Add the newly generated Client SDK Key to FeatureFlagsHelper.swift
    private let apiKey = "enter client sdk key here"

For more information, refer to the Getting Started Guide

Build instructions
  1. Install dependencies via Cocoapods
pod install
  1. Open ff-ios-sample.xcworkspace in Xcode
  2. Copy the feature flag key from your Harness Feature Flags Environment and set apiKey in FeatureFlagsHelper.swift
  3. Run your application through Xcode.