forked from firebase/firebase-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FirebaseAuth.podspec
106 lines (100 loc) · 4.24 KB
/
FirebaseAuth.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Pod::Spec.new do |s|
s.name = 'FirebaseAuth'
s.version = '6.4.0'
s.summary = 'The official iOS client for Firebase Authentication (plus community support for macOS and tvOS)'
s.description = <<-DESC
Firebase Authentication allows you to manage your own account system without any backend code. It
supports email and password accounts, as well as several 3rd party authentication mechanisms.
DESC
s.homepage = 'https://firebase.google.com'
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.authors = 'Google, Inc.'
s.source = {
:git => 'https://github.com/firebase/firebase-ios-sdk.git',
:tag => 'Auth-' + s.version.to_s
}
s.social_media_url = 'https://twitter.com/Firebase'
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '10.0'
s.cocoapods_version = '>= 1.4.0'
s.static_framework = true
s.prefix_header_file = false
source = 'Firebase/Auth/Source/'
s.source_files = source + '**/*.[mh]'
s.osx.exclude_files = [
source + '**/FIRAuthNotificationManager.[mh]',
source + '**/FIRAuthAppCredentialManager.[mh]',
source + '**/FIRAuthAPNSTokenManager.[mh]',
source + '**/FIRAuthAPNSTokenType.[mh]',
source + '**/FIRAuthAPNSToken.[mh]',
source + '**/FIRAuthDefaultUIDelegate.[mh]',
source + '**/FIRAuthUIDelegate.h',
source + '**/FIRAuthURLPresenter.[mh]',
source + '**/FIRAuthWebView.[mh]',
source + '**/FIRAuthWebViewController.[mh]',
source + '**/FIRPhoneAuthCredential.[mh]',
source + '**/FIRPhoneAuthProvider.[mh]'
]
s.tvos.exclude_files = [
source + '**/FIRAuthURLPresenter.[mh]',
source + '**/FIRAuthWebView.[mh]',
source + '**/FIRAuthWebViewController.[mh]',
source + '**/FIRPhoneAuthCredential.[mh]',
source + '**/FIRPhoneAuthProvider.[mh]'
]
s.public_header_files = source + 'Public/*.h'
s.preserve_paths = [
'Firebase/Auth/README.md',
'Firebase/Auth/CHANGELOG.md'
]
s.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'FIRAuth_VERSION=' + s.version.to_s +
' FIRAuth_MINOR_VERSION=' + s.version.to_s.split(".")[0] + "." + s.version.to_s.split(".")[1]
}
s.framework = 'Security'
s.ios.framework = 'SafariServices'
s.dependency 'FirebaseAuthInterop', '~> 1.0'
s.dependency 'FirebaseCore', '~> 6.2'
s.dependency 'GoogleUtilities/AppDelegateSwizzler', '~> 6.2'
s.dependency 'GoogleUtilities/Environment', '~> 6.2'
s.dependency 'GTMSessionFetcher/Core', '~> 1.1'
s.test_spec 'unit' do |unit_tests|
unit_tests.source_files = 'Example/Auth/Tests/*.[mh]'
unit_tests.osx.exclude_files = [
'Example/Auth/Tests/FIRAuthAPNSTokenManagerTests.m',
'Example/Auth/Tests/FIRAuthAPNSTokenTests.m',
'Example/Auth/Tests/FIRAuthAppCredentialManagerTests.m',
'Example/Auth/Tests/FIRAuthNotificationManagerTests.m',
'Example/Auth/Tests/FIRAuthURLPresenterTests.m',
'Example/Auth/Tests/FIREmailLink*',
'Example/Auth/Tests/FIRPhoneAuthProviderTests.m',
'Example/Auth/Tests/FIRSendVerificationCode*',
'Example/Auth/Tests/FIRSignInWithGameCenterTests.m',
'Example/Auth/Tests/FIRVerifyClient*',
'Example/Auth/Tests/FIRVerifyPhoneNumber*',
'Example/Auth/Tests/FIROAuthProviderTests.m',
]
unit_tests.tvos.exclude_files = [
'Example/Auth/Tests/FIRAuthAPNSTokenManagerTests.m',
'Example/Auth/Tests/FIRAuthNotificationManagerTests.m',
'Example/Auth/Tests/FIRAuthURLPresenterTests.m',
'Example/Auth/Tests/FIREmailLink*',
'Example/Auth/Tests/FIRPhoneAuthProviderTests.m',
'Example/Auth/Tests/FIRSendVerificationCode*',
'Example/Auth/Tests/FIRSignInWithGameCenterTests.m',
'Example/Auth/Tests/FIRVerifyClient*',
'Example/Auth/Tests/FIRVerifyPhoneNumber*',
'Example/Auth/Tests/FIROAuthProviderTests.m',
]
# app_host is needed for tests with keychain
unit_tests.requires_app_host = true
unit_tests.pod_target_xcconfig = {
# Unit tests do library imports using Firebase/Auth/Source recursive relative paths.
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"/Firebase/Auth/Source/**',
}
unit_tests.dependency 'OCMock'
end
end