Commit Graph
388 Commits
Author SHA1 Message Date
Paul Beusterien 1a32a1f7d3 Delete references to deprecated Crash and Invites (#2668) 2019-04-01 19:06:05 -07:00
Chuan Ren 3aff8d0760 Add support of sso (#2684) 2019-04-01 14:32:44 -07:00
Paul Beusterien 1dd5dfa991 Merge 5.20.1 back to master (#2691) 2019-04-01 06:35:28 -07:00
Maksym Malyhin c416b10ad4 Move reporting Firebase user agent from checkin to register (#2679) 2019-03-31 19:16:33 -04:00
Paul Beusterien 145c111d1a Minimum osx to 10.11 (#2680) 2019-03-29 16:26:27 -07:00
Chen Liang 98549593ac fix a few place that copybara not properly handle the change (#2678) 2019-03-29 12:23:43 -07:00
Paul Beusterien 17f9064cd0 Release 5.20.0 (#2677) 2019-03-29 11:04:13 -07:00
Chen Liang e024df5073 fix typo in iOS target (#2673)
* also a few minor cleanup
2019-03-28 16:13:20 -07:00
Maksym Malyhin 04561fe74d FIRMessagingRemoteNotificationsProxy - test only public API with no assumptions on implementation (#2672) 2019-03-28 19:06:04 -04:00
Paul Beusterien f6747f7b07 Fix build warning (#2661) 2019-03-27 15:15:02 -07:00
Chen Liang 0091515b98 add image on notification support (#2644) 2019-03-26 20:15:34 -07:00
Chen Liang d87b15fa69 fix analyze warning in fcm (#2650) 2019-03-26 16:25:46 -07:00
Chuan Ren 7d9df0fb3f Revert "Disable Facebook API tests (#2547)" (#2628)
This reverts commit ed2b99a26c.
2019-03-26 10:21:30 -07:00
Chen Liang bddf94e48b fix race condition that checkin can be deleted right after fetched (#2438) (#2631) 2019-03-26 10:18:02 -07:00
Paul Beusterien 92747db846 Remove default.profraw files (#2638) 2019-03-26 08:24:07 -07:00
Maksym Malyhin 0738c0efd2 Fix handler for multiple calls of -[FIRInstanceID instanceIDWithHandler:] (#2445) (#2559) 2019-03-24 17:17:10 -04:00
Chen Liang b34a2780bd Ensure token refresh notification is triggered any time a new token is refreshed. b/77662386 (#2562) 2019-03-22 13:45:02 -07:00
Paul Beusterien ef6c538748 Release 5.19.0 (#2589)
* Update versions for Release 5.19.0

* update the changelog (#2583)

* Revert #2491 (#2582)
2019-03-19 17:29:18 -07:00
dmandar 3c3fe7927f Fix for issue where matchesshortlinkformat was returning true for all links. (#2563)
* Fix issue with matchesShortLinkFormat always returning true.

* Fix style.
2019-03-19 14:13:17 -07:00
Paul Beusterien 714bb34bc3 Revert #2491 (#2582) 2019-03-18 16:28:18 -07:00
Yue-Wang-Google 128e1b0f18 Retain OAuthProvider instance in sample app (#2577) 2019-03-18 13:06:32 -07:00
Paul Beusterien 966ad6878f Fix typos (#2576) 2019-03-18 12:13:33 -07:00
Paul Beusterien 2f8570f8f9 Revert "Revert "Disable Facebook API tests (#2547)" (#2566)" (#2573)
This reverts commit 2ae939b6eb.
2019-03-15 17:47:02 -07:00
Chuan Ren 2ae939b6eb Revert "Disable Facebook API tests (#2547)" (#2566)
This reverts commit ed2b99a26c.
2019-03-15 16:24:20 -07:00
Maksym Malyhin 2ac4f6d4bc Avoid using NSRegularExpression in FIRApp (b/65122393) (#2529) 2019-03-15 11:38:48 -04:00
Paul Beusterien 9502e8dda1 Restore GoogleUtilities 5.3.7 - revert os_log changes (#2556) 2019-03-14 13:01:41 -07:00
Chen Liang 8ed8504832 Rename ApplicationSupportDirectory in IID tests (#2553) 2019-03-14 11:02:58 -07:00
Maksym Malyhin ff76c8a646 FIRInstanceIDCheckinService: make sure tasks are not submitted to an invalidated NSURLSession (#2548)
FIRInstanceIDCheckinService: make sure tasks are not submitted to an invalidated NSURLSession (#2548)
2019-03-13 21:08:24 -04:00
Chuan Ren ed2b99a26c Disable Facebook API tests (#2547) 2019-03-13 13:08:56 -07:00
Chen Liang 8061301cb9 File directory for tvOS should change from NSApplicationSupportDirector to NSCachesDirectory (#2496) 2019-03-13 08:57:47 -07:00
Maksym Malyhin e53d552d5e Allow Bundle IDs that have a valid prefix - strict validation (#2515)
Allow Bundle IDs that have a valid prefix - strict validation
2019-03-11 21:33:07 -04:00
Chen Liang 681a5740b0 Add image on notification support (#2491)
This is official image notification support for FCM. Now an image can be rendered in notification when user enable service extension and calling the extensionHelper API.
2019-03-11 14:36:40 -07:00
Maksym Malyhin 847d9ddf39 FIRDynamicLink: preserve all parameters passed to initializer (#2478)
FIRDynamicLink: preserve all parameters passed to initializer (#2478)
2019-03-11 15:49:17 -04:00
Maksym Malyhin 0956f5d591 Send Firebase user agent from FIRInstanceIDCheckinService directly (#2509) (b/124533860) 2019-03-11 14:04:26 -04:00
Yue-Wang-Google 6ef85e4344 Change sample code to use "microsoft.com" instead of string constant, which will be remove soon. (#2501) 2019-03-11 11:01:46 -07:00
Chen Liang 032f0bfa28 Adding unit tests for InstanceID tvOS support (#2483) 2019-03-07 10:07:22 -08:00
Ryan Wilson 9848883d69 Release 5.18.0 (#2477) 2019-03-05 15:29:36 -08:00
Chen Liang 00168257df Make FCM and InstanceID compatible with tvOS (#2428) 2019-03-05 11:57:10 -08:00
Maksym Malyhin 4dfebfc522 FIRStorageUploadTask: fail on invalid file URL (#2458)
* FIRStorageUploadTask: validate data and fileURL before upload (#2350)

* FIRStorageReferenceTests: Verify a specific error (#2350)

* Code cleanup. More informative error.

* FIRStorageReference: error message, test fix (#2350)

* Run ./scripts/style.sh

* #2350: Punctuation

* FIRStorageReferenceTests: naming (#2350)

* Run ./scripts/style.sh

* Tests fixed (#2350)

* FIRStorageReferenceTests fixed for Mac OS (#2350)

* FIRStorageUploadTask: validate content just before uploading (#2350)
2019-03-03 23:10:04 -08:00
Maksym Malyhin cd8938d3c7 Enable code coverage for AllUnitTests_iOS target (#2450)
* Enable code coverage for `AllUnitTests_iOS`

* FIRAuthAppDelegateProxyTests: fix for test of a delegate with no implemented methods.

Issue:
After deallocating of the proxy [delegate application:_mockApplication openURL:_url options:@{}] starts returning either YES or NO.
The issue is reproducible only when Code Coverage is enabled for AllUnitTests_iOS target.
Possible reason:
-[FIRAuthAppDelegateProxy dealloc] replaces implementation of the methods that were not implemented in the original delegate by `noop` function that doesn't have a return value.
Fix:
Ignore return value in the tests. The case is unlikely to happen in a real application.

* Code formatting
2019-02-27 14:30:12 -05:00
Maksym Malyhin 8ffd9590cb FirebaseMessaging: NSUserDefaults replaced by GULUserDefaults (#2443)
* FirebaseMessaging: `NSUserDefaults` replaced by `GULUserDefaults`

* FirebaseMessaging: `GoogleUtilities/UserDefaults` added to dependencies. `GoogleUtilities` dependencies version updated to `~> 5.3`

* FIRMessagingPubSub: imports order
2019-02-26 15:31:18 -05:00
Ryan Wilson 1b777acdca Fix IID singleton usage. (#2446)
The singleton is cached and vended from the Core component system, we
shouldn't wrap it in a dispatch_async or cache it with a global variable.

This matches a change internally that has been made and shipped.
2019-02-26 12:26:42 -08:00
Yue-Wang-Google 2e77efd786 Generic IDP support (#2405) 2019-02-22 21:23:17 -08:00
Paul Beusterien 82fd4b9fc6 Fix race causing occasional flake (#2427) 2019-02-22 14:36:29 -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
Paul Beusterien d232d1c30c Restore FIRInstanceIDWithFCMTest.m (#2417) 2019-02-21 20:16:45 -08:00
Ryan Wilson 4209aeaa3c Merging the 5.17.0 release into master (#2416)
* Update versions for Release 5.17.0

* Fix the tag in the FIAM podspec.

* Update dependencies for FIAM.

* Updated the FirebaseCore version.

* Fix FIROptions version.

* Temporarily remove FIAM version deps for pod linting.

* Create umbrella header for FIAM (#2392)

This causes an issue when building the zip file - similar to #1857

* Remove FIAM from 5.17.0 release.
2019-02-21 21:29:31 -05:00
Paul Beusterien 42c5ae17fc Open source InstanceID (#2414) 2019-02-21 10:51:38 -08:00
Chuan Ren 593774b1b6 E2e tests split (#2401) 2019-02-18 18:10:01 -08:00
Chuan Ren b3f2abcb1e Split auth api tests into multiple cases (#2399) 2019-02-18 17:41:59 -08:00