Remove cocoapods-keys. Use UUID for analytics.

Make configuration optional.
This commit is contained in:
Doug
2021-11-24 11:07:34 +00:00
parent 7a683870ca
commit 0b08bddc76
8 changed files with 15 additions and 35 deletions
@@ -35,11 +35,7 @@ struct AnalyticsSettings {
/// Generate a new random analytics ID. This method has no effect if an ID already exists.
mutating func generateID() {
guard id == nil else { return }
// Generate a 32 character analytics ID containing the characters 0-f.
id = [UInt8](repeating: 0, count: 16)
.map { _ in String(format: "%02x", UInt8.random(in: 0...UInt8.max)) }
.joined()
id = UUID().uuidString
}
}