Skip to content

Commit

Permalink
make new public init function for StatsigEnvironment (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkw-statsig authored Feb 7, 2023
1 parent fe20186 commit 43c58a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Statsig/DeviceEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ struct DeviceEnvironment {

var deviceOS: String = "iOS"
var sdkType: String = "ios-client"
var sdkVersion: String = "1.18.2"
var sdkVersion: String = "1.19.0"
var sessionID: String? { UUID().uuidString }
var systemVersion: String { PlatformCompatibility.deviceInfo.systemVersion }
var systemName: String { PlatformCompatibility.deviceInfo.systemName }
Expand Down
4 changes: 4 additions & 0 deletions Sources/Statsig/StatsigEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ import Foundation
}
}
}

@objc public init(tier: String) {
self.params["tier"] = tier
}
}
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.18.2"
spec.version = "1.19.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

0 comments on commit 43c58a4

Please sign in to comment.