Skip to content

Commit

Permalink
Cleanup - make methods private where possible & make BTAnalyticsServi…
Browse files Browse the repository at this point in the history
…ce final
  • Loading branch information
scannillo committed Jul 30, 2024
1 parent 0d5bc74 commit b2715cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/BraintreeCore/Analytics/BTAnalyticsService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ class BTAnalyticsService: AnalyticsSendable {
}
}

// MARK: - Helpers
// MARK: - Private Methods

func sendQueuedAnalyticsEvents() async {
private func sendQueuedAnalyticsEvents() async {
if await !events.isEmpty, let apiClient {
do {
let configuration = try await apiClient.fetchConfiguration()
Expand All @@ -92,7 +92,7 @@ class BTAnalyticsService: AnalyticsSendable {
}

/// Constructs POST params to be sent to FPTI
func createAnalyticsEvent(config: BTConfiguration, sessionID: String, events: [FPTIBatchData.Event]) -> Codable {
private func createAnalyticsEvent(config: BTConfiguration, sessionID: String, events: [FPTIBatchData.Event]) -> Codable {
let batchMetadata = FPTIBatchData.Metadata(
authorizationFingerprint: apiClient?.authorization.type == .clientToken ? apiClient?.authorization.bearer : nil,
environment: config.fptiEnvironment,
Expand Down

0 comments on commit b2715cd

Please sign in to comment.