forked from NOUIY/firebase-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFirebaseFunctions.podspec
72 lines (62 loc) · 2.55 KB
/
FirebaseFunctions.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
Pod::Spec.new do |s|
s.name = 'FirebaseFunctions'
s.version = '8.12.0'
s.summary = 'Cloud Functions for Firebase'
s.description = <<-DESC
Cloud Functions for Firebase.
DESC
s.homepage = 'https://developers.google.com/'
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.authors = 'Google, Inc.'
s.source = {
:git => 'https://github.com/firebase/firebase-ios-sdk.git',
:tag => 'CocoaPods-' + s.version.to_s
}
s.ios.deployment_target = '10.0'
s.osx.deployment_target = '10.12'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '6.0'
s.cocoapods_version = '>= 1.4.0'
s.prefix_header_file = false
s.source_files = [
'FirebaseFunctions/Sources/**/*',
'Interop/Auth/Public/*.h',
'FirebaseAppCheck/Sources/Interop/*.h',
'FirebaseCore/Sources/Private/*.h',
'FirebaseMessaging/Sources/Interop/FIRMessagingInterop.h',
]
s.public_header_files = 'FirebaseFunctions/Sources/Public/FirebaseFunctions/*.h'
s.dependency 'FirebaseCore', '~> 8.0'
s.dependency 'GTMSessionFetcher/Core', '~> 1.5'
s.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
}
s.test_spec 'unit' do |unit_tests|
unit_tests.scheme = { :code_coverage => true }
unit_tests.source_files = [
'FirebaseFunctions/Tests/Unit/*.[mh]',
'FirebaseFunctions/Tests/SwiftUnit/**/*',
'SharedTestUtilities/FIRAuthInteropFake*',
'SharedTestUtilities/FIRMessagingInteropFake*',
'SharedTestUtilities/AppCheckFake/*.[mh]',
]
end
s.test_spec 'integration' do |int_tests|
int_tests.scheme = { :code_coverage => true }
int_tests.source_files = 'FirebaseFunctions/Tests/Integration/*.[mh]',
'SharedTestUtilities/FIRAuthInteropFake*',
'SharedTestUtilities/FIRMessagingInteropFake*'
end
# Using environment variable because of the dependency on the unpublished
# FirebaseFunctionsTestingSupport.
if ENV['POD_LIB_LINT_ONLY'] && ENV['POD_LIB_LINT_ONLY'] == '1' then
s.test_spec 'swift-integration' do |swift_int|
swift_int.platforms = {:ios => '15.0', :osx => '12.0', :tvos => '15.0', :watchos => '8.0'}
swift_int.scheme = { :code_coverage => true }
swift_int.dependency 'FirebaseFunctionsTestingSupport'
swift_int.source_files = 'FirebaseFunctions/Tests/SwiftIntegration/*',
'FirebaseTestingSupport/Functions/Sources/*'
end
end
end