File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ private extension Date {
1717/// Handles sending analytics events for the SDK.
1818final class Analytics {
1919 // MARK: - Configurable
20- /// Boolean value that enables or disables analytics collection. By default, this value is set to `false `.
21- var enabled : Bool = false {
20+ /// Boolean value that enables or disables analytics collection. By default, this value is set to `true `.
21+ var enabled : Bool = true {
2222 didSet {
2323 if !enabled {
2424 stop ( )
@@ -148,7 +148,7 @@ final class Analytics {
148148
149149 /// Starts the analytics collection. Safe to be run from a background thread.
150150 private func start( ) {
151- guard ! hasBeenStarted else { return }
151+ if hasBeenStarted { return }
152152 hasBeenStarted = true
153153
154154 Analytics . log ( " Starting... " )
@@ -166,7 +166,7 @@ final class Analytics {
166166
167167 /// Stops analytics collection.
168168 private func stop( ) {
169- guard hasBeenStarted else { return }
169+ if ! hasBeenStarted { return }
170170 hasBeenStarted = false
171171
172172 Analytics . log ( " Stopping... " )
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |spec |
22 spec . name = "IFTTTConnectSDK"
3- spec . version = "2.2 .0"
3+ spec . version = "2.3 .0"
44 spec . summary = "Allows your users to activate programmable IFTTT Connections directly in your app."
55 spec . description = <<-DESC
66 - Easily authenticate your services to IFTTT through the Connect Button
You can’t perform that action at this time.
0 commit comments