From 4a952c4a61e7ac51d85dd7fe4bd494f1b26401f5 Mon Sep 17 00:00:00 2001 From: Maddie Beyl Date: Fri, 22 Apr 2022 06:28:50 -0400 Subject: [PATCH] fix lint --- Sources/Attribution/AttributionPoster.swift | 3 ++- Tests/UnitTests/Purchasing/PurchasesTests.swift | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/Attribution/AttributionPoster.swift b/Sources/Attribution/AttributionPoster.swift index 9b66470651..9a669250cf 100644 --- a/Sources/Attribution/AttributionPoster.swift +++ b/Sources/Attribution/AttributionPoster.swift @@ -130,7 +130,7 @@ class AttributionPoster { } } - @available(iOS 14.3, *) + @available(iOS 14.3, macOS 11.1, macCatalyst 14.3, *) func postAdServicesTokenIfNeeded() { let latestTokenSent = latestNetworkIdAndAdvertisingIdentifierSent(network: .adServices) guard latestTokenSent == nil else { @@ -141,6 +141,7 @@ class AttributionPoster { return } + Logger.debug("Logging attribution token for now to avoid lint warning: \(attributionToken)") // post } diff --git a/Tests/UnitTests/Purchasing/PurchasesTests.swift b/Tests/UnitTests/Purchasing/PurchasesTests.swift index 73dd1feb13..78f437ddf4 100644 --- a/Tests/UnitTests/Purchasing/PurchasesTests.swift +++ b/Tests/UnitTests/Purchasing/PurchasesTests.swift @@ -304,7 +304,7 @@ class PurchasesTests: XCTestCase { func setupPurchases(automaticCollection: Bool = false) { Purchases.automaticAppleSearchAdsAttributionCollection = automaticCollection - if #available(iOS 14.3, macOS 11.1, macCatalyst 14.3, *){ + if #available(iOS 14.3, macOS 11.1, macCatalyst 14.3, *) { Purchases.automaticAdServicesAttributionTokenCollection = automaticCollection } self.identityManager.mockIsAnonymous = false