forked from firebase/firebase-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FirebaseCrashlytics.podspec
130 lines (114 loc) · 4.6 KB
/
FirebaseCrashlytics.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Pod::Spec.new do |s|
s.name = 'FirebaseCrashlytics'
s.version = '11.3.0'
s.summary = 'Best and lightest-weight crash reporting for mobile, desktop and tvOS.'
s.description = 'Firebase Crashlytics helps you track, prioritize, and fix stability issues that erode app quality.'
s.homepage = 'https://firebase.google.com/'
s.license = { :type => 'Apache-2.0', :file => 'Crashlytics/LICENSE' }
s.authors = 'Google, Inc.'
s.source = {
:git => 'https://github.com/firebase/firebase-ios-sdk.git',
:tag => 'CocoaPods-' + s.version.to_s
}
ios_deployment_target = '12.0'
osx_deployment_target = '10.15'
tvos_deployment_target = '13.0'
watchos_deployment_target = '7.0'
s.swift_version = '5.9'
s.ios.deployment_target = ios_deployment_target
s.osx.deployment_target = osx_deployment_target
s.tvos.deployment_target = tvos_deployment_target
s.watchos.deployment_target = watchos_deployment_target
s.cocoapods_version = '>= 1.12.0'
s.prefix_header_file = false
s.source_files = [
'Crashlytics/Crashlytics/**/*.{c,h,m,mm,swift}',
'Crashlytics/Protogen/**/*.{c,h,m,mm}',
'Crashlytics/Shared/**/*.{c,h,m,mm}',
'Crashlytics/third_party/**/*.{c,h,m,mm}',
'FirebaseCore/Extension/*.h',
'FirebaseInstallations/Source/Library/Private/*.h',
'Interop/Analytics/Public/*.h',
]
s.resource_bundles = {
"#{s.module_name}_Privacy" => 'Crashlytics/Resources/PrivacyInfo.xcprivacy'
}
s.public_header_files = [
'Crashlytics/Crashlytics/Public/FirebaseCrashlytics/*.h'
]
s.preserve_paths = [
'Crashlytics/README.md',
'run',
'upload-symbols',
'CrashlyticsInputFiles.xcfilelist',
]
# Ensure the run script and upload-symbols are callable via
# ${PODS_ROOT}/FirebaseCrashlytics/<name>
s.prepare_command = <<-PREPARE_COMMAND_END
cp -f ./Crashlytics/run ./run
cp -f ./Crashlytics/upload-symbols ./upload-symbols
cp -f ./Crashlytics/CrashlyticsInputFiles.xcfilelist ./CrashlyticsInputFiles.xcfilelist
PREPARE_COMMAND_END
s.dependency 'FirebaseCore', '~> 11.0'
s.dependency 'FirebaseInstallations', '~> 11.0'
s.dependency 'FirebaseSessions', '~> 11.0'
s.dependency 'FirebaseRemoteConfigInterop', '~> 11.0'
s.dependency 'PromisesObjC', '~> 2.4'
s.dependency 'GoogleDataTransport', '~> 10.0'
s.dependency 'GoogleUtilities/Environment', '~> 8.0'
s.dependency 'nanopb', '~> 3.30910.0'
s.libraries = 'c++', 'z'
s.ios.frameworks = 'Security', 'SystemConfiguration'
s.macos.frameworks = 'Security', 'SystemConfiguration'
s.osx.frameworks = 'Security', 'SystemConfiguration'
s.watchos.frameworks = 'Security'
s.ios.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'CLS_SDK_NAME="Crashlytics iOS SDK" ' +
# For nanopb:
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
}
s.osx.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'CLS_SDK_NAME="Crashlytics Mac SDK" ' +
# For nanopb:
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
}
s.tvos.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'CLS_SDK_NAME="Crashlytics tvOS SDK" ' +
# For nanopb:
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
}
s.watchos.pod_target_xcconfig = {
'GCC_C_LANGUAGE_STANDARD' => 'c99',
'GCC_PREPROCESSOR_DEFINITIONS' =>
'CLS_SDK_NAME="Crashlytics watchOS SDK" ' +
# For nanopb:
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
'OTHER_LD_FLAGS' => '$(inherited) -sectcreate __TEXT __info_plist',
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
}
s.test_spec 'unit' do |unit_tests|
unit_tests.scheme = { :code_coverage => true }
# Unit tests can't run on watchOS.
unit_tests.platforms = {
:ios => ios_deployment_target,
:osx => '10.15',
:tvos => tvos_deployment_target
}
unit_tests.source_files = 'Crashlytics/UnitTests/*.[mh]',
'Crashlytics/UnitTests/*/*.[mh]',
'Crashlytics/UnitTestsSwift/*.swift'
unit_tests.resources = 'Crashlytics/UnitTests/Data/*',
'Crashlytics/UnitTests/*.clsrecord',
'Crashlytics/UnitTests/FIRCLSMachO/machO_data/*'
unit_tests.requires_app_host = true
end
end