Skip to content

Commit

Permalink
Prepare 4.3.0 release (#200)
Browse files Browse the repository at this point in the history
* Changes user-device to device model identifier (#75)

* installs new deviceModel into EnvironmentReporter and renames old deviceModel to deviceType

* use CwSysCtl for macos model

* Replaced entire flag store ff array instead of in place manipulation

* Updated CHANGELOG and bumped version number

* Added correct copy behavior to FlagStore delete and update

* Improved CHANGELOG entry for 4.0.1

* Changed version to 4.1.0, updated CHANGELOG

* Update 4.1.0 release date

* installs ios-eventsource 4.0.2

* installs CocoaPods 1.7.2

* clears swift 5 update warning

* updates circle config to use xcode 10.2.1

* advances version to 4.1.1

* installs Nimble 8.0.2

* updates SwiftLint to 0.33.0

* Update 4.1.1 release date

* Improved CHANGELOG 4.1.1 description

* Made CHANGELOG 4.1.1 more consistent

* 4.1.2 release, updated version numbers and CHANGELOG

* Made 4.1.2 CHANGELOG entry more descriptive

* Rebuilt Connection Status, added unit tests, fixed warnings

* Changed guard to equals in Dictionary extension, changed ConnectionInformation to struct

* Fixed threading issues and reference semantics

* Improved ConnectionInformation toString, fixed background behavior

* Added network connectivity check, changed TimeIntervals to Optionals

* Added Connection Status files to correct Target Membership, added conditional compilation of network connectivity check for WatchOS

* PR review changes

* More PR review changes

* Even more PR review changes

* Removed ConnectionInformationCaching, removed redundant variables

* Simplified synchronizing error behavior for connection status

* DRY up setupListeners

* Fixed string cases for LastConnectionFailureReason Codable

* Forgot to add polling last successful connection

* Store is now in Cache dir, removed listeners and 1 ldclient.shared, changed TimeInterval to Date, changed two inout's to var's

* Added ConnectionModeChangedObserver

* Fixed confusing docstring, removed unnecessary flag synchronizer

* Changed getValue and toString to description

* Changed description to computed property

* Removed connectionModeCheck

* Improved background connection status behavior

* Changed ConnectionInformation description to computed property

* Added new identify method, updated swiftlint rules

* Made Identify actually change the user, fixed unit tests

* Removed unnecessary _user assignment

* Move swiftlint disable to LDClient, move user assignment into identifyInternal

* Added private setOnline and go functions for identify

* Forgot to replace go in guard with goIdentify

* Copied user property unit tests for identify

* Added optimization to not call setOnline when there is no completion and wasOnline is false

* Testing identifyInternal change in IH

* requested PR changes

* Fixed convertCachedData call count, some PR feedback fixes

* Simplified unit tests, added comment about thread safety

* Changed lastSuccessfulConnection to lastKnownFlagValidity, added on stream close listener

* Fixed handler

* Remove unnecessary import

* Changed eventSource access level

* Reset lastKnownFlagValidity to nil when we make a successful stream connection

* Made comment about lastKnownFlagValidity having a value more clear

* Changed guard let to if let in DarklyService EventSource extension

* Updated README, CHANGELOG, and podspec for 4.2.0

* [4.2.1] - 2019-11-15 (#81)

* Added 4.2.1 changes including Dictionary fix and test and eventsource version bump

* Added Carthage build files

* Added attribution to CHANGELOG

* Evaluation Reasons (#82)

* Initial Evaluation Reasons prototype

* Changed evaluationReasons to reasons, fixed mangled question mark in url query parameters

* Added errorKinds

* Added reason to debug events

* Changed reason nil handling in events

* Removed unnecessary private functions, removed event nil coalesce

* Event change for reason nil

* Removed if in Event for reason nil, added guard let NSNull for dictionary in Events

* Added reason null to normal variation calls

* Testing alternate reason null set

* Change Event comparison code to add reason

* Removed reason from event dictionary matches

* Removed Event Equatable reason and changed Event Dictionary matches

* Explicitly set featureflag reason property to nil when not send feature event for variationDetail

* Fixed DeprecatedCacheModel unit tests, added v6 model tests, added variation detail unit tests, changed event reason nil check

* Added variationDetail to objective c, fixed cache converter unit tests, deprecated variationAndSource

* Added new files to correct target membership

* Simplify featureflag reason nil check

* Removed unnecessary comments, deprecated objc variationAndSource

* Improved doc strings, cut down on variation doc string repetition, added reason tests for Event and EventReporter, added EvaluationDetail generic

* Added ObjCEvaluationDetail to correct target membership

* Differentiated objc evaluation detail return type, change reason constant in unit tests

* Removed Optional value on fallback variation

* Added Event test for reason false but flag reason present, cleaned up objc doc strings, changed optional types in objc evaluation detail

* Experimentation 1.5 (#83)

* Added trackReasons and metricValue as well as doc and unit tests

* Added unit tests for reason false track reason true, added objc track without metricValue, changed and trackReason to or trackReason

* Added explicit event store reason test

* Fixed objc track comment

* Updated reason to includeReason for clarity

* Explicitly check both feature and debug events

* Prepare version 4.3.0
  • Loading branch information
torchhound authored Dec 3, 2019
1 parent d166b83 commit a154e4f
Show file tree
Hide file tree
Showing 37 changed files with 1,046 additions and 154 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to the LaunchDarkly iOS SDK will be documented in this file.
### Multiple Environment clients
Version 4.0.0 does not support multiple environments. If you use version `2.14.0` or later and set `LDConfig`'s `secondaryMobileKeys` you will not be able to migrate to version `4.0.0`. Multiple Environments will be added in a future release to the Swift SDK.

## [4.3.0] - 2019-12-3
### Added
- Implemented `variationDetail` which returns an Evaluation Reason giving developers greater insight into why a value was returned.
- Added support for the latest Experimentation features allowing increased value from A/B/n testing. The `track` method now supports an additional `metricValue` parameter.

## [4.2.1] - 2019-11-15
### Changed
- Updated to `ios-eventsource` version `4.0.3`. This appends a platform name to bundle identifiers. (Thanks, [cswelin](https://github.com/launchdarkly/ios-eventsource/pull/28)!)
Expand Down
4 changes: 2 additions & 2 deletions LaunchDarkly.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |ld|

ld.name = "LaunchDarkly"
ld.version = "4.2.1"
ld.version = "4.3.0"
ld.summary = "iOS SDK for LaunchDarkly"

ld.description = <<-DESC
Expand All @@ -25,7 +25,7 @@ Pod::Spec.new do |ld|
ld.tvos.deployment_target = "9.0"
ld.osx.deployment_target = "10.10"

ld.source = { :git => "https://github.com/launchdarkly/ios-client-sdk.git", :tag => '4.2.1'}
ld.source = { :git => "https://github.com/launchdarkly/ios-client-sdk.git", :tag => '4.3.0'}

ld.source_files = "LaunchDarkly/LaunchDarkly/**/*.{h,m,swift}"

Expand Down
34 changes: 34 additions & 0 deletions LaunchDarkly.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,15 @@
83FEF8DF1F2667E4001CF12C /* EventReporter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83FEF8DE1F2667E4001CF12C /* EventReporter.swift */; };
C408884723033B3600420721 /* ConnectionInformationStore.swift in Sources */ = {isa = PBXBuildFile; fileRef = C408884623033B3600420721 /* ConnectionInformationStore.swift */; };
C408884923033B7500420721 /* ConnectionInformation.swift in Sources */ = {isa = PBXBuildFile; fileRef = C408884823033B7500420721 /* ConnectionInformation.swift */; };
C43C37E1236BA050003C1624 /* EvaluationDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = C43C37E0236BA050003C1624 /* EvaluationDetail.swift */; };
C43C37E32370DC7C003C1624 /* DeprecatedCacheModelV6.swift in Sources */ = {isa = PBXBuildFile; fileRef = C43C37E22370DC7C003C1624 /* DeprecatedCacheModelV6.swift */; };
C43C37E5238C8FCD003C1624 /* DeprecatedCacheModelV6Spec.swift in Sources */ = {isa = PBXBuildFile; fileRef = C43C37E4238C8FCD003C1624 /* DeprecatedCacheModelV6Spec.swift */; };
C43C37E6238DF22B003C1624 /* EvaluationDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = C43C37E0236BA050003C1624 /* EvaluationDetail.swift */; };
C43C37E7238DF22C003C1624 /* EvaluationDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = C43C37E0236BA050003C1624 /* EvaluationDetail.swift */; };
C43C37E8238DF22D003C1624 /* EvaluationDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = C43C37E0236BA050003C1624 /* EvaluationDetail.swift */; };
C43C37EA238DF238003C1624 /* DeprecatedCacheModelV6.swift in Sources */ = {isa = PBXBuildFile; fileRef = C43C37E22370DC7C003C1624 /* DeprecatedCacheModelV6.swift */; };
C43C37EB238DF238003C1624 /* DeprecatedCacheModelV6.swift in Sources */ = {isa = PBXBuildFile; fileRef = C43C37E22370DC7C003C1624 /* DeprecatedCacheModelV6.swift */; };
C43C37EC238DF239003C1624 /* DeprecatedCacheModelV6.swift in Sources */ = {isa = PBXBuildFile; fileRef = C43C37E22370DC7C003C1624 /* DeprecatedCacheModelV6.swift */; };
C443A40323145FB700145710 /* ConnectionInformation.swift in Sources */ = {isa = PBXBuildFile; fileRef = C408884823033B7500420721 /* ConnectionInformation.swift */; };
C443A40423145FBE00145710 /* ConnectionInformation.swift in Sources */ = {isa = PBXBuildFile; fileRef = C408884823033B7500420721 /* ConnectionInformation.swift */; };
C443A40523145FBF00145710 /* ConnectionInformation.swift in Sources */ = {isa = PBXBuildFile; fileRef = C408884823033B7500420721 /* ConnectionInformation.swift */; };
Expand All @@ -314,6 +323,10 @@
C443A41023186A4F00145710 /* ConnectionModeChangeObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = C443A40E23186A4F00145710 /* ConnectionModeChangeObserver.swift */; };
C443A41123186A4F00145710 /* ConnectionModeChangeObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = C443A40E23186A4F00145710 /* ConnectionModeChangeObserver.swift */; };
C443A41223186A4F00145710 /* ConnectionModeChangeObserver.swift in Sources */ = {isa = PBXBuildFile; fileRef = C443A40E23186A4F00145710 /* ConnectionModeChangeObserver.swift */; };
C4A6B65F23949AA20028C074 /* ObjCEvaluationDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4A6B65E23949AA20028C074 /* ObjCEvaluationDetail.swift */; };
C4A6B6602395207D0028C074 /* ObjCEvaluationDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4A6B65E23949AA20028C074 /* ObjCEvaluationDetail.swift */; };
C4A6B6612395207E0028C074 /* ObjCEvaluationDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4A6B65E23949AA20028C074 /* ObjCEvaluationDetail.swift */; };
C4A6B6622395207E0028C074 /* ObjCEvaluationDetail.swift in Sources */ = {isa = PBXBuildFile; fileRef = C4A6B65E23949AA20028C074 /* ObjCEvaluationDetail.swift */; };
E48F5215B96AE48D10185962 /* Pods_LaunchDarkly_tvOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DB95B7FEBDC1E23F47304829 /* Pods_LaunchDarkly_tvOS.framework */; };
/* End PBXBuildFile section */

Expand Down Expand Up @@ -458,8 +471,12 @@
B0A56C29F8C0E59F338F9A07 /* Pods-LaunchDarkly_tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LaunchDarkly_tvOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-LaunchDarkly_tvOS/Pods-LaunchDarkly_tvOS.release.xcconfig"; sourceTree = "<group>"; };
C408884623033B3600420721 /* ConnectionInformationStore.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectionInformationStore.swift; sourceTree = "<group>"; };
C408884823033B7500420721 /* ConnectionInformation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectionInformation.swift; sourceTree = "<group>"; };
C43C37E0236BA050003C1624 /* EvaluationDetail.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EvaluationDetail.swift; sourceTree = "<group>"; };
C43C37E22370DC7C003C1624 /* DeprecatedCacheModelV6.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeprecatedCacheModelV6.swift; sourceTree = "<group>"; };
C43C37E4238C8FCD003C1624 /* DeprecatedCacheModelV6Spec.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeprecatedCacheModelV6Spec.swift; sourceTree = "<group>"; };
C443A4092315AA4D00145710 /* NetworkReporter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NetworkReporter.swift; sourceTree = "<group>"; };
C443A40E23186A4F00145710 /* ConnectionModeChangeObserver.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectionModeChangeObserver.swift; sourceTree = "<group>"; };
C4A6B65E23949AA20028C074 /* ObjCEvaluationDetail.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ObjCEvaluationDetail.swift; sourceTree = "<group>"; };
D58D143F8FD161584B3FF3AF /* Pods-LaunchDarklyTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LaunchDarklyTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-LaunchDarklyTests/Pods-LaunchDarklyTests.release.xcconfig"; sourceTree = "<group>"; };
D6840A437019F1CB72997480 /* Pods-LaunchDarkly_iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LaunchDarkly_iOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-LaunchDarkly_iOS/Pods-LaunchDarkly_iOS.release.xcconfig"; sourceTree = "<group>"; };
D8204934C417AFCE089F38BC /* Pods-LaunchDarklyTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LaunchDarklyTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LaunchDarklyTests/Pods-LaunchDarklyTests.debug.xcconfig"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -642,6 +659,7 @@
83D1522F224D92D30054B6D4 /* DeprecatedCacheModelV4.swift */,
83D1522A224D91B90054B6D4 /* DeprecatedCacheModelV3.swift */,
832D68A6224A4668005F052A /* DeprecatedCacheModelV2.swift */,
C43C37E22370DC7C003C1624 /* DeprecatedCacheModelV6.swift */,
);
path = Cache;
sourceTree = "<group>";
Expand All @@ -656,6 +674,7 @@
83D15238225455D40054B6D4 /* DeprecatedCacheModelV4Spec.swift */,
83D15236225400CE0054B6D4 /* DeprecatedCacheModelV3Spec.swift */,
83D15234225299890054B6D4 /* DeprecatedCacheModelV2Spec.swift */,
C43C37E4238C8FCD003C1624 /* DeprecatedCacheModelV6Spec.swift */,
);
path = Cache;
sourceTree = "<group>";
Expand Down Expand Up @@ -741,6 +760,7 @@
835E1D461F68B3EC00184DB4 /* ObjcLDFlagValue.swift */,
835E1D421F685AC900184DB4 /* ObjcLDChangedFlag.swift */,
831D8B6C1F6B1F7B00ED65E8 /* ObjcLDVariationValue.swift */,
C4A6B65E23949AA20028C074 /* ObjCEvaluationDetail.swift */,
);
path = ObjectiveC;
sourceTree = "<group>";
Expand Down Expand Up @@ -815,6 +835,7 @@
83EBCB9F20D9A143003A7142 /* FlagChange */,
83EBCBA120D9A1BA003A7142 /* FlagRequestTracking */,
83EBCBA020D9A168003A7142 /* FlagValue */,
C43C37E0236BA050003C1624 /* EvaluationDetail.swift */,
);
path = FeatureFlag;
sourceTree = "<group>";
Expand Down Expand Up @@ -1395,6 +1416,7 @@
831188692113AE5900D77CB5 /* ObjcLDConfig.swift in Sources */,
831188602113AE3400D77CB5 /* Dictionary.swift in Sources */,
8311886C2113AE6400D77CB5 /* ObjcLDChangedFlag.swift in Sources */,
C43C37E8238DF22D003C1624 /* EvaluationDetail.swift in Sources */,
83906A7921190B4000D7D3C5 /* FlagValueCounter.swift in Sources */,
8311884C2113ADDE00D77CB5 /* FlagChangeObserver.swift in Sources */,
C443A41223186A4F00145710 /* ConnectionModeChangeObserver.swift in Sources */,
Expand All @@ -1412,6 +1434,7 @@
831188492113ADD400D77CB5 /* LDFlagBaseTypeConvertible.swift in Sources */,
8311885C2113AE2200D77CB5 /* HTTPHeaders.swift in Sources */,
832D68AA224A4668005F052A /* DeprecatedCacheModelV2.swift in Sources */,
C43C37EC238DF239003C1624 /* DeprecatedCacheModelV6.swift in Sources */,
831188562113AE0800D77CB5 /* FlagSynchronizer.swift in Sources */,
8311884A2113ADD700D77CB5 /* FeatureFlag.swift in Sources */,
8311885A2113AE1500D77CB5 /* Log.swift in Sources */,
Expand All @@ -1433,6 +1456,7 @@
831188472113ADCD00D77CB5 /* LDFlagValue.swift in Sources */,
831188442113ADC200D77CB5 /* LDConfig.swift in Sources */,
83906A7721190B1900D7D3C5 /* FlagRequestTracker.swift in Sources */,
C4A6B6622395207E0028C074 /* ObjCEvaluationDetail.swift in Sources */,
831188622113AE3A00D77CB5 /* Data.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -1447,6 +1471,7 @@
831EF34420655E730001C643 /* LDConfig.swift in Sources */,
831EF34520655E730001C643 /* LDClient.swift in Sources */,
832D689F224A3896005F052A /* DeprecatedCacheModelV5.swift in Sources */,
C4A6B6612395207E0028C074 /* ObjCEvaluationDetail.swift in Sources */,
831EF34620655E730001C643 /* LDUser.swift in Sources */,
831EF34720655E730001C643 /* LDFlagValue.swift in Sources */,
83D15232224D92D30054B6D4 /* DeprecatedCacheModelV4.swift in Sources */,
Expand Down Expand Up @@ -1485,6 +1510,7 @@
835E4C54206BDF8D004C6E6C /* EnvironmentReporter.swift in Sources */,
8372668E20D4439600BD1088 /* DateFormatter.swift in Sources */,
8370DF6E225E40B800F84810 /* DeprecatedCache.swift in Sources */,
C43C37E7238DF22C003C1624 /* EvaluationDetail.swift in Sources */,
835F43D320D0309A0070DE51 /* EventTrackingContext.swift in Sources */,
831EF35F20655E730001C643 /* Optional.swift in Sources */,
831EF36020655E730001C643 /* Data.swift in Sources */,
Expand All @@ -1497,6 +1523,7 @@
831EF36520655E730001C643 /* Thread.swift in Sources */,
83B1D7C92073F354006D1B1C /* CwlSysctl.swift in Sources */,
831EF36620655E730001C643 /* ObjcLDClient.swift in Sources */,
C43C37EB238DF238003C1624 /* DeprecatedCacheModelV6.swift in Sources */,
831EF36720655E730001C643 /* ObjcLDConfig.swift in Sources */,
831EF36820655E730001C643 /* ObjcLDUser.swift in Sources */,
831EF36920655E730001C643 /* ObjcLDFlagValue.swift in Sources */,
Expand Down Expand Up @@ -1532,6 +1559,7 @@
8358F25E1F474E5900ECE1AF /* LDChangedFlag.swift in Sources */,
8354AC6922418C0600CDE602 /* CacheableUserEnvironmentFlags.swift in Sources */,
83D559741FD87CC9002D10C8 /* KeyedValueCache.swift in Sources */,
C43C37E1236BA050003C1624 /* EvaluationDetail.swift in Sources */,
831AAE2C20A9E4F600B46DBA /* Throttler.swift in Sources */,
8354EFE11F26380700C05156 /* LDConfig.swift in Sources */,
C443A40F23186A4F00145710 /* ConnectionModeChangeObserver.swift in Sources */,
Expand All @@ -1549,6 +1577,7 @@
8354AC612241511D00CDE602 /* CacheableEnvironmentFlags.swift in Sources */,
83FEF8DF1F2667E4001CF12C /* EventReporter.swift in Sources */,
832D68A7224A4668005F052A /* DeprecatedCacheModelV2.swift in Sources */,
C43C37E32370DC7C003C1624 /* DeprecatedCacheModelV6.swift in Sources */,
831D2AAF2061AAA000B4AC3C /* Thread.swift in Sources */,
83B9A082204F6022000C3F17 /* FlagsUnchangedObserver.swift in Sources */,
8354EFE01F26380700C05156 /* LDClient.swift in Sources */,
Expand All @@ -1570,6 +1599,7 @@
838F96781FBA504A009CFC45 /* ClientServiceFactory.swift in Sources */,
83EBCBAC20D9C6A6003A7142 /* FlagCounter.swift in Sources */,
83DDBEFA1FA24AFB00E428B6 /* Array.swift in Sources */,
C4A6B65F23949AA20028C074 /* ObjCEvaluationDetail.swift in Sources */,
831D8B6D1F6B1F7B00ED65E8 /* ObjcLDVariationValue.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -1590,6 +1620,7 @@
83DDBF001FA2589900E428B6 /* FlagStoreSpec.swift in Sources */,
83D15237225400CE0054B6D4 /* DeprecatedCacheModelV3Spec.swift in Sources */,
83396BC91F7C3711000E256E /* DarklyServiceSpec.swift in Sources */,
C43C37E5238C8FCD003C1624 /* DeprecatedCacheModelV6Spec.swift in Sources */,
83EF67931F9945E800403126 /* EventSpec.swift in Sources */,
837E38C921E804ED0008A50C /* EnvironmentReporterSpec.swift in Sources */,
83B6E3F1222EFA3800FF2A6A /* ThreadSpec.swift in Sources */,
Expand Down Expand Up @@ -1656,6 +1687,7 @@
8354AC6A22418C0600CDE602 /* CacheableUserEnvironmentFlags.swift in Sources */,
83D9EC832062DEAB004D7FA6 /* KeyedValueCache.swift in Sources */,
831AAE2D20A9E4F600B46DBA /* Throttler.swift in Sources */,
C43C37E6238DF22B003C1624 /* EvaluationDetail.swift in Sources */,
83EBCBA420D9A1F3003A7142 /* FlagValueCounter.swift in Sources */,
83D9EC872062DEAB004D7FA6 /* FlagSynchronizer.swift in Sources */,
C443A41023186A4F00145710 /* ConnectionModeChangeObserver.swift in Sources */,
Expand All @@ -1673,6 +1705,7 @@
83D9EC8E2062DEAB004D7FA6 /* HTTPURLResponse.swift in Sources */,
83D9EC8F2062DEAB004D7FA6 /* HTTPURLRequest.swift in Sources */,
832D68A8224A4668005F052A /* DeprecatedCacheModelV2.swift in Sources */,
C43C37EA238DF238003C1624 /* DeprecatedCacheModelV6.swift in Sources */,
83D9EC902062DEAB004D7FA6 /* Dictionary.swift in Sources */,
831425B2206B030100F2EF36 /* EnvironmentReporter.swift in Sources */,
83D9EC912062DEAB004D7FA6 /* Optional.swift in Sources */,
Expand All @@ -1694,6 +1727,7 @@
83D9EC9B2062DEAB004D7FA6 /* ObjcLDFlagValue.swift in Sources */,
83EBCBAD20D9C6A6003A7142 /* FlagCounter.swift in Sources */,
83D9EC9C2062DEAB004D7FA6 /* ObjcLDChangedFlag.swift in Sources */,
C4A6B6602395207D0028C074 /* ObjCEvaluationDetail.swift in Sources */,
83D9EC9D2062DEAB004D7FA6 /* ObjcLDVariationValue.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
8 changes: 4 additions & 4 deletions LaunchDarkly/GeneratedCode/mocks.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ final class DeprecatedCacheMock: DeprecatedCache {
// MARK: model
var modelSetCount = 0
var setModelCallback: (() -> Void)?
var model: DeprecatedCacheModel = .version5 {
var model: DeprecatedCacheModel = .version6 {
didSet {
modelSetCount += 1
setModelCallback?()
Expand Down Expand Up @@ -333,10 +333,10 @@ final class EventReportingMock: EventReporting {
var recordFlagEvaluationEventsCallCount = 0
var recordFlagEvaluationEventsCallback: (() -> Void)?
//swiftlint:disable:next large_tuple
var recordFlagEvaluationEventsReceivedArguments: (flagKey: LDFlagKey, value: Any?, defaultValue: Any?, featureFlag: FeatureFlag?, user: LDUser)?
func recordFlagEvaluationEvents(flagKey: LDFlagKey, value: Any?, defaultValue: Any?, featureFlag: FeatureFlag?, user: LDUser) {
var recordFlagEvaluationEventsReceivedArguments: (flagKey: LDFlagKey, value: Any?, defaultValue: Any?, featureFlag: FeatureFlag?, user: LDUser, includeReason: Bool)?
func recordFlagEvaluationEvents(flagKey: LDFlagKey, value: Any?, defaultValue: Any?, featureFlag: FeatureFlag?, user: LDUser, includeReason: Bool) {
recordFlagEvaluationEventsCallCount += 1
recordFlagEvaluationEventsReceivedArguments = (flagKey: flagKey, value: value, defaultValue: defaultValue, featureFlag: featureFlag, user: user)
recordFlagEvaluationEventsReceivedArguments = (flagKey: flagKey, value: value, defaultValue: defaultValue, featureFlag: featureFlag, user: user, includeReason: includeReason)
recordFlagEvaluationEventsCallback?()
}

Expand Down
Loading

0 comments on commit a154e4f

Please sign in to comment.