Skip to content

Commit 7509a04

Browse files
authored
Merge pull request #213 from IFTTT/feature/2.3.0_release_podspec_update
Updating podspec for 2.3.0 and enabling analytics collection by default
2 parents 9a48c1c + b3d526e commit 7509a04

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

IFTTT SDK/Analytics.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ private extension Date {
1717
/// Handles sending analytics events for the SDK.
1818
final 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...")

IFTTTConnectSDK.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::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

0 commit comments

Comments
 (0)