@@ -58,57 +58,52 @@ supports email and password accounts, as well as several 3rd party authenticatio
58
58
s . dependency 'GoogleUtilities/Environment' , '~> 7.8'
59
59
s . dependency 'GTMSessionFetcher/Core' , '>= 2.1' , '< 4.0'
60
60
61
- # Using environment variable because of the dependency on the unpublished
62
- # HeartbeatLoggingTestUtils.
63
- if ENV [ 'POD_LIB_LINT_ONLY' ] && ENV [ 'POD_LIB_LINT_ONLY' ] == '1' then
64
- s . test_spec 'unit' do |unit_tests |
65
- unit_tests . scheme = { :code_coverage => true }
66
- # Unit tests can't run on watchOS.
67
- unit_tests . platforms = {
68
- :ios => ios_deployment_target ,
69
- :osx => osx_deployment_target ,
70
- :tvos => tvos_deployment_target
71
- }
72
- unit_tests . source_files = 'FirebaseAuth/Tests/Unit/*.[mh]'
73
- unit_tests . osx . exclude_files = [
74
- 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m' ,
75
- 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenTests.m' ,
76
- 'FirebaseAuth/Tests/Unit/FIRAuthAppCredentialManagerTests.m' ,
77
- 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m' ,
78
- 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m' ,
79
- 'FirebaseAuth/Tests/Unit/FIREmailLink*' ,
80
- 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m' ,
81
- 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*' ,
82
- 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m' ,
83
- 'FirebaseAuth/Tests/Unit/FIRVerifyClient*' ,
84
- 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*' ,
85
- 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m' ,
86
- 'FirebaseAuth/Tests/Unit/FIRMultiFactorResolverTests.m' ,
87
- ]
88
- unit_tests . tvos . exclude_files = [
89
- 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m' ,
90
- 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m' ,
91
- 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m' ,
92
- 'FirebaseAuth/Tests/Unit/FIREmailLink*' ,
93
- 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m' ,
94
- 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*' ,
95
- 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m' ,
96
- 'FirebaseAuth/Tests/Unit/FIRVerifyClient*' ,
97
- 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*' ,
98
- 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m' ,
99
- 'FirebaseAuth/Tests/Unit/FIRMultiFactorResolverTests.m' ,
100
- ]
101
- # app_host is needed for tests with keychain
102
- unit_tests . requires_app_host = true
103
- unit_tests . dependency 'OCMock'
104
- unit_tests . dependency 'HeartbeatLoggingTestUtils'
61
+ s . test_spec 'unit' do |unit_tests |
62
+ unit_tests . scheme = { :code_coverage => true }
63
+ # Unit tests can't run on watchOS.
64
+ unit_tests . platforms = {
65
+ :ios => ios_deployment_target ,
66
+ :osx => osx_deployment_target ,
67
+ :tvos => tvos_deployment_target
68
+ }
69
+ unit_tests . source_files = 'FirebaseAuth/Tests/Unit/*.[mh]'
70
+ unit_tests . osx . exclude_files = [
71
+ 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m' ,
72
+ 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenTests.m' ,
73
+ 'FirebaseAuth/Tests/Unit/FIRAuthAppCredentialManagerTests.m' ,
74
+ 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m' ,
75
+ 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m' ,
76
+ 'FirebaseAuth/Tests/Unit/FIREmailLink*' ,
77
+ 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m' ,
78
+ 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*' ,
79
+ 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m' ,
80
+ 'FirebaseAuth/Tests/Unit/FIRVerifyClient*' ,
81
+ 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*' ,
82
+ 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m' ,
83
+ 'FirebaseAuth/Tests/Unit/FIRMultiFactorResolverTests.m' ,
84
+ ]
85
+ unit_tests . tvos . exclude_files = [
86
+ 'FirebaseAuth/Tests/Unit/FIRAuthAPNSTokenManagerTests.m' ,
87
+ 'FirebaseAuth/Tests/Unit/FIRAuthNotificationManagerTests.m' ,
88
+ 'FirebaseAuth/Tests/Unit/FIRAuthURLPresenterTests.m' ,
89
+ 'FirebaseAuth/Tests/Unit/FIREmailLink*' ,
90
+ 'FirebaseAuth/Tests/Unit/FIRPhoneAuthProviderTests.m' ,
91
+ 'FirebaseAuth/Tests/Unit/FIRSendVerificationCode*' ,
92
+ 'FirebaseAuth/Tests/Unit/FIRSignInWithGameCenterTests.m' ,
93
+ 'FirebaseAuth/Tests/Unit/FIRVerifyClient*' ,
94
+ 'FirebaseAuth/Tests/Unit/FIRVerifyPhoneNumber*' ,
95
+ 'FirebaseAuth/Tests/Unit/FIROAuthProviderTests.m' ,
96
+ 'FirebaseAuth/Tests/Unit/FIRMultiFactorResolverTests.m' ,
97
+ ]
98
+ # app_host is needed for tests with keychain
99
+ unit_tests . requires_app_host = true
100
+ unit_tests . dependency 'OCMock'
105
101
106
- # This pre-processor directive is used to selectively disable keychain
107
- # related code that blocks unit testing on macOS.
108
- s . osx . pod_target_xcconfig = {
109
- 'GCC_PREPROCESSOR_DEFINITIONS' => 'FIREBASE_AUTH_MACOS_TESTING=1'
110
- }
102
+ # This pre-processor directive is used to selectively disable keychain
103
+ # related code that blocks unit testing on macOS.
104
+ s . osx . pod_target_xcconfig = {
105
+ 'GCC_PREPROCESSOR_DEFINITIONS' => 'FIREBASE_AUTH_MACOS_TESTING=1'
106
+ }
111
107
112
- end
113
108
end
114
109
end
0 commit comments