Files
GoogleUtilities/GoogleUtilities.podspec
T
Benoit St-Pierre 0d717bb063 os_log Implementation of GULLogger (#2374)
* Step 1: Duplicate ASL Logger

This copies over the ASL logging system to a standalone Objective-C class.

* Step 2: Replace Logger with ObjC Implementation

This also moved the `forcedDebug` information to a property.

* Step 3: Remove unnecessary test methods

It does not seem necessary to drain the queue. If this is an issue on a platform I didn't test, we should implement the tests differently, such that surfacing the queue is not necessary.

* Style Fixes

* Test cleanup

* Removed FIRLoggerTest as they mostly actually test `GULASLLogger` functionality now.
* Renamed `GULLoggerInitializeASL` to `GULLoggerInitialize`.
* Use dot-notation for the defaultLogger class property.
* Removed unused debug only test methods.

* Rename FIRLoggerInitializeASL

* Style fixes

* ASL Logger cleanup and leaking

* Move ivar synthesis to the top of the implementation.
* Add dealloc logic to avoid leaking asl_obj memory.
* Add forced logic at the message level.

* GULLogger Testing

* Moved over old tests to correct ASLLogger location.
* Added new GULLogger tests
* Changed version `char *` to `NSString *`
* Tidied up some documentation

* Re-introduce ASL in the functions names

* os_log GULLogger Implementation

* Moved common logic from `GULASLLogger` to `GULLogger+Internal` class methods.
* Added `os_log` implementation of `GULLoggerSystem`
* Added `os_log` level information to `GULLoggerLevel`
* Removed unused test variable

TODO: Tests

* Remove iOS version check from ASLLogger

* Style Fixes

* Refer to ivar directly in property setter

* Refer to ivar directly in property setter

* Being os_log tests

* Setup dependency injection for os_log tests

* Rename C functions according to style and correctly test macOS version compatibility

* Further refinement of os_log testing

* Add Some OSLogger tests and update some ASLLogger ones

* Re-add getter for logLevel

* Fix up some warnings

* Remove private headers from local testing podspec

* More OSLogger tests & bug fixes

* Style Fixes

* Fix Travis build

* Update GULOSLoggerTest.m

* Do nt override method argument

* Fix test on tvOS

* Test Fixes

* Copybara test fixes

* PR Feedback
2019-02-22 16:32:57 -05:00

103 lines
3.9 KiB
Ruby

Pod::Spec.new do |s|
s.name = 'GoogleUtilities'
s.version = '5.3.7'
s.summary = 'Google Utilities for iOS (plus community support for macOS and tvOS)'
s.description = <<-DESC
Internal Google Utilities including Network, Reachability Environment, Logger, and Swizzling for
other Google CocoaPods. They're not intended for direct public usage.
DESC
s.homepage = 'https://github.com/firebase/firebase-ios-sdk/tree/master/GoogleUtilities'
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.authors = 'Google, Inc.'
s.source = {
:git => 'https://github.com/firebase/firebase-ios-sdk.git',
:tag => 'Utilities-' + s.version.to_s
}
# Technically GoogleUtilites requires iOS 7, but it supports a dependency pod with a minimum
# iOS 6, that will do runtime checking to avoid calling into GoogleUtilities.
s.ios.deployment_target = '6.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '10.0'
s.cocoapods_version = '>= 1.4.0'
s.prefix_header_file = false
s.subspec 'Environment' do |es|
es.source_files = 'GoogleUtilities/Environment/third_party/*.[mh]'
es.public_header_files = 'GoogleUtilities/Environment/third_party/*.h'
es.private_header_files = 'GoogleUtilities/Environment/third_party/*.h'
end
s.subspec 'Logger' do |ls|
ls.source_files = 'GoogleUtilities/Logger/**/*.[mh]'
ls.public_header_files = 'GoogleUtilities/Logger/Public/*.h'
ls.private_header_files = 'GoogleUtilities/Logger/Private/*.h'
ls.dependency 'GoogleUtilities/Environment'
end
s.subspec 'Network' do |ns|
ns.source_files = 'GoogleUtilities/Network/**/*.[mh]'
ns.public_header_files = 'GoogleUtilities/Network/Private/*.h'
ns.private_header_files = 'GoogleUtilities/Network/Private/*.h'
ns.dependency 'GoogleUtilities/NSData+zlib'
ns.dependency 'GoogleUtilities/Logger'
ns.dependency 'GoogleUtilities/Reachability'
ns.frameworks = [
'Security'
]
end
s.subspec 'NSData+zlib' do |ns|
ns.source_files = 'GoogleUtilities/NSData+zlib/*.[mh]'
ns.public_header_files = 'GoogleUtilities/NSData+zlib/GULNSData+zlib.h'
ns.libraries = [
'z'
]
end
s.subspec 'Reachability' do |rs|
rs.source_files = 'GoogleUtilities/Reachability/**/*.[mh]'
rs.public_header_files = 'GoogleUtilities/Reachability/Private/*.h'
rs.private_header_files = 'GoogleUtilities/Reachability/Private/*.h'
rs.frameworks = [
'SystemConfiguration'
]
rs.dependency 'GoogleUtilities/Logger'
end
s.subspec 'AppDelegateSwizzler' do |adss|
adss.source_files = 'GoogleUtilities/AppDelegateSwizzler/**/*.[mh]', 'GoogleUtilities/Common/*.h'
adss.public_header_files = 'GoogleUtilities/AppDelegateSwizzler/Private/*.h'
adss.private_header_files = 'GoogleUtilities/AppDelegateSwizzler/Private/*.h'
adss.dependency 'GoogleUtilities/Logger'
adss.dependency 'GoogleUtilities/Network'
adss.dependency 'GoogleUtilities/Environment'
end
s.subspec 'ISASwizzler' do |iss|
iss.source_files = 'GoogleUtilities/ISASwizzler/**/*.[mh]', 'GoogleUtilities/Common/*.h'
iss.private_header_files = 'GoogleUtilities/ISASwizzler/Private/*.h'
end
s.subspec 'MethodSwizzler' do |mss|
mss.source_files = 'GoogleUtilities/MethodSwizzler/**/*.[mh]', 'GoogleUtilities/Common/*.h'
mss.private_header_files = 'GoogleUtilities/MethodSwizzler/Private/*.h'
mss.dependency 'GoogleUtilities/Logger'
end
s.subspec 'SwizzlerTestHelpers' do |sths|
sths.source_files = 'GoogleUtilities/SwizzlerTestHelpers/*.[hm]'
sths.private_header_files = 'GoogleUtilities/SwizzlerTestHelpers/*.h'
end
s.subspec 'UserDefaults' do |ud|
ud.source_files = 'GoogleUtilities/UserDefaults/**/*.[hm]'
ud.public_header_files = 'GoogleUtilities/UserDefaults/Private/*.h'
ud.private_header_files = 'GoogleUtilities/UserDefaults/Private/*.h'
ud.dependency 'GoogleUtilities/Logger'
end
end