From 2d5a994c4439319b92e7663fe184bd070513af58 Mon Sep 17 00:00:00 2001 From: Arun Bhalla Date: Wed, 5 Dec 2018 16:26:08 -0800 Subject: [PATCH] Update version to 2.14.0 --- CHANGELOG.md | 14 +++++++------- Darkly/DataModels/DarklyConstants.m | 2 +- LaunchDarkly.podspec | 4 ++-- README.md | 7 +++---- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ffe95ef..191bc2bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,24 +2,24 @@ All notable changes to the LaunchDarkly iOS SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org). -## [2.14.0.pre.1] - 2018-11-28 +## [2.14.0] - 2018-12-05 ### Added -- Added `allFlags` property to LDClient that provides a dictionary of feature flag keys and values. Accessing feature flags via `allFlags` does not record any analytics events. -- Implemented support for multiple mobile-keys. Each set of feature flags associated with a mobile-key is called an `environment`. +- Added `allFlags` property to `LDClient` that provides a dictionary of feature flag keys and values. Accessing feature flags via `allFlags` does not record any analytics events. +- Support for multiple LaunchDarkly projects or environments. Each set of feature flags associated with a mobile key is called an `environment`. • Added `secondaryMobileKeys` to LDConfig. LDConfig `mobileKey` refers to the *primary* environment, and must be present. All entries in `secondaryMobileKeys` refer to optional *secondary* environments. - NOTE: See LDClient.h for the requirements to add secondaryMobileKeys. The SDK will throw an NSInvalidArgumentException if an attempt is made to set mobile-keys that do not meet these requirements. + NOTE: See `LDClient.h` for the requirements to add `secondaryMobileKeys`. The SDK will throw an `NSInvalidArgumentException` if an attempt is made to set mobile keys that do not meet these requirements. • Installed `LDClientInterface` protocol used to access secondary environment feature flags. May also be used on the primary environment to provide normalized access to feature flags. • Adds `environmentForMobileKeyNamed:` to vend an environment (primary or secondary) object conforming to `LDClientInterface`. Use the vended object to access feature flags for the requested environment. • Adds new constant `kLDPrimaryEnvironmentName` used to vend the primary environment's `LDClientInterface` from `environmentForMobileKeyNamed:`. ### Changed -- LDUserBuilder build method no longer restores cached user attributes. The SDK sets into the LDUserModel object only the attributes in the LDUserBuilder at the time of the build message. On start, the SDK restores the last cached feature flags, which the SDK will use until the first feature flag update from the server. +- `LDUserBuilder build` method no longer restores cached user attributes. The SDK sets into the `LDUserModel` object only the attributes in the `LDUserBuilder` at the time of the build message. On start, the SDK restores the last cached feature flags, which the SDK will use until the first feature flag update from the server. - Changed the format for caching feature flags to associate a set of feature flags with a mobile key. Downgrading to an earlier version will be able to store feature flags, but without the environment association. As a result, the SDK will not restore cached feature flags from 2.14.0 if the SDK is downgraded to a version before 2.14.0. -- Installed a URL cache that does not use the `[NSURLSession defaultSession]` or the `[NSURLCache sharedURLCache]`, precluding conflicts with custom client app url caching. +- Installed a URL cache that does not use the `[NSURLSession defaultSession]` or the `[NSURLCache sharedURLCache]`, precluding conflicts with custom client app URL caching. ### Fixed - Fixed defect preventing SDK from calling `userUpdated` or `featureFlagDidUpdate` when deleting a feature flag under certain conditions. -- Fixed defect preventing URL caching for feature flag requests using the REPORT verb. +- Fixed defect preventing URL caching for feature flag requests using the `REPORT` verb. - Fixed defect causing the loss of some analytics events when changing users. ## [2.13.9] - 2018-11-05 diff --git a/Darkly/DataModels/DarklyConstants.m b/Darkly/DataModels/DarklyConstants.m index 94e87ce6..d0716a85 100644 --- a/Darkly/DataModels/DarklyConstants.m +++ b/Darkly/DataModels/DarklyConstants.m @@ -4,7 +4,7 @@ #import "DarklyConstants.h" -NSString * const kClientVersion = @"2.14.0.pre.1"; +NSString * const kClientVersion = @"2.14.0"; NSString * const kLDPrimaryEnvironmentName = @"LaunchDarkly.EnvironmentName.Primary"; NSString * const kBaseUrl = @"https://app.launchdarkly.com"; NSString * const kEventsUrl = @"https://mobile.launchdarkly.com"; diff --git a/LaunchDarkly.podspec b/LaunchDarkly.podspec index 2da82930..4b215133 100644 --- a/LaunchDarkly.podspec +++ b/LaunchDarkly.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "LaunchDarkly" - s.version = "2.14.0.pre.1" + s.version = "2.14.0" s.summary = "iOS SDK for LaunchDarkly" s.description = <<-DESC @@ -23,7 +23,7 @@ Pod::Spec.new do |s| s.tvos.deployment_target = "9.0" s.osx.deployment_target = '10.10' - s.source = { :git => "https://github.com/launchdarkly/ios-client.git", :tag => "2.14.0.pre.1" } + s.source = { :git => "https://github.com/launchdarkly/ios-client.git", :tag => "2.14.0" } s.source_files = 'Darkly/**/*.{h,m}' diff --git a/README.md b/README.md index 11bed6f9..1696b193 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' target 'TargetName' do -pod 'LaunchDarkly', :git => 'https://github.com/launchdarkly/ios-client.git', :branch => 'version_2.14.0.pre.1' +pod 'LaunchDarkly' end ``` @@ -51,7 +51,7 @@ $ brew install carthage To integrate LaunchDarkly into your Xcode project using Carthage, specify it in your `Cartfile`: ```ogdl -github "launchdarkly/ios-client" "version_2.14.0.pre.1" +github "launchdarkly/ios-client" "2.14.0" ``` Run `carthage` to build the framework and drag the built `Darkly.framework` into your Xcode project. @@ -61,8 +61,7 @@ Quick setup 1. Add the SDK to your `Podfile`: - pod 'LaunchDarkly', :git => 'https://github.com/launchdarkly/ios-client.git', :branch => 'version_2.14.0.pre.1' - + pod 'LaunchDarkly', '2.14.0' 2. Import the LaunchDarkly client: