Skip to content

Releases: optimizely/swift-sdk

Release 3.3.2

22 May 19:50
4328588
Compare
Choose a tag to compare

3.3.2

May 21, 2020

Bug Fixes

  • Fix a decision bug for multi-rule rollouts (#323)
  • Fix to forward resourceTimeout to datafileHandler (#320)

Release 3.3.1

31 Mar 00:28
ed2232e
Compare
Choose a tag to compare

3.3.1

March 30, 2020

Bug Fixes

  • When a datafile download for initialization returns connection errors, the SDK fails to initialize. This is fixed to continue initialization with a cached datafile. (#308)
  • Events are not stored persistently in the tvOS devices. (#310, #311)

Release 3.3.0

11 Mar 22:00
06181c4
Compare
Choose a tag to compare

3.3.0

March 11, 2020

This release includes an enhancement of SDK initialization API to enable SDK updated on cached datafile change. It also fixes known bugs.

New Features

  • Add an option for synchronous initialization to enable SDK immediately updated when a new datafile is cached. Unless this feature is enabled, by default, the cached datafile will be used only when the SDK re-starts in the next session. Note that this option is for synchronous initialization only. (#297)

     // enable SDK update when a new datafile is cached
     optimizelyClient.start(datafile: data, doUpdateConfigOnNewDatafile: true)
     
     // by default, this feature is disabled
     optimizelyClient.start(datafile: data)
    

Bug Fixes

  • When a synchronously-initialized SDK enables background datafile polling and its datafile was changed in the server, the new datafile is cached but SDK is not dynamically updated. (#297)
  • When background datafile polling is enabled and app goes to background and comes back to foreground after some delays, datafile fetching is called multiple times back-to-back. (#301)
  • NotificationCenter can cause crashes when multiple threads add/call listeners simultaneously. (#304)

Release 3.2.1

16 Jan 18:00
Compare
Choose a tag to compare

3.2.1

January 16, 2020

Bug Fixes

  • Swift Package Manager (SPM) spec changed to iOS10+/tvOS10+

Release 3.2.0

16 Jan 04:23
Compare
Choose a tag to compare

3.2.0

January 15, 2020

This release includes a new API to access project configuration data and other feature enhancements. It also fixes known bugs.

New Features

  • OptimizelyConfig (#274):
  • Add LogEvent Notification (#263):
    • Register an event listner with addLogEventNotificationListener().
    • The lister will be called when events are dispatched to the server.
  • Turn on "Allow app extensions only" flag in build settings (#277)

Bug Fixes

  • When timerInterval is set to a negative value, EventDispatcher is changed to use the default interval value for batching (instead of disabling batch). Batching is disabled when the timerInterval is set to zero. (#268)

Breaking Changes

  • Upgrade required platforms from iOS9+/tvOS9+ to iOS10+/tvOS10+ (#284)

Release 3.1.0

01 Aug 16:20
Compare
Choose a tag to compare

3.1.0

July 31, 2019

This release is the GA launch of the Swift SDK. It is a pure Swift implementation which takes complete advantage of language features and performance. It supports Objective-C applications as well.

This modernized version of the SDK is meant to replace the Objective-C SDK.

New Features

In addition to all features and APIs support of the Objective-C SDK, this new SDK also adds the following new features:

  • By default the datafile handler does updates every 10 minutes when the application is in the foreground. To disable this, set the periodicUpdateInterval to zero. If you do allow for polling, the project will update automatically when a new datafile change is received.
  • On top of the above functionality, the developer may register for a datafile change notification. This notification will be called anytime a new datafile is downloaded to cache and is used to reinitialize the optimizely client automatically.
  • The event handler batches events and will run every minute in the foreground to send events. If there are no events in the queue it will not reschedule.

Bug Fixes

Breaking Changes

Release 3.1.0-beta

30 May 22:36
b1fd856
Compare
Choose a tag to compare

3.1.0-beta

May 30, 2019

This is the initial release of the Swift SDK. It is a pure Swift implementation which takes complete advantage of language features and performance. It supports Objective-C applications as well. It uses Swift 4.2 but we will be upgrading to 5.0 soon.

This modernized version of the SDK is meant to replace the Objective-C SDK.

New Features

  • By default the datafile handler does updates every 10 minutes when the application is in the foreground. To disable this, set the periodicUpdateInterval to zero. If you do allow for polling, the project will update automatically when a new datafile change is received.
  • On top of the above functionality, the developer may register for a datafile change notification. This notification will be called anytime a new datafile is downloaded to cache and is used to reinitialize the optimizely client automatically.
  • The event handler batches events and will run every minute in the foreground to send events. If there are no events in the queue it will not reschedule.

Bug Fixes:

Breaking Changes