set the writeKey on segment config

This commit is contained in:
Satindar Dhillon 2022-04-28 10:21:16 -07:00
parent 30dcae7c10
commit b317e1b96b

View file

@ -25,7 +25,7 @@ private let segment: Analytics? = {
return nil
}
let config = Configuration(writeKey: "")
let config = Configuration(writeKey: writeKey)
.flushAt(20) // default is 20
.trackApplicationLifecycleEvents(false) // default is true
.autoAddSegmentDestination(false) // default is true