All notable changes to the LaunchDarkly iOS SDK will be documented in this file. This project adheres to Semantic Versioning.
useReport
property onLDConfig
to allow switching the request verb fromGET
toREPORT
. Do not use unless advised by LaunchDarkly.
- Updated for Xcode 9 support
-streamUrl
property on LDConfig
to allow customizing the Server Sent Events engine in streaming mode.
doubleVariation
method fordouble
value feature flags, as an alternative tonumberVariation
. Thanks @atlassian-gaustin!serverConnectionUnavailable
ClientDelegate method called when the LDClient receives an error response to a feature flag request. Thanks @atlassian-gaustin!
- Prevent creating an EventSource when an EventSource is already running. Thanks @atlassian-gaustin!
- Move feature flag response processing to the request thread, and once complete return the result on the main thread. Thanks @atlassian-gaustin!
- Array and Dictionary flags now return the array or dictionary when available from the server instead of always returning fallback values. Thanks @atlassian-gaustin!
- Streaming no longer generates multiple feature flag requests on return to the foreground
- Feature flag requests for users with non-ASCII data are now encoded correctly
UserUpdatedNotification
posts only when the feature flag configuration changes for the user- Events are no longer added to the event store when capacity is reached
- Resolve potential symbol conflicts with EventSource
- Feature flag request payloads are much smaller
- The
name
property inLDUserBuilder
, for setting a full name. This property complements the existingfirstName
andlastName
properties.
LDConfig
has been refactored to replace the Builder pattern expected withLDConfigBuilder
. Thanks @petrucci34!
LDConfigBuilder
has been deprecated and will be removed in the 3.0 release.- The
withXXX
methods ofLDUserBuilder
have been deprecated in favor of properties. These methods will be removed in the 3.0 release.
- Race condition in
LDPollingManager
identified by Thread Sanitizer
- Memory leak with
NSURLSession
inEventSource
. Thanks @jimmaye!
- The client's background fetch interval can be configured using
withBackgroundFetchInterval
.
- By default, the client allows one background fetch per 60 minutes.
- Memory leak with
NSURLSession
inLDRequestManager
. Thanks @jimmaye! - Race condition when the client is used in multiple threads
- Feature flag persistence is now more efficient
- Client crashes if a feature flag is off and no off-variation is specified
- The default connection timeout is now actually 10 seconds, down from the system default of 60 seconds. Use
withConnectionTimeout
to change the setting.
- Potential race conditions when HTTP requests exceed 10 seconds
- HTTP requests now honor the configured connection timeout
- Benign race conditions in LDRequestManager
- Support for tvOS 9.0+
- Support for watchOS 2.0+
- Support for macOS 10.10+
- Umbrella header (
Darkly/Darkly.h
)
- Library is now a dynamic framework in order to support the Carthage dependency manager
- Minimum supported iOS version is now iOS 8.0+
- Updated streaming host from
stream.launchdarkly.com
toclientstream.launchdarkly.com
- Default (foreground) polling interval was reduced to 5 minutes
- Minimum polling interval was reduced to 1 minute
- Potential range exception issue in event processing
- Ability to disable streaming and enable interval-based polling
- Uncaught exception
NSInvalidArgumentException
inperformEventRequest
- Backoff with jitter for connection establishment of eventsource
- Parity for
start
vs.online
andstopClient
vs.offline
- Method to get notified with the flag key for which the value had changed
- Background fetch issues fixed
- Removed AFNetworking
- Code optimizations and cleanup
- Optimized events storage and polling algorithms
- Events generated simultaneously at the same time appear sequentially on web console without events loss
- Updated to use AFNetworking 3.1
- Minor code cleanup
- DarklyEventSource linker errors patched
- Support for multivariate feature flags. New methods for multivariate flags:
stringVariation
,numberVariation
,arrayVariation
, anddictionaryVariation
have been added toLDClient
. - Support for streaming and real-time feature flag updates
- Added support for background fetching
- In
LDClient
,toggle
value is now calledboolVariation
- Changed 'default value' to 'fallback value' to represent the value returned if LaunchDarkly is unreachable and no previous settings are stored for the current user (no behavior changed)
- Improved ability to store multiple unique user contexts per device
- Improved support to ensure that a user receives the latest flag values even when the app is backgrounded or in airplane mode
- In
LDConfig
,withApiKey
has been renamed towithMobileKey
- Removed dependency on Core Data (no interfaces or behavior changed)
- Device information is included in user custom attributes in events
- Actual and default flag values are sent in Feature Request Events
- Existing flag config data is no longer sent with evaluation requests, which
avoids
Too long request string
errors