Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 629283f

Browse files
LaunchDarklyReleaseBotyusintoLaunchDarklyReleaseBottanderson-ld
authored
prepare 8.2.0 release (#260)
## [8.2.0] - 2024-03-18 ### Added: - iOS: Stores and uses e-tag header between SDK initializations for improved initialization ### Changed: - iOS: Calling identify() with a context that is identical to the SDK's current context is now more efficient, and no longer results in re-establishing a connection. ### Fixed: - iOS: Prevent null value changes to observe listeners - iOS: Fixed issue where flag change listeners were not being triggered when identify() was called. --------- Co-authored-by: Yusinto Ngadiman <[email protected]> Co-authored-by: LaunchDarklyReleaseBot <[email protected]> Co-authored-by: Todd Anderson <[email protected]>
1 parent 11900f5 commit 629283f

File tree

8 files changed

+3742
-4263
lines changed

8 files changed

+3742
-4263
lines changed

ManualTestApp/ios/Podfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ PODS:
7070
- FlipperKit/FlipperKitNetworkPlugin
7171
- fmt (6.2.1)
7272
- glog (0.3.5)
73-
- LaunchDarkly (9.1.1):
74-
- LaunchDarkly/Core (= 9.1.1)
75-
- launchdarkly-react-native-client-sdk (8.0.0):
76-
- LaunchDarkly (= 9.1.1)
73+
- LaunchDarkly (9.5.1):
74+
- LaunchDarkly/Core (= 9.5.1)
75+
- launchdarkly-react-native-client-sdk (8.1.0):
76+
- LaunchDarkly (= 9.5.1)
7777
- React-Core
78-
- LaunchDarkly/Core (9.1.1):
78+
- LaunchDarkly/Core (9.5.1):
7979
- LDSwiftEventSource (= 3.1.1)
8080
- LDSwiftEventSource (3.1.1)
8181
- libevent (2.1.12)
@@ -644,8 +644,8 @@ SPEC CHECKSUMS:
644644
FlipperKit: 2efad7007d6745a3f95e4034d547be637f89d3f6
645645
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
646646
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
647-
LaunchDarkly: 0f0e975716763d9b6cb911116174d1c81e967962
648-
launchdarkly-react-native-client-sdk: 7406ec4f65cc8e9b5f6bed744417185edf0be99e
647+
LaunchDarkly: c99ab2dc3d6c8ad1807933de6221b540546fb252
648+
launchdarkly-react-native-client-sdk: e4e5643d41320b82b982bc1efe24bc596b797f17
649649
LDSwiftEventSource: 3f9ff84ca80677f9a4f8596757dcb50026e4a13c
650650
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
651651
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
@@ -688,4 +688,4 @@ SPEC CHECKSUMS:
688688

689689
PODFILE CHECKSUM: 741d1103a57ae690e5c569aa60527fb577cb2f91
690690

691-
COCOAPODS: 1.12.1
691+
COCOAPODS: 1.13.0

ManualTestApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@react-native-picker/picker": "^2.2.1",
18-
"launchdarkly-react-native-client-sdk": "^8.0.0",
18+
"launchdarkly-react-native-client-sdk": "file:../",
1919
"react": "^18.2.0",
2020
"react-native": "^0.72.4"
2121
},

ManualTestApp/yarn.lock

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,10 +3471,8 @@ [email protected]:
34713471
fast-deep-equal "^2.0.1"
34723472
uuid "^8.0.0"
34733473

3474-
launchdarkly-react-native-client-sdk@^8.0.0:
3475-
version "8.0.0"
3476-
resolved "https://registry.yarnpkg.com/launchdarkly-react-native-client-sdk/-/launchdarkly-react-native-client-sdk-8.0.0.tgz#94f0bdbb08ca3cc7f97e19561a8903824e3ac875"
3477-
integrity sha512-5UoF6eDOvrvgVgekVk+xpD0u9ikiLuJj5NBrWq4m6c+wzXIcxtM2mDXpMHxLPVKgPljKzCb5JCRfytsq17XLAg==
3474+
"launchdarkly-react-native-client-sdk@file:..":
3475+
version "8.1.0"
34783476
dependencies:
34793477
launchdarkly-js-sdk-common "5.0.3"
34803478

ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ target 'LaunchdarklyReactNativeClient' do
2323
__apply_Xcode_12_5_M1_post_install_workaround(installer)
2424
end
2525

26-
pod 'LaunchDarkly', '9.1.1'
26+
pod 'LaunchDarkly', '9.5.1'
2727

2828
target 'Tests' do
2929
inherit! :complete

ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ PODS:
7070
- FlipperKit/FlipperKitNetworkPlugin
7171
- fmt (6.2.1)
7272
- glog (0.3.5)
73-
- LaunchDarkly (9.1.1):
74-
- LaunchDarkly/Core (= 9.1.1)
75-
- LaunchDarkly/Core (9.1.1):
73+
- LaunchDarkly (9.5.1):
74+
- LaunchDarkly/Core (= 9.5.1)
75+
- LaunchDarkly/Core (9.5.1):
7676
- LDSwiftEventSource (= 3.1.1)
7777
- LDSwiftEventSource (3.1.1)
7878
- libevent (2.1.12)
@@ -484,7 +484,7 @@ DEPENDENCIES:
484484
- FlipperKit/FlipperKitUserDefaultsPlugin (= 0.182.0)
485485
- FlipperKit/SKIOSNetworkPlugin (= 0.182.0)
486486
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
487-
- LaunchDarkly (= 9.1.1)
487+
- LaunchDarkly (= 9.5.1)
488488
- OpenSSL-Universal (= 1.1.1100)
489489
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
490490
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
@@ -634,7 +634,7 @@ SPEC CHECKSUMS:
634634
FlipperKit: 2efad7007d6745a3f95e4034d547be637f89d3f6
635635
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
636636
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
637-
LaunchDarkly: 0f0e975716763d9b6cb911116174d1c81e967962
637+
LaunchDarkly: c99ab2dc3d6c8ad1807933de6221b540546fb252
638638
LDSwiftEventSource: 3f9ff84ca80677f9a4f8596757dcb50026e4a13c
639639
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
640640
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
@@ -674,6 +674,6 @@ SPEC CHECKSUMS:
674674
Yoga: 3efc43e0d48686ce2e8c60f99d4e6bd349aff981
675675
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
676676

677-
PODFILE CHECKSUM: 70f5e503358a12a8252bbdd6b07ebae69b9ba397
677+
PODFILE CHECKSUM: fc412c478e69603f5ec24ff0f06f2d9e20ef63a4
678678

679-
COCOAPODS: 1.12.1
679+
COCOAPODS: 1.13.0

ios/Tests/Tests.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ final class Tests: XCTestCase {
107107
func testCreateSingleContext() throws {
108108
let dict = createEmployeeContext()
109109
let context = try LaunchdarklyReactNativeClient().createSingleContext(dict as NSDictionary, dict["kind"] as! String)
110-
let anonymous = Bool.init(fromLDValue: context.getValue(Reference("anonymous"))!)
111-
let name = String.init(fromLDValue: context.getValue(Reference("name"))!)
110+
let anonymous = context.getValue(Reference("anonymous"))!
111+
let name = context.getValue(Reference("name"))!
112112

113113
XCTAssertEqual(context.kind, Kind.custom("employee"))
114114
XCTAssertEqual(context.contextKeys(), ["employee": "blr123"])
115-
XCTAssertTrue(anonymous!)
115+
XCTAssertEqual(true, anonymous)
116116
XCTAssertEqual(name, "Yus")
117117
XCTAssertEqual(context.attributes, ["employeeNumber": LDValue.number(55.0), "address": LDValue.object(["number": LDValue.number(321.0), "street": LDValue.string("Sunset Blvd")]), "isActive": LDValue.bool(true)])
118118
XCTAssertEqual(context.privateAttributes, [Reference("address"), Reference("employeeNumber")])
@@ -125,11 +125,10 @@ final class Tests: XCTestCase {
125125
func testAnonymousNoKey() throws {
126126
let dict = jsonToDict(anonymousNoKey)
127127
let context = try LaunchdarklyReactNativeClient().createSingleContext(dict as NSDictionary, dict["kind"] as! String)
128-
let anonymous = Bool.init(fromLDValue: context.getValue(Reference("anonymous"))!)
129-
let uuid = UUID(uuidString: String(fromLDValue: context.getValue(Reference("key"))!)!)
130-
131-
XCTAssertTrue(anonymous!)
132-
XCTAssertNotNil(uuid)
128+
let anonymous = context.getValue(Reference("anonymous"))!
129+
let uuid = context.getValue(Reference("key"))!
130+
XCTAssertEqual(true, anonymous)
131+
XCTAssertNotEqual(LDValue.null, uuid)
133132
}
134133

135134
func testCreateMultiContext() throws {

launchdarkly-react-native-client-sdk.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Pod::Spec.new do |s|
1515
s.swift_version = "5.0"
1616

1717
s.dependency "React-Core"
18-
s.dependency "LaunchDarkly", "9.1.1"
18+
s.dependency "LaunchDarkly", "9.5.1"
1919

2020
end

0 commit comments

Comments
 (0)