Skip to content

Commit

Permalink
Update version to 2.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arun251 committed Dec 6, 2018
1 parent 95fdb29 commit 2d5a994
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
14 changes: 7 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Darkly/DataModels/DarklyConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions LaunchDarkly.podspec
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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}'

Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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.
Expand All @@ -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:

Expand Down

0 comments on commit 2d5a994

Please sign in to comment.