Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-statsig committed Oct 14, 2022
1 parent d6617b8 commit dc75f76
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Sources/Statsig/DeviceEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion Statsig.podspec
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion StatsigInternalObjC.podspec
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
24 changes: 12 additions & 12 deletions Tests/StatsigTests/ExposureLoggingSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,23 +61,23 @@ 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"))
}

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"))
}

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"))
}
Expand All @@ -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"))
}
Expand All @@ -96,34 +96,34 @@ 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))
}
}

describe("manual exposure logging") {
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"))
Expand All @@ -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"))
Expand All @@ -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"))
Expand All @@ -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"))
Expand Down

0 comments on commit dc75f76

Please sign in to comment.