Skip to content

Commit cbf4b73

Browse files
authored
Prepare 8.1.0 (#293)
## [8.1.0] - 2023-06-05 ### Changed: - Enforce TLS v1.2 as a required minimum. ### Fixed: - Allow setting kind through `trySet`.
1 parent c26980b commit cbf4b73

File tree

9 files changed

+42
-21
lines changed

9 files changed

+42
-21
lines changed

.circleci/config.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: 2.1
33
jobs:
44
contract-tests:
55
macos:
6-
xcode: '14.0.1'
6+
xcode: '14.2.0'
77

88
steps:
99
- checkout
@@ -59,6 +59,13 @@ jobs:
5959
steps:
6060
- checkout
6161

62+
# XCode11 has a bug related to respecting system known_hosts. The CircleCI checkout
63+
# step is automatically setting all git URLs to use ssh. Since we do not have any
64+
# private dependencies in this repo, it is ok to not us SSH for fetching the dependencies
65+
- run:
66+
name: Remove Git SSH restriction (XCode 11 bug workaround)
67+
command: git config --global --remove-section url."ssh://git@github.com"
68+
6269
- run:
6370
name: Setup for builds
6471
command: |

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
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+
## [8.1.0] - 2023-06-05
6+
### Changed:
7+
- Enforce TLS v1.2 as a required minimum.
8+
9+
### Fixed:
10+
- Allow setting kind through `trySet`.
11+
512
## [8.0.1] - 2023-02-28
613
### Fixed:
714
- Remove the extra `privateAttributes` meta field from the event payload. This extra field prevented LaunchDarkly services from accepting SDK events when private attributes were specified.

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 = "8.0.1"
5+
ld.version = "8.1.0"
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', '3.0.0'
38+
es.dependency 'LDSwiftEventSource', '3.1.0'
3939
end
4040
end

LaunchDarkly.xcodeproj/project.pbxproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@
15031503
GCC_C_LANGUAGE_STANDARD = gnu11;
15041504
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
15051505
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1506-
MARKETING_VERSION = 8.0.1;
1506+
MARKETING_VERSION = 8.1.0;
15071507
MODULEMAP_FILE = "";
15081508
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-tvOS";
15091509
PRODUCT_NAME = LaunchDarkly_tvOS;
@@ -1526,7 +1526,7 @@
15261526
GCC_C_LANGUAGE_STANDARD = gnu11;
15271527
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
15281528
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1529-
MARKETING_VERSION = 8.0.1;
1529+
MARKETING_VERSION = 8.1.0;
15301530
MODULEMAP_FILE = "";
15311531
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-tvOS";
15321532
PRODUCT_NAME = LaunchDarkly_tvOS;
@@ -1549,7 +1549,7 @@
15491549
GCC_C_LANGUAGE_STANDARD = gnu11;
15501550
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
15511551
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1552-
MARKETING_VERSION = 8.0.1;
1552+
MARKETING_VERSION = 8.1.0;
15531553
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-macOS";
15541554
PRODUCT_NAME = LaunchDarkly_macOS;
15551555
SDKROOT = macosx;
@@ -1570,7 +1570,7 @@
15701570
GCC_C_LANGUAGE_STANDARD = gnu11;
15711571
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
15721572
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1573-
MARKETING_VERSION = 8.0.1;
1573+
MARKETING_VERSION = 8.1.0;
15741574
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-macOS";
15751575
PRODUCT_NAME = LaunchDarkly_macOS;
15761576
SDKROOT = macosx;
@@ -1614,7 +1614,7 @@
16141614
CURRENT_PROJECT_VERSION = 1;
16151615
DEBUG_INFORMATION_FORMAT = dwarf;
16161616
DYLIB_COMPATIBILITY_VERSION = 8.0.0;
1617-
DYLIB_CURRENT_VERSION = 8.0.1;
1617+
DYLIB_CURRENT_VERSION = 8.1.0;
16181618
ENABLE_STRICT_OBJC_MSGSEND = YES;
16191619
ENABLE_TESTABILITY = YES;
16201620
FRAMEWORK_VERSION = E;
@@ -1685,7 +1685,7 @@
16851685
CURRENT_PROJECT_VERSION = 1;
16861686
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
16871687
DYLIB_COMPATIBILITY_VERSION = 8.0.0;
1688-
DYLIB_CURRENT_VERSION = 8.0.1;
1688+
DYLIB_CURRENT_VERSION = 8.1.0;
16891689
ENABLE_NS_ASSERTIONS = NO;
16901690
ENABLE_STRICT_OBJC_MSGSEND = YES;
16911691
FRAMEWORK_VERSION = E;
@@ -1724,7 +1724,7 @@
17241724
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
17251725
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
17261726
LD_DYLIB_INSTALL_NAME = "$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)";
1727-
MARKETING_VERSION = 8.0.1;
1727+
MARKETING_VERSION = 8.1.0;
17281728
MODULEMAP_FILE = "$(PROJECT_DIR)/Framework/module.modulemap";
17291729
PRODUCT_BUNDLE_IDENTIFIER = com.launchdarkly.Darkly;
17301730
PRODUCT_NAME = LaunchDarkly;
@@ -1744,7 +1744,7 @@
17441744
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
17451745
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
17461746
LD_DYLIB_INSTALL_NAME = "$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)";
1747-
MARKETING_VERSION = 8.0.1;
1747+
MARKETING_VERSION = 8.1.0;
17481748
MODULEMAP_FILE = "$(PROJECT_DIR)/Framework/module.modulemap";
17491749
PRODUCT_BUNDLE_IDENTIFIER = com.launchdarkly.Darkly;
17501750
PRODUCT_NAME = LaunchDarkly;
@@ -1786,7 +1786,7 @@
17861786
GCC_C_LANGUAGE_STANDARD = gnu11;
17871787
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
17881788
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1789-
MARKETING_VERSION = 8.0.1;
1789+
MARKETING_VERSION = 8.1.0;
17901790
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-watchOS";
17911791
PRODUCT_NAME = LaunchDarkly_watchOS;
17921792
SDKROOT = watchos;
@@ -1808,7 +1808,7 @@
18081808
GCC_C_LANGUAGE_STANDARD = gnu11;
18091809
INFOPLIST_FILE = "$(PROJECT_DIR)/LaunchDarkly/LaunchDarkly/Support/Info.plist";
18101810
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
1811-
MARKETING_VERSION = 8.0.1;
1811+
MARKETING_VERSION = 8.1.0;
18121812
PRODUCT_BUNDLE_IDENTIFIER = "com.launchdarkly.Darkly-watchOS";
18131813
PRODUCT_NAME = LaunchDarkly_watchOS;
18141814
SDKROOT = watchos;
@@ -1882,7 +1882,7 @@
18821882
repositoryURL = "https://github.com/LaunchDarkly/swift-eventsource.git";
18831883
requirement = {
18841884
kind = exactVersion;
1885-
version = 3.0.0;
1885+
version = 3.1.0;
18861886
};
18871887
};
18881888
B4903D9624BD61B200F087C4 /* XCRemoteSwiftPackageReference "OHHTTPStubs" */ = {

LaunchDarkly/LaunchDarkly/Models/Context/LDContext.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,8 @@ public struct LDContextBuilder {
689689
case ("", _):
690690
Log.debug(typeName(and: #function) + ": Provided attribute is empty. Ignoring.")
691691
return false
692-
case ("kind", .string(kind)):
693-
self.kind(kind)
692+
case ("kind", .string(let val)):
693+
self.kind(val)
694694
case ("kind", _):
695695
return false
696696
case ("key", .string(let val)):

LaunchDarkly/LaunchDarkly/Networking/DarklyService.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ final class DarklyService: DarklyServiceProvider {
6767
self.httpHeaders = HTTPHeaders(config: config, environmentReporter: serviceFactory.makeEnvironmentReporter())
6868
// URLSessionConfiguration is a class, but `.default` creates a new instance. This does not effect other session configuration.
6969
let sessionConfig = URLSessionConfiguration.default
70+
71+
if #available(iOS 13, macOS 10.15, tvOS 13, watchOS 6, *) {
72+
sessionConfig.tlsMinimumSupportedProtocolVersion = .TLSv12
73+
} else {
74+
sessionConfig.tlsMinimumSupportedProtocol = .tlsProtocol12
75+
}
76+
7077
// We always revalidate the cache which we handle manually
7178
sessionConfig.requestCachePolicy = .reloadIgnoringLocalCacheData
7279
sessionConfig.urlCache = nil

LaunchDarkly/LaunchDarkly/ServiceObjects/EnvironmentReporter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ struct EnvironmentReporter: EnvironmentReporting {
102102
#endif
103103

104104
var shouldThrottleOnlineCalls: Bool { !isDebugBuild }
105-
let sdkVersion = "8.0.1"
105+
let sdkVersion = "8.1.0"
106106
// Unfortunately, the following does not function in certain configurations, such as when included through SPM
107107
// var sdkVersion: String {
108108
// 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("3.0.0"))
22+
.package(name: "LDSwiftEventSource", url: "https://github.com/LaunchDarkly/swift-eventsource.git", .exact("3.1.0"))
2323
],
2424
targets: [
2525
.target(

README.md

Lines changed: 3 additions & 3 deletions
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: "8.0.1"))
52+
.package(url: "https://github.com/launchdarkly/ios-client-sdk.git", .upToNextMinor(from: "8.1.0"))
5353
]
5454
```
5555

@@ -60,7 +60,7 @@ To use the [CocoaPods](https://cocoapods.org) dependency manager to integrate La
6060
```ruby
6161
use_frameworks!
6262
target 'YourTargetName' do
63-
pod 'LaunchDarkly', '~> 8.0'
63+
pod 'LaunchDarkly', '~> 8.1'
6464
end
6565
```
6666

@@ -71,7 +71,7 @@ To use the [Carthage](https://github.com/Carthage/Carthage) dependency manager t
7171
To integrate LaunchDarkly into your Xcode project using Carthage, specify it in your `Cartfile`:
7272

7373
```ogdl
74-
github "launchdarkly/ios-client-sdk" ~> 8.0
74+
github "launchdarkly/ios-client-sdk" ~> 8.1
7575
```
7676

7777
### Manual installation

0 commit comments

Comments
 (0)