From 4be31e3111698510adb28b6591a7bffa1e039700 Mon Sep 17 00:00:00 2001 From: Daniel <95646168+daniel-statsig@users.noreply.github.com> Date: Wed, 4 Jan 2023 18:28:06 -0800 Subject: [PATCH] Add explicit layer typing (#138) * Add explicit layer typing * bump version --- Sources/Statsig/DeviceEnvironment.swift | 2 +- Sources/Statsig/InternalStore.swift | 2 +- Statsig.podspec | 2 +- StatsigInternalObjC.podspec | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Statsig/DeviceEnvironment.swift b/Sources/Statsig/DeviceEnvironment.swift index 22c8564..93f19c8 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.17.0" + var sdkVersion: String = "1.17.1" var sessionID: String? { UUID().uuidString } var systemVersion: String { UIDevice.current.systemVersion } var systemName: String { UIDevice.current.systemName } diff --git a/Sources/Statsig/InternalStore.swift b/Sources/Statsig/InternalStore.swift index 13c8f26..bd91741 100644 --- a/Sources/Statsig/InternalStore.swift +++ b/Sources/Statsig/InternalStore.swift @@ -313,7 +313,7 @@ class InternalStore { } func getLayer(client: StatsigClient?, forName layerName: String, keepDeviceValue: Bool = false) -> Layer { - let latestValue = storeQueue.sync { + let latestValue: Layer = storeQueue.sync { if let override = (localOverrides[InternalStore.layerConfigsKey] as? [String: [String: Any]])?[layerName] { return Layer( client: nil, diff --git a/Statsig.podspec b/Statsig.podspec index cd3b932..5f902ab 100644 --- a/Statsig.podspec +++ b/Statsig.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |spec| spec.name = "Statsig" - spec.version = "1.17.0" + spec.version = "1.17.1" 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 f44aac8..c67ad20 100644 --- a/StatsigInternalObjC.podspec +++ b/StatsigInternalObjC.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |spec| spec.name = "StatsigInternalObjC" - spec.version = "1.17.0" + spec.version = "1.17.1" 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.