GithubHelp home page GithubHelp logo

launchdarkly / hello-ios Goto Github PK

View Code? Open in Web Editor NEW
2.0 50.0 7.0 928 KB

Hello LaunchDarkly for iOS

License: Other

Ruby 3.38% Objective-C 96.62%
launchdarkly ios feature-flags feature-toggles examples sdk-examples launchdarkly-sdk managed-by-terraform swift

hello-ios's Introduction

LaunchDarkly sample iOS application

We've built a simple mobile application that demonstrates how LaunchDarkly's SDK works.

Below, you'll find the build procedure. For more comprehensive instructions, you can visit your Quickstart page or the iOS reference guide.

Build instructions

  1. Make sure you have Xcode installed
  2. Make sure you're in this directory and then type pod install
  3. Open hello-ios.xcworkspace in Xcode
  4. Set the value of sdkKey in hello-common/LDClientConfigurator.m to your LaunchDarkly mobile key. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, set featureFlagKey in hello-ios/ViewController.m and hello-watchOS Extension/InterfaceController.m to the flag key.
    // hello-common/LDClientConfigurator.m
    NSString * const sdkKey = @"";

    // hello-ios/ViewController.m
    self.featureFlagKey = @"sample-feature";

    // hello-watchOS Extension/InterfaceController.m
    NSString * const FEATURE_FLAG_KEY = @"sample-feature";

You should see the message "The feature flag evaluates to .". The application will run continuously and react to the flag changes in LaunchDarkly.

hello-ios's People

Contributors

arun251 avatar atlassian-gaustin avatar danialzahid94 avatar dependabot[bot] avatar eli-darkly avatar gwhelanld avatar jkodumal avatar keelerm84 avatar kxwu avatar markpokornycos avatar mmrj avatar torchhound avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hello-ios's Issues

Change initialization code

We should initialize the client in application:didFinishLaunchingWithOptions-- it's a bit weird to do it in a single view controller.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.