Skip to content

Commit d07e01e

Browse files
authored
prepare for release 3.3.0 (#305)
1 parent 55484cc commit d07e01e

File tree

3 files changed

+38
-15
lines changed

3 files changed

+38
-15
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
os: osx
114114
osx_image: xcode11.3
115115
env:
116-
- VERSION=3.2.1
116+
- VERSION=3.3.0
117117
install:
118118
# install hub
119119
- wget https://github.com/github/hub/releases/download/v2.11.2/hub-darwin-amd64-2.11.2.tgz -O /tmp/hub-darwin-amd64-2.11.2.tgz && tar -xvf /tmp/hub-darwin-amd64-2.11.2.tgz -C /usr/local/opt && ln -s /usr/local/opt/hub-darwin-amd64-2.11.2/bin/hub /usr/local/bin/hub
@@ -130,7 +130,7 @@ jobs:
130130
os: osx
131131
osx_image: xcode11.3
132132
env:
133-
- VERSION=3.2.1
133+
- VERSION=3.3.0
134134
install:
135135
# install hub
136136
- wget https://github.com/github/hub/releases/download/v2.11.2/hub-darwin-amd64-2.11.2.tgz -O /tmp/hub-darwin-amd64-2.11.2.tgz && tar -xvf /tmp/hub-darwin-amd64-2.11.2.tgz -C /usr/local/opt && ln -s /usr/local/opt/hub-darwin-amd64-2.11.2/bin/hub /usr/local/bin/hub

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Optimizely Swift SDK Changelog
22

3+
## 3.3.0
4+
March 11, 2020
5+
6+
This release includes an enhancement of SDK initialization API to enable SDK updated on cached datafile change. It also fixes known bugs.
7+
8+
### New Features
9+
* 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](https://github.com/optimizely/swift-sdk/pull/297))
10+
11+
```
12+
// enable SDK update when a new datafile is cached
13+
optimizelyClient.start(datafile: data, doUpdateConfigOnNewDatafile: true)
14+
15+
// by default, this feature is disabled
16+
optimizelyClient.start(datafile: data)
17+
```
18+
19+
### Bug Fixes
20+
* 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](https://github.com/optimizely/swift-sdk/pull/297))
21+
* 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](https://github.com/optimizely/swift-sdk/pull/301))
22+
* NotificationCenter can cause crashes when multiple threads add/call listeners simultaneously. ([#304](https://github.com/optimizely/swift-sdk/pull/304))
23+
24+
325
## 3.2.1
426
January 16, 2020
527

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,28 @@ up an Optimizely X project and start using the SDK.
2828

2929
Please note below that _\<platform\>_ is used to represent the platform on which you are building your app. Currently, we support ```iOS``` and ```tvOS``` platforms.
3030

31+
#### Swift Package Manager
32+
Add the following line to the dependencies value of your _Package.swift_:
33+
34+
```
35+
dependencies: [
36+
.package(url: "https://github.com/optimizely/swift-sdk.git",
37+
.upToNextMinor(from: “3.3.0”))
38+
]
39+
```
40+
3141
#### CocoaPods
3242
1. Add the following lines to the _Podfile_:<pre>
33-
```use_frameworks!```
34-
```pod 'OptimizelySwiftSDK', '~> 3.2.1'```
35-
</pre>
43+
```use_frameworks!```
44+
```pod 'OptimizelySwiftSDK', '~> 3.3.0'```
45+
</pre>
3646

3747
2. Run the following command: <pre>``` pod install ```</pre>
3848

3949
Further installation instructions for Cocoapods: https://guides.cocoapods.org/using/getting-started.html
4050

4151
#### Carthage
42-
1. Add the following lines to the _Cartfile_:<pre>```github "optimizely/swift-sdk" ~> 3.2.1```</pre>
52+
1. Add the following lines to the _Cartfile_:<pre>```github "optimizely/swift-sdk" ~> 3.3.0```</pre>
4353

4454
2. Run the following command:<pre>```carthage update```</pre>
4555

@@ -56,15 +66,6 @@ Further installation instructions for Cocoapods: https://guides.cocoapods.org/us
5666

5767
Futher installation instructions for Carthage: https://github.com/Carthage/Carthage
5868

59-
#### Swift Package Manager
60-
Add the following line to the dependencies value of your _Package.swift_:
61-
62-
```
63-
dependencies: [
64-
.package(url: "https://github.com/optimizely/swift-sdk.git", .upToNextMinor(from: “3.2.1”))
65-
]
66-
```
67-
6869
### Samples
6970

7071
A sample code for SDK initialization and experiments:

0 commit comments

Comments
 (0)