Files
firebase-ios-sdk/FirebaseCrashlytics.podspec
T
f33276f530 Update nanopb py3 0.3.9.5 -> 0.3.9.6 (#6214)
* update nanopb from 0.3.9.5 to 0.3.9.6

This fixes issues building firestore SDK with Python3.
Interestingly, latest version 0.4.2 still errors during the build
but 0.3.9.6 works. The git commit for this fix in nanopb
https://github.com/nanopb/nanopb/commit/63f8e5e4946a5f8f0211b454bd37187871c3d023

* Update generated sources

* updating just nanopb dependency version

nanopb updated from 0.3.9.5 to 0.3.9.6
(pod version 1.30905.0 to 1.30906.0)

* Add missing source specifier

* Generated files for protos using nanopb 0.3.9.6

* removed unnecessary whitespaces in files generated by protoc

* using more qualified relative paths for header includes

* Changelog

Co-authored-by: Marek Gilbert <mcg@google.com>
Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2020-08-14 14:13:01 -07:00

114 lines
4.0 KiB
Ruby

Pod::Spec.new do |s|
s.name = 'FirebaseCrashlytics'
s.version = '4.4.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', :file => 'Crashlytics/LICENSE' }
s.authors = 'Google, Inc.'
s.source = {
:git => 'https://github.com/firebase/firebase-ios-sdk.git',
:tag => 'Crashlytics-' + s.version.to_s
}
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.11'
s.tvos.deployment_target = '10.0'
s.watchos.deployment_target = '6.0'
s.cocoapods_version = '>= 1.4.0'
s.static_framework = true
s.prefix_header_file = false
s.source_files = [
'Crashlytics/Crashlytics/**/*.{c,h,m,mm}',
'Crashlytics/Protogen/**/*.{c,h,m,mm}',
'Crashlytics/Shared/**/*.{c,h,m,mm}',
'Crashlytics/third_party/**/*.{c,h,m,mm}',
'FirebaseCore/Sources/Private/*.h',
'FirebaseInstallations/Source/Library/Private/*.h',
'GoogleDataTransport/GDTCORLibrary/Internal/*.h',
'Interop/Analytics/Public/*.h',
]
s.public_header_files = [
'Crashlytics/Crashlytics/Public/FirebaseCrashlytics/*.h'
]
s.preserve_paths = [
'Crashlytics/README.md',
'run',
'upload-symbols',
]
# 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
PREPARE_COMMAND_END
s.dependency 'FirebaseCore', '~> 6.10'
s.dependency 'FirebaseInstallations', '~> 1.6'
s.dependency 'PromisesObjC', '~> 1.2'
s.dependency 'GoogleDataTransport', '~> 7.2'
s.dependency 'nanopb', '~> 1.30906.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' =>
'DISPLAY_VERSION=' + s.version.to_s + ' ' +
'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' =>
'DISPLAY_VERSION=' + s.version.to_s + ' ' +
'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' =>
'DISPLAY_VERSION=' + s.version.to_s + ' ' +
'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' =>
'DISPLAY_VERSION=' + s.version.to_s + ' ' +
'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 can't run on watchOS.
unit_tests.platforms = {:ios => '8.0', :osx => '10.11', :tvos => '10.0'}
unit_tests.source_files = 'Crashlytics/UnitTests/*.[mh]',
'Crashlytics/UnitTests/*/*.[mh]'
unit_tests.resources = 'Crashlytics/UnitTests/Data/*',
'Crashlytics/UnitTests/*.clsrecord',
'Crashlytics/UnitTests/FIRCLSMachO/data/*'
end
end