lytics / ios-sdk

MIT License
0 stars 0 forks source link

Making api calls should be prevented if no api key is present #50

Closed mgacy closed 1 year ago

mgacy commented 2 years ago

Remove LyticsConfiguration.apiKey, call assertionFailure() if apiToken is empty, and change signature of Lytics.start method from:

start(_ configure: (inout LyticsConfiguration) -> Void)

to:

start(apiToken: String, configure: ((inout LyticsConfiguration) -> Void)? = nil)

Also renames apiKey to apiToken for consistency with Lytics documentation

Closes #39