Skip to content

Commit

Permalink
Set configuration value to JSON's static prop.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed committed Nov 28, 2023
1 parent 1a0cd79 commit e7da180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/Segment/Configuration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class Configuration {
/// - Parameter writeKey: Your Segment write key value
public init(writeKey: String) {
self.values = Values(writeKey: writeKey)
JSON.jsonNonConformingNumberStrategy = self.values.jsonNonConformingNumberStrategy
// enable segment destination by default
var settings = Settings(writeKey: writeKey)
settings.integrations = try? JSON([
Expand Down

0 comments on commit e7da180

Please sign in to comment.