Skip to content

Commit 8c76e08

Browse files
committed
lint fixes
1 parent f22f83f commit 8c76e08

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

FirebaseAuth/Sources/Swift/User/User.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
// limitations under the License.
1414

1515
import Foundation
16-
import AuthenticationServices
16+
17+
#if os(iOS) || os(tvOS) || os(macOS) || targetEnvironment(macCatalyst)
18+
import AuthenticationServices
19+
#endif
1720

1821
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
1922
extension User: NSSecureCoding {}
@@ -1049,6 +1052,7 @@ extension User: NSSecureCoding {}
10491052
}
10501053

10511054
// MARK: Passkey Implementation
1055+
#if os(iOS) || os(tvOS) || os(macOS) || targetEnvironment(macCatalyst)
10521056

10531057
/// A cached passkey name being passed from startPasskeyEnrollment(withName:) call and consumed at finalizePasskeyEnrollment(withPlatformCredential:) call
10541058
private var passkeyName: String?
@@ -1085,6 +1089,7 @@ extension User: NSSecureCoding {}
10851089
)
10861090
return registrationRequest
10871091
}
1092+
#endif
10881093

10891094
// MARK: Internal implementations below
10901095

FirebaseAuth/Tests/Unit/StartPasskeyEnrollmentRequestTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class StartPasskeyEnrollmentRequestTests: XCTestCase {
5858
}
5959

6060
func testUnencodedHTTPRequestBodyWithTenantId() {
61-
//setting up fake auth to set tenantId
61+
// setting up fake auth to set tenantId
6262
let options = FirebaseOptions(googleAppID: "0:0000000000000:ios:0000000000000000",
6363
gcmSenderID: "00000000000000000-00000000000-000000000")
6464
options.apiKey = AuthTests.kFakeAPIKey

0 commit comments

Comments
 (0)