mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-10 22:45:59 +05:45
* 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>
99 lines
3.4 KiB
Ruby
99 lines
3.4 KiB
Ruby
Pod::Spec.new do |s|
|
|
s.name = 'FirebaseFirestore'
|
|
s.version = '1.16.4'
|
|
s.summary = 'Google Cloud Firestore'
|
|
|
|
s.description = <<-DESC
|
|
Google Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.
|
|
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 => 'Firestore-' + s.version.to_s
|
|
}
|
|
|
|
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
|
|
|
|
s.source_files = [
|
|
'FirebaseCore/Sources/Private/*.h',
|
|
'Firestore/Source/Public/FirebaseFirestore/*.h',
|
|
'Firestore/Source/**/*.{m,mm}',
|
|
'Firestore/Protos/nanopb/**/*.cc',
|
|
'Firestore/core/include/**/*.{cc,mm}',
|
|
'Firestore/core/src/**/*.{cc,mm}',
|
|
'Interop/Auth/Public/*.h',
|
|
]
|
|
s.preserve_paths = [
|
|
'Firestore/Source/API/*.h',
|
|
'Firestore/Source/Core/*.h',
|
|
'Firestore/Source/Local/*.h',
|
|
'Firestore/Source/Remote/*.h',
|
|
'Firestore/Source/Util/*.h',
|
|
'Firestore/Protos/nanopb/**/*.h',
|
|
'Firestore/core/include/**/*.h',
|
|
'Firestore/core/src/**/*.h',
|
|
]
|
|
s.requires_arc = [
|
|
'Firestore/Source/**/*',
|
|
'Firestore/core/src/**/*.mm',
|
|
]
|
|
s.exclude_files = [
|
|
# Exclude alternate implementations for other platforms
|
|
'Firestore/core/src/api/input_validation_std.cc',
|
|
'Firestore/core/src/remote/connectivity_monitor_noop.cc',
|
|
'Firestore/core/src/util/filesystem_win.cc',
|
|
'Firestore/core/src/util/hard_assert_stdio.cc',
|
|
'Firestore/core/src/util/log_stdio.cc',
|
|
'Firestore/core/src/util/secure_random_openssl.cc'
|
|
]
|
|
s.public_header_files = 'Firestore/Source/Public/FirebaseFirestore/*.h'
|
|
|
|
s.dependency 'FirebaseCore', '~> 6.10'
|
|
|
|
abseil_version = '0.20200225.0'
|
|
s.dependency 'abseil/algorithm', abseil_version
|
|
s.dependency 'abseil/base', abseil_version
|
|
s.dependency 'abseil/memory', abseil_version
|
|
s.dependency 'abseil/meta', abseil_version
|
|
s.dependency 'abseil/strings/strings', abseil_version
|
|
s.dependency 'abseil/time', abseil_version
|
|
s.dependency 'abseil/types', abseil_version
|
|
|
|
s.dependency 'gRPC-C++', '~> 1.28.0'
|
|
s.dependency 'leveldb-library', '~> 1.22'
|
|
s.dependency 'nanopb', '~> 1.30906.0'
|
|
|
|
s.ios.frameworks = 'MobileCoreServices', 'SystemConfiguration', 'UIKit'
|
|
s.osx.frameworks = 'SystemConfiguration'
|
|
s.tvos.frameworks = 'SystemConfiguration', 'UIKit'
|
|
|
|
s.library = 'c++'
|
|
s.pod_target_xcconfig = {
|
|
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++0x',
|
|
'GCC_C_LANGUAGE_STANDARD' => 'c99',
|
|
'GCC_PREPROCESSOR_DEFINITIONS' =>
|
|
"FIRFirestore_VERSION=#{s.version} " +
|
|
# The nanopb pod sets these defs, so we must too. (We *do* require 16bit
|
|
# (or larger) fields, so we'd have to set at least PB_FIELD_16BIT
|
|
# anyways.)
|
|
'PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1',
|
|
'HEADER_SEARCH_PATHS' =>
|
|
'"${PODS_TARGET_SRCROOT}" ' +
|
|
'"${PODS_TARGET_SRCROOT}/Firestore/Source/Public/FirebaseFirestore" ' +
|
|
'"${PODS_ROOT}/nanopb" ' +
|
|
'"${PODS_TARGET_SRCROOT}/Firestore/Protos/nanopb"'
|
|
}
|
|
|
|
s.compiler_flags = '$(inherited) -Wreorder -Werror=reorder -Wno-comma'
|
|
end
|