|
| 1 | +// Copyright 2023 Google LLC |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +import Foundation |
| 16 | +import XCTest |
| 17 | + |
| 18 | +import FirebaseAuth |
| 19 | + |
| 20 | +/// Tests globals defined in Objective C sources. These globals are for backward compatibility and |
| 21 | +/// should not be used in new code. |
| 22 | +class SwiftGlobalTests: XCTestCase { |
| 23 | + func GlobalSymbolBuildTest() { |
| 24 | + let _ = NSNotification.Name.AuthStateDidChange |
| 25 | + let _: String = AuthErrorDomain |
| 26 | + let _: String = AuthErrorUserInfoNameKey |
| 27 | + let _: String = AuthErrorUserInfoEmailKey |
| 28 | + let _: String = AuthErrorUserInfoUpdatedCredentialKey |
| 29 | + let _: String = AuthErrorUserInfoMultiFactorResolverKey |
| 30 | + let _: String = EmailAuthProviderID |
| 31 | + let _: String = EmailLinkAuthSignInMethod |
| 32 | + let _: String = EmailPasswordAuthSignInMethod |
| 33 | + let _: String = FacebookAuthProviderID |
| 34 | + let _: String = FacebookAuthSignInMethod |
| 35 | + let _: String = GameCenterAuthProviderID |
| 36 | + let _: String = GameCenterAuthSignInMethod |
| 37 | + let _: String = GitHubAuthProviderID |
| 38 | + let _: String = GitHubAuthSignInMethod |
| 39 | + let _: String = GoogleAuthProviderID |
| 40 | + let _: String = GoogleAuthSignInMethod |
| 41 | + #if os(iOS) |
| 42 | + let _: String = PhoneMultiFactorID |
| 43 | + let _: String = TOTPMultiFactorID |
| 44 | + let _: String = PhoneAuthProviderID |
| 45 | + let _: String = PhoneAuthSignInMethod |
| 46 | + #endif |
| 47 | + let _: String = TwitterAuthProviderID |
| 48 | + let _: String = TwitterAuthSignInMethod |
| 49 | + } |
| 50 | +} |
0 commit comments