Commit Graph
45 Commits
Author SHA1 Message Date
Paul Beusterien 0dd8dda165 GoogleUtilities - Standardize imports and add LICENSE (#4655) 2020-01-10 14:14:41 -08:00
Chuan Ren 8843dbfd25 Add GULSceneDelegateSwizzler (#4524)
* Add GULSceneDelegateSwizzler

* Comments updated

* Fix build issue on xcode 10.*

* Remove empty methods

* Format

* Fix pr issues

* Format

* Fix build issue

* Fix build issue

* Fix build issue

* Reuse plist keys for scene delegate swizzler

* Add tests for the NSNotificationCenter related code

* Fix pr issues

* Make proxyOriginalSceneDelegate and isSceneDelegateProxyEnabled callable before ios 13

* Keep interceptors iOS 13+ only

* Revert "Make proxyOriginalSceneDelegate and isSceneDelegateProxyEnabled callable before ios 13"

This reverts commit 9927c06855.

* Fix a issue when the header is compiled but the implementation is not

This reverts commit a316673a69.

* Format

* Reuse [GULAppDelegateSwizzler isAppDelegateProxyEnabled]

* Fix build issue

* Revert to last green build

* Reuse [GULAppDelegateSwizzler isAppDelegateProxyEnabled] and fix other comments

* Make proxyOriginalSceneDelegate callable before ios 13

* Fix pr issues
2020-01-08 18:58:54 -05:00
Maksym Malyhin e78fb964b7 Scene delegate swizzling: don't crash when there is UIScene.delegate == nil (#4498) 2019-12-13 16:38:40 -05:00
Chuan Ren d6c117050e Handle UISceneDelegate changes in Auth (#4380)
* Handle UISceneDelegate changes in Auth

* Fix pr issue

* Update GULAppDelegateSwizzler.m

* Fix pr issue

* Update GULLoggerCodes.h

* Update GULLoggerCodes.h

* Update GULAppDelegateSwizzler_Private.h

* Update GULAppDelegateSwizzlerTest.m
2019-12-06 10:50:40 -08:00
Vinay Guthal be17ade458 add heartbeat feature for ios sdks (#4098)
* add heartbeat feature

* fix client logtype

* make class functions

* add subspec changes

* remove test file

* add heartbeat  tests

* use FileDataStorage instead of Storage

* add style

* use file data storage instead of storage

* fix test location

* add tests

* address comments

* update storage heartbeat with the new api

* update format

* update formatting and use correct enums

* rename

* update storage

* fix heartbeat

* update heartbeat tests

* fix styling

* Revert change

* heartbeat storage

* add comments

* update storage

* address comments

* add comments

* address comments

* fix style

* add style

* add style

* move heartbeat date storage

* move to environment

* update tests

* add tests

* small change

* add google utilities

* delete the header file

* update tests

* remove headers

* fix comment

* gul heartbeat date storage

* Update versions for heartbeat PR (#4311)

* update podfile

* Fix Firestore build under CMake

GoogleUtilities must now build SecureCoding
2019-11-14 15:22:20 -05:00
Vinay Guthal f529da0ef4 Add function to gul secure encoding to encode multiple calsses (#4282)
* style

* secure coding
2019-11-12 12:21:08 -05:00
Paul Beusterien eb413b3ba4 Delete unused commented asl tests (#3981) 2019-10-03 08:38:32 -07:00
Ryan Wilson c295991955 Fix Networking to receive data for POST requests (#3940)
* Fix Networking to receive data for POST requests

Currently,  GULNetworking doesn't receive the data when sending a POST request. 

Tracked internally at b/141712804

* Added unit tests.

* Update to handle the small data increments.
2019-09-27 16:45:27 -04:00
Maksym Malyhin 5cb58b881d GULSecureCoding introduced. (#3707)
* GULKeyedArchiver introduced.

* Bump GoogleUtilities version.

* Rename GULKeyedArchiver to GULSecureCodingTests. API cleanup.

* API notes.

* ./scripts/style.sh

* GoogleUtilities version 6.3.0
2019-08-27 17:59:27 -04:00
Paul Beusterien 3cd9695012 GULUserDefaults clear for all archs (#3544) 2019-08-09 13:45:28 -07:00
Maksym Malyhin d4e85d6d1e GULObjectSwizzler fix dealloc thread safety (#3300) 2019-07-30 12:42:34 -07:00
Paul Beusterien 98a21805bf Delete test that fails to build internally (#3384) 2019-07-18 14:35:28 -07:00
Paul Beusterien 56807f383e GoogleUtilities to testspec and pod gen (#2908) 2019-05-28 11:35:51 -07:00
Maksym Malyhin 56c36144ab GoogleUtilities unit tests on iOS 8 (#3093)
* GULAppDelegateSwizzlerTest iOS 8 fixes

* GULRuntimeClassSnapshot - NSAssert replaced with a condition to fix implementation for iOS 8
2019-05-28 06:59:35 -07:00
Paul Beusterien a9c454491c Stop conditional compilation for GoogleUtilities testing (#3058) 2019-05-23 07:06:26 -07:00
Maksym Malyhin 4e7aa8b680 GULAppDelegateSwizzler macOS support (#2911) 2019-05-02 18:08:05 -04:00
Maksym Malyhin e6854a836f GULAppDelegateSwizzlerTest (#2861) 2019-04-26 19:59:44 -04:00
Maksym Malyhin 76aa880853 GULAppDelegateSwizzler - proxy APNS methods separately (#2835) 2019-04-17 17:35:14 -04:00
Paul Beusterien 9da9f866d8 Add license files for Google Utilities 3rd party code (#2767) 2019-04-08 14:56:46 -07:00
Maksym Malyhin 0aa81c9032 Revert "Revert "GULAppDelegateSwizzler - remote notifications methods and tvOS support (#2698)"" (#2726)
This reverts commit a3a2267fe9.
2019-04-04 17:57:43 -04:00
Chen Liang ec2399683b Remove useMessagingDelegateForDirectChannel property (#2711) 2019-04-04 09:46:29 -07:00
Maksym Malyhin b2cd981f23 Revert "GULLogger - count errors and warnigns" (#2714)
* Revert "GULLogger: logged issue counting concurrency issue fix (#2627)"

This reverts commit 961e9b0bfb.

* Revert "GULLogger - issue count synchronous getters  (#2610)"

This reverts commit c6da7d6161.

* Revert "GULLogger - count errors and warnigns (#2601)"

This reverts commit 1e08a55afd.
2019-04-03 15:05:07 -04:00
Maksym Malyhin 8cc5d652ec GULAppDelegateSwizzler - remote notifications methods and tvOS support (#2698) 2019-04-02 23:39:28 -04:00
Maksym Malyhin 36d92cfb0f GULAppDelegateSwizzlerTests fix (#2657) 2019-03-27 13:45:07 -04:00
Maksym Malyhin 961e9b0bfb GULLogger: logged issue counting concurrency issue fix (#2627) 2019-03-26 14:54:43 -04:00
Maksym Malyhin c6da7d6161 GULLogger - issue count synchronous getters (#2610) 2019-03-22 14:50:15 -04:00
Maksym Malyhin 1e08a55afd GULLogger - count errors and warnigns (#2601) 2019-03-21 13:33:14 -04:00
Paul Beusterien 9502e8dda1 Restore GoogleUtilities 5.3.7 - revert os_log changes (#2556) 2019-03-14 13:01:41 -07:00
Paul Beusterien 8c16157508 Remove unused loggerWithLevel parameter (#2524) 2019-03-12 11:33:49 -07:00
Paul Beusterien 8a86551019 Delete test with new (#2514) 2019-03-11 10:12:58 -07:00
Paul Beusterien d100e02496 Restore GULLogger APIs, unit tests, and contents (#2504) 2019-03-11 08:59:12 -07:00
Benoit St-Pierre 6364b34d7f Resolve issue with char * casting in format string invocation (#2454)
* Use `-[NSString initWithFormat:arguments:]` instead of trying to trick the preprocessor macros of all the platforms.
* A couple drive-by warning fixes that `-Weverything` surfaced.
2019-02-27 16:09:41 -05:00
Paul Beusterien 7140078e50 Fix GULLogger file structure (#2437) 2019-02-25 07:05:57 -08:00
Benoit St-Pierre 6b026aac76 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
Ryan Wilson 8289c6ca58 Fixed macOS conditional check. (#2245)
* Fixed macOS conditional check.

Turns out TARGET_OS_MAC is 1 for macOS and iOS, we should be using
TARGET_OS_OSX instead.

Tweet with some history: https://twitter.com/gparker/status/836341915037515778

* Update README.
2019-01-10 10:35:53 -08:00
Paul Beusterien 7c53489e03 Travis to Xcode 10.1 and clang-format to 8.0.0 (tags/google/stable/2018-08-24) (#2222)
* Travis to Xcode 10.1
* Update to clang-format 8
* Update clang-format homebrew link
* Work around space in filename style.sh issue
2019-01-02 09:27:31 -08:00
Paul Beusterien 4f4d6830fe Fix Swizzler test warnings (#2144) 2018-12-04 16:09:08 -08:00
Tejas Deshpande 829b9f557c Update the GULObjectSwizzler to handle NSProxy objects (#2053) 2018-11-13 09:35:35 -08:00
Ryan Wilson ed30bc97ea Add GULUserDefaults to GoogleUtilities. (#1812)
* Add GULUserDefaults to GoogleUtilities.

This is a workaround for NSUserDefaults crashing when setting values
in the background in some situations on iOS 11. This uses the C API
in order to avoid an NSNotification firing (which a class eventually
tries to update the UI from the thread that set the value).

* Add missing copyright information.

* Resolve macOS issues, address feedback.

* Removed unnecessary enum value.
2018-09-14 11:59:08 -04:00
Paul Beusterien 9032c14af8 Fix mismatched-parameter-type warning (#1782) 2018-09-05 17:11:20 -04:00
Michael Lehenbauer b88f95c44f Reformat using 'clang-format version 7.0.0 (tags/google/stable/2018-04-24)' (#1681)
This is the version of clang-format that travis is currently using.
2018-08-13 14:18:02 -07:00
Paul Beusterien 9a2aa9fbcc Fix FIRLogger initialization after GULLogger (#1592)
* Migrate of kFIRPersistedDebugModeKey
2018-07-26 09:45:44 -07:00
Tejas Deshpande 96438c722b Open source the Swizzler (#1564)
* Import the Swizzler sources into github

* Add subspecs to GoogleUtilities podspec

* Add post install step to test Podfile to add the preprocessor flags required for testing.

* Add the swizzler tests (except the flaky GULAppDelegateSwizzlerTest) to the Xcode project

* Add the AppDelegateSwizzler internal headers to the ios test header search path

* Add license header to GULLoggerCodes.h

* Fix/Suppress warnings in the framework.

* Disable certain classes for tvOS and macOS as well fix some additional pod lib lint warnings.

* Modify imports as well as add the required preprocessor flags to the test targets.

* Run pod deintegrate.
2018-07-20 15:48:03 -07:00
Paul Beusterien 855a7665ae Restore iOS7 to GoogleUtilities (#1528) 2018-07-13 09:57:32 -07:00
Paul Beusterien c586dc8747 Separate Xcode project and tests for GoogleUtilities (#1521) 2018-07-12 12:03:50 -07:00