Skip to content

Commit c98fd6e

Browse files
committed
Make all helper functions publicly accessible & add documentation todo
1 parent b91f46b commit c98fd6e

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed
File renamed without changes.

Sources/TelemetryDeck/PirateMetrics/TelemetryDeck+Acquisition.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import Foundation
22

3-
public extension TelemetryDeck {
4-
static func acquiredUser(
3+
extension TelemetryDeck {
4+
// TODO: add documentation comment with common/recommended usage examples
5+
public static func acquiredUser(
56
channel: String,
67
parameters: [String: String] = [:],
78
customUserID: String? = nil
@@ -17,7 +18,8 @@ public extension TelemetryDeck {
1718
)
1819
}
1920

20-
static func leadStarted(
21+
// TODO: add documentation comment with common/recommended usage examples
22+
public static func leadStarted(
2123
leadID: String,
2224
parameters: [String: String] = [:],
2325
customUserID: String? = nil
@@ -31,7 +33,8 @@ public extension TelemetryDeck {
3133
)
3234
}
3335

34-
static func leadConverted(
36+
// TODO: add documentation comment with common/recommended usage examples
37+
public static func leadConverted(
3538
leadID: String,
3639
parameters: [String: String] = [:],
3740
customUserID: String? = nil

Sources/TelemetryDeck/PirateMetrics/TelemetryDeck+Activation.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import Foundation
22

33
extension TelemetryDeck {
4-
static func onboardingCompleted(
4+
// TODO: add documentation comment with common/recommended usage examples
5+
public static func onboardingCompleted(
56
parameters: [String: String] = [:],
67
customUserID: String? = nil
78
) {
@@ -14,7 +15,8 @@ extension TelemetryDeck {
1415
)
1516
}
1617

17-
static func coreFeatureUsed(
18+
// TODO: add documentation comment with common/recommended usage examples
19+
public static func coreFeatureUsed(
1820
featureName: String,
1921
parameters: [String: String] = [:],
2022
customUserID: String? = nil

Sources/TelemetryDeck/PirateMetrics/TelemetryDeck+Referral.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import Foundation
22

33
extension TelemetryDeck {
4-
static func referralSent(
4+
// TODO: add documentation comment with common/recommended usage examples
5+
public static func referralSent(
56
receiversCount: Int = 1,
67
kind: String? = nil,
78
parameters: [String: String] = [:],
@@ -21,8 +22,9 @@ extension TelemetryDeck {
2122
)
2223
}
2324

25+
// TODO: add documentation comment with common/recommended usage examples
2426
// TODO: explicitly mention how this can be used for NPS Score or for App Store like ratings
25-
static func userRatingSubmitted(
27+
public static func userRatingSubmitted(
2628
rating: Int,
2729
comment: String? = nil,
2830
parameters: [String: String] = [:],

Sources/TelemetryDeck/PirateMetrics/TelemetryDeck+Revenue.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import Foundation
22

33
extension TelemetryDeck {
4-
static func paywallShown(
4+
// TODO: add documentation comment with common/recommended usage examples
5+
public static func paywallShown(
56
reason: String,
67
parameters: [String: String] = [:],
78
customUserID: String? = nil

0 commit comments

Comments
 (0)