Skip to content

Commit 3d61c54

Browse files
authored
[Infra] Switch back to building Auth with -warnings-as-errors (#13713)
1 parent 335f3d2 commit 3d61c54

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

FirebaseAuth.podspec

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ supports email and password accounts, as well as several 3rd party authenticatio
4848
'FirebaseAuth/README.md',
4949
'FirebaseAuth/CHANGELOG.md'
5050
]
51-
# TODO(#13704) Restore warnings-as-errors checking.
52-
# 'OTHER_SWIFT_FLAGS' => "$(inherited) #{ENV.key?('FIREBASE_CI') ? '-D FIREBASE_CI -warnings-as-errors' : ''}"
5351
s.pod_target_xcconfig = {
5452
'GCC_C_LANGUAGE_STANDARD' => 'c99',
5553
# The second path is to find FirebaseAuth-Swift.h from a pod gen project
5654
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}" "${OBJECT_FILE_DIR_normal}/${NATIVE_ARCH_ACTUAL}"',
57-
'OTHER_SWIFT_FLAGS' => "$(inherited) #{ENV.key?('FIREBASE_CI') ? '-D FIREBASE_CI' : ''}"
55+
'OTHER_SWIFT_FLAGS' => "$(inherited) #{ENV.key?('FIREBASE_CI') ? '-D FIREBASE_CI -warnings-as-errors' : ''}"
5856
}
5957
s.framework = 'Security'
6058
s.ios.framework = 'SafariServices'

FirebaseAuth/Tests/Unit/SwiftAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ class AuthAPI_hOnlyTests: XCTestCase {
365365
@available(iOS 13, tvOS 13, macOS 10.15, macCatalyst 13, watchOS 7, *)
366366
func FIRFedederatedAuthProvider_hAsync() async throws {
367367
let obj = FederatedAuthImplementation()
368-
try await _ = obj.credential(with: nil)
368+
_ = try await obj.credential(with: nil)
369369
}
370370
}
371371
#endif

0 commit comments

Comments
 (0)