From dc75f764077050fb3815feda6726e8bad77a463c Mon Sep 17 00:00:00 2001 From: daniel-statsig Date: Fri, 14 Oct 2022 14:27:53 -0700 Subject: [PATCH] bump version --- Sources/Statsig/DeviceEnvironment.swift | 2 +- Statsig.podspec | 2 +- StatsigInternalObjC.podspec | 2 +- Tests/StatsigTests/ExposureLoggingSpec.swift | 24 ++++++++++---------- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Sources/Statsig/DeviceEnvironment.swift b/Sources/Statsig/DeviceEnvironment.swift index 2d00fad..f196a02 100644 --- a/Sources/Statsig/DeviceEnvironment.swift +++ b/Sources/Statsig/DeviceEnvironment.swift @@ -7,7 +7,7 @@ struct DeviceEnvironment { var deviceOS: String = "iOS" var sdkType: String = "ios-client" - var sdkVersion: String = "1.15.0" + var sdkVersion: String = "1.16.0" var sessionID: String? { UUID().uuidString } var systemVersion: String { UIDevice.current.systemVersion } var systemName: String { UIDevice.current.systemName } diff --git a/Statsig.podspec b/Statsig.podspec index be14d1e..944df4d 100644 --- a/Statsig.podspec +++ b/Statsig.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |spec| spec.name = "Statsig" - spec.version = "1.15.0" + spec.version = "1.16.0" spec.summary = "Statsig enables developers to ship code faster and more safely." spec.description = <<-DESC Statsig enables developers to ship code faster and more safely by providing: diff --git a/StatsigInternalObjC.podspec b/StatsigInternalObjC.podspec index 2fa7469..3a91e3f 100644 --- a/StatsigInternalObjC.podspec +++ b/StatsigInternalObjC.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |spec| spec.name = "StatsigInternalObjC" - spec.version = "1.15.0" + spec.version = "1.16.0" spec.summary = "Statsig enables developers to ship code faster and more safely." spec.description = <<-DESC Statsig enables developers to ship code faster and more safely. diff --git a/Tests/StatsigTests/ExposureLoggingSpec.swift b/Tests/StatsigTests/ExposureLoggingSpec.swift index f228443..0d5ee3c 100644 --- a/Tests/StatsigTests/ExposureLoggingSpec.swift +++ b/Tests/StatsigTests/ExposureLoggingSpec.swift @@ -61,7 +61,7 @@ class ExposureLoggingSpec: QuickSpec { it("logs gate exposures") { _ = Statsig.checkGate("a_gate") skipFrame() - expect(logs.count).to(be(1)) + expect(logs).to(haveCount(1)) expect(logs[0][jsonDict: "metadata"]?["gate"] as? String).to(equal("a_gate")) expect(logs[0]["eventName"]as? String).to(equal("statsig::gate_exposure")) } @@ -69,7 +69,7 @@ class ExposureLoggingSpec: QuickSpec { it("logs config exposures") { _ = Statsig.getConfig("a_config") skipFrame() - expect(logs.count).to(be(1)) + expect(logs).to(haveCount(1)) expect(logs[0][jsonDict: "metadata"]?["config"] as? String).to(equal("a_config")) expect(logs[0]["eventName"]as? String).to(equal("statsig::config_exposure")) } @@ -77,7 +77,7 @@ class ExposureLoggingSpec: QuickSpec { it("logs experiment exposures") { _ = Statsig.getExperiment("an_experiment") skipFrame() - expect(logs.count).to(be(1)) + expect(logs).to(haveCount(1)) expect(logs[0][jsonDict: "metadata"]?["config"] as? String).to(equal("an_experiment")) expect(logs[0]["eventName"]as? String).to(equal("statsig::config_exposure")) } @@ -86,7 +86,7 @@ class ExposureLoggingSpec: QuickSpec { let layer = Statsig.getLayer("a_layer") _ = layer.getValue(forKey: "a_bool", defaultValue: false) skipFrame() - expect(logs.count).to(be(1)) + expect(logs).to(haveCount(1)) expect(logs[0][jsonDict: "metadata"]?["config"] as? String).to(equal("a_layer")) expect(logs[0]["eventName"]as? String).to(equal("statsig::layer_exposure")) } @@ -96,26 +96,26 @@ class ExposureLoggingSpec: QuickSpec { it("does not log gate exposures") { _ = Statsig.checkGateWithExposureLoggingDisabled("a_gate") skipFrame() - expect(logs.count).to(be(0)) + expect(logs).to(haveCount(0)) } it("does not log config exposures") { _ = Statsig.getConfigWithExposureLoggingDisabled("a_config") skipFrame() - expect(logs.count).to(be(0)) + expect(logs).to(haveCount(0)) } it("does not log experiment exposures") { _ = Statsig.getExperimentWithExposureLoggingDisabled("an_experiment") skipFrame() - expect(logs.count).to(be(0)) + expect(logs).to(haveCount(0)) } it("does not log layer exposures") { let layer = Statsig.getLayerWithExposureLoggingDisabled("a_layer") _ = layer.getValue(forKey: "a_bool", defaultValue: false) skipFrame() - expect(logs.count).to(be(0)) + expect(logs).to(haveCount(0)) } } @@ -123,7 +123,7 @@ class ExposureLoggingSpec: QuickSpec { it("logs a manual gate exposure") { Statsig.manuallyLogGateExposure("a_gate") skipFrame() - expect(logs.count).to(be(1)) + expect(logs).to(haveCount(1)) expect(logs[0][jsonDict: "metadata"]?["gate"] as? String).to(equal("a_gate")) expect(logs[0][jsonDict: "metadata"]?["isManualExposure"] as? String).to(equal("true")) expect(logs[0]["eventName"]as? String).to(equal("statsig::gate_exposure")) @@ -132,7 +132,7 @@ class ExposureLoggingSpec: QuickSpec { it("logs a manual config exposure") { Statsig.manuallyLogConfigExposure("a_config") skipFrame() - expect(logs.count).to(be(1)) + expect(logs).to(haveCount(1)) expect(logs[0][jsonDict: "metadata"]?["config"] as? String).to(equal("a_config")) expect(logs[0][jsonDict: "metadata"]?["isManualExposure"] as? String).to(equal("true")) expect(logs[0]["eventName"]as? String).to(equal("statsig::config_exposure")) @@ -141,7 +141,7 @@ class ExposureLoggingSpec: QuickSpec { it("logs a manual experiment exposure") { Statsig.manuallyLogExperimentExposure("an_experiment") skipFrame() - expect(logs.count).to(be(1)) + expect(logs).to(haveCount(1)) expect(logs[0][jsonDict: "metadata"]?["config"] as? String).to(equal("an_experiment")) expect(logs[0][jsonDict: "metadata"]?["isManualExposure"] as? String).to(equal("true")) expect(logs[0]["eventName"]as? String).to(equal("statsig::config_exposure")) @@ -150,7 +150,7 @@ class ExposureLoggingSpec: QuickSpec { it("logs a manual layer param exposure") { Statsig.manuallyLogLayerParameterExposure("a_layer", "value") skipFrame() - expect(logs.count).to(be(1)) + expect(logs).to(haveCount(1)) expect(logs[0][jsonDict: "metadata"]?["config"] as? String).to(equal("a_layer")) expect(logs[0][jsonDict: "metadata"]?["isManualExposure"] as? String).to(equal("true")) expect(logs[0]["eventName"]as? String).to(equal("statsig::layer_exposure"))