Skip to content

Commit 8e6d903

Browse files
authored
Release 5.4.5 (#263)
## [5.4.5] - 2022-03-11 ### Fixed - Fixed race condition in `LDSwiftEventSource` that could cause a crash if the stream is explicitly stopped (such as when `identify` is called) while the stream is waiting to reconnect.
1 parent a6d94a9 commit 8e6d903

File tree

7 files changed

+26
-21
lines changed

7 files changed

+26
-21
lines changed

.circleci/config.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020

2121
macos:
2222
xcode: <<parameters.xcode-version>>
23+
resource_class: macos.x86.medium.gen2
2324

2425
steps:
2526
- checkout
@@ -134,14 +135,14 @@ workflows:
134135
run-lint: true
135136
- build:
136137
name: Xcode 12.5 - Swift 5.4
137-
xcode-version: '12.5.0'
138+
xcode-version: '12.5.1'
138139
ios-sim: 'platform=iOS Simulator,name=iPhone 8,OS=14.5'
139140
- build:
140141
name: Xcode 12.0 - Swift 5.3
141142
xcode-version: '12.0.1'
142143
ios-sim: 'platform=iOS Simulator,name=iPhone 8,OS=14.0'
143144
ssh-fix: true
144145
- build:
145-
name: Xcode 11.4 - Swift 5.2
146-
xcode-version: '11.4.1'
147-
ios-sim: 'platform=iOS Simulator,name=iPhone 8,OS=12.2'
146+
name: Xcode 11.7 - Swift 5.2
147+
xcode-version: '11.7.0'
148+
ios-sim: 'platform=iOS Simulator,name=iPhone 8,OS=12.4'

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to the LaunchDarkly iOS SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [5.4.5] - 2022-03-11
6+
### Fixed
7+
- Fixed race condition in `LDSwiftEventSource` that could cause a crash if the stream is explicitly stopped (such as when `identify` is called) while the stream is waiting to reconnect.
8+
59
## [5.4.4] - 2022-01-19
610
### Fixed
711
- Fixed memory leak when stream connections are terminated by updating `LDSwiftEventSource` dependency to [1.3.0](https://github.com/launchdarkly/swift-eventsource/releases/tag/1.3.0).
@@ -11,7 +15,7 @@ All notable changes to the LaunchDarkly iOS SDK will be documented in this file.
1115

1216
## [5.4.3] - 2021-08-13
1317
### Fixed
14-
- Fixed an issue where `304 NOT_MODIFIED` responses to SDK polling mode requests would be considered error responses. This could cause the completion on a `identify` request to not complete, and gave erroneous connection information data and logging output.
18+
- Fixed an issue where `304 NOT_MODIFIED` responses to SDK polling mode requests would be considered error responses. This could cause the completion on a `identify` request to not complete, and gave erroneous connection information data and logging output.
1519
- Fixed a crash when attempting to cache flag data containing variation JSON values containing a JSON `null` value nested within a JSON array.
1620

1721
## [5.4.2] - 2021-06-17

LaunchDarkly.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Pod::Spec.new do |ld|
33

44
ld.name = "LaunchDarkly"
5-
ld.version = "5.4.4"
5+
ld.version = "5.4.5"
66
ld.summary = "iOS SDK for LaunchDarkly"
77

88
ld.description = <<-DESC
@@ -35,6 +35,6 @@ Pod::Spec.new do |ld|
3535
ld.swift_version = '5.0'
3636

3737
ld.subspec 'Core' do |es|
38-
es.dependency 'LDSwiftEventSource', '1.3.0'
38+
es.dependency 'LDSwiftEventSource', '1.3.1'
3939
end
4040
end

LaunchDarkly.xcodeproj/project.pbxproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@
15831583
GCC_C_LANGUAGE_STANDARD = gnu11;
15841584
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
15851585
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1586-
MARKETING_VERSION = 5.4.4;
1586+
MARKETING_VERSION = 5.4.5;
15871587
MODULEMAP_FILE = "";
15881588
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-tvOS";
15891589
PRODUCT_NAME = LaunchDarkly_tvOS;
@@ -1606,7 +1606,7 @@
16061606
GCC_C_LANGUAGE_STANDARD = gnu11;
16071607
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
16081608
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1609-
MARKETING_VERSION = 5.4.4;
1609+
MARKETING_VERSION = 5.4.5;
16101610
MODULEMAP_FILE = "";
16111611
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-tvOS";
16121612
PRODUCT_NAME = LaunchDarkly_tvOS;
@@ -1629,7 +1629,7 @@
16291629
GCC_C_LANGUAGE_STANDARD = gnu11;
16301630
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
16311631
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1632-
MARKETING_VERSION = 5.4.4;
1632+
MARKETING_VERSION = 5.4.5;
16331633
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-macOS";
16341634
PRODUCT_NAME = LaunchDarkly_macOS;
16351635
SDKROOT = macosx;
@@ -1650,7 +1650,7 @@
16501650
GCC_C_LANGUAGE_STANDARD = gnu11;
16511651
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
16521652
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1653-
MARKETING_VERSION = 5.4.4;
1653+
MARKETING_VERSION = 5.4.5;
16541654
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-macOS";
16551655
PRODUCT_NAME = LaunchDarkly_macOS;
16561656
SDKROOT = macosx;
@@ -1694,7 +1694,7 @@
16941694
CURRENT_PROJECT_VERSION = 1;
16951695
DEBUG_INFORMATION_FORMAT = dwarf;
16961696
DYLIB_COMPATIBILITY_VERSION = 5.4.0;
1697-
DYLIB_CURRENT_VERSION = 5.4.4;
1697+
DYLIB_CURRENT_VERSION = 5.4.5;
16981698
ENABLE_STRICT_OBJC_MSGSEND = YES;
16991699
ENABLE_TESTABILITY = YES;
17001700
FRAMEWORK_VERSION = B;
@@ -1765,7 +1765,7 @@
17651765
CURRENT_PROJECT_VERSION = 1;
17661766
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
17671767
DYLIB_COMPATIBILITY_VERSION = 5.4.0;
1768-
DYLIB_CURRENT_VERSION = 5.4.4;
1768+
DYLIB_CURRENT_VERSION = 5.4.5;
17691769
ENABLE_NS_ASSERTIONS = NO;
17701770
ENABLE_STRICT_OBJC_MSGSEND = YES;
17711771
FRAMEWORK_VERSION = B;
@@ -1804,7 +1804,7 @@
18041804
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
18051805
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
18061806
LD_DYLIB_INSTALL_NAME = "$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)";
1807-
MARKETING_VERSION = 5.4.4;
1807+
MARKETING_VERSION = 5.4.5;
18081808
MODULEMAP_FILE = "$(PROJECT_DIR)/Framework/module.modulemap";
18091809
PRODUCT_BUNDLE_IDENTIFIER = com.launchdarkly.Darkly;
18101810
PRODUCT_NAME = LaunchDarkly;
@@ -1824,7 +1824,7 @@
18241824
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
18251825
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
18261826
LD_DYLIB_INSTALL_NAME = "$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)";
1827-
MARKETING_VERSION = 5.4.4;
1827+
MARKETING_VERSION = 5.4.5;
18281828
MODULEMAP_FILE = "$(PROJECT_DIR)/Framework/module.modulemap";
18291829
PRODUCT_BUNDLE_IDENTIFIER = com.launchdarkly.Darkly;
18301830
PRODUCT_NAME = LaunchDarkly;
@@ -1866,7 +1866,7 @@
18661866
GCC_C_LANGUAGE_STANDARD = gnu11;
18671867
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
18681868
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1869-
MARKETING_VERSION = 5.4.4;
1869+
MARKETING_VERSION = 5.4.5;
18701870
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-watchOS";
18711871
PRODUCT_NAME = LaunchDarkly_watchOS;
18721872
SDKROOT = watchos;
@@ -1888,7 +1888,7 @@
18881888
GCC_C_LANGUAGE_STANDARD = gnu11;
18891889
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
18901890
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1891-
MARKETING_VERSION = 5.4.4;
1891+
MARKETING_VERSION = 5.4.5;
18921892
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-watchOS";
18931893
PRODUCT_NAME = LaunchDarkly_watchOS;
18941894
SDKROOT = watchos;
@@ -1962,7 +1962,7 @@
19621962
repositoryURL = "https://github.com/LaunchDarkly/swift-eventsource.git";
19631963
requirement = {
19641964
kind = exactVersion;
1965-
version = 1.3.0;
1965+
version = 1.3.1;
19661966
};
19671967
};
19681968
B4903D9624BD61B200F087C4 /* XCRemoteSwiftPackageReference "OHHTTPStubs" */ = {

LaunchDarkly/LaunchDarkly/ServiceObjects/EnvironmentReporter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct EnvironmentReporter: EnvironmentReporting {
135135
var shouldThrottleOnlineCalls: Bool { true }
136136
#endif
137137

138-
let sdkVersion = "5.4.4"
138+
let sdkVersion = "5.4.5"
139139
// Unfortunately, the following does not function in certain configurations, such as when included through SPM
140140
// var sdkVersion: String {
141141
// Bundle(for: LDClient.self).infoDictionary?["CFBundleShortVersionString"] as? String ?? "5.x"

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let package = Package(
1919
.package(url: "https://github.com/AliSoftware/OHHTTPStubs.git", .exact("9.1.0")),
2020
.package(url: "https://github.com/Quick/Quick.git", .exact("4.0.0")),
2121
.package(url: "https://github.com/Quick/Nimble.git", .exact("9.2.1")),
22-
.package(name: "LDSwiftEventSource", url: "https://github.com/LaunchDarkly/swift-eventsource.git", .exact("1.3.0"))
22+
.package(name: "LDSwiftEventSource", url: "https://github.com/LaunchDarkly/swift-eventsource.git", .exact("1.3.1"))
2323
],
2424
targets: [
2525
.target(

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ To include LaunchDarkly in a Swift package, simply add it to the dependencies se
4949

5050
```swift
5151
dependencies: [
52-
.package(url: "https://github.com/launchdarkly/ios-client-sdk.git", .upToNextMinor(from: "5.4.4"))
52+
.package(url: "https://github.com/launchdarkly/ios-client-sdk.git", .upToNextMinor(from: "5.4.5"))
5353
]
5454
```
5555

0 commit comments

Comments
 (0)