Commit Graph
21 Commits
Author SHA1 Message Date
Paul Beusterien f3cc48a944 IID unit test update for Catalyst (#3534) 2019-08-08 09:57:39 -07:00
Morgan Chen d6af8615e2 Fix token fetch not invoking callback for unchanged token (#3251) 2019-06-25 10:47:59 -07:00
Chen Liang 7eb1747e4b Adding macOS support for Messaging and InstanceID (#2880) 2019-05-30 15:31:38 -07:00
Maksym Malyhin 8a6c1b6223 IID tests improvements (#3067)
* Use bridged __weak reference instead CFRetain/CFRelease
* Use SecKeyRef instead of FIRInstanceIDKeyPair for the memory management test
* Use SecKeyGeneratePair instead of SecKeyCreateRandomKey available since iOS 10 only
* FIRInstanceIDKeyPairStoreTest wait until all keychain operations finished before finishing a test
* FIRInstanceIDTokenManagerTest: cleanup in tearDown; fix expectation to produce an error nor a crash.
* Use properties instead of ivars FIRInstanceIDTokenManagerTest
* FIRInstanceIDTokenManager fix OCMPartialMock() usage.
2019-05-28 07:02:30 -07:00
Paul Beusterien 9a5afbffc1 Remove flaky retain count checking (#3065)
* Remove flaky retain count checking
* Disable test
2019-05-23 15:18:38 -07:00
Paul Beusterien bf62c8c9df Add InstanceID test_spec (#3036) 2019-05-21 11:22:43 -07:00
Maksym Malyhin 2b403a6041 FIRInstanceIDKeyPairStore crash fix (#2953)
* FIRInstanceIDKeyPairStore fix SecKeyRef memory management issue

* [WIP] FIRInstanceIDKeyPairStore - perform operations in the order they were scheduled

* Revert "[WIP] FIRInstanceIDKeyPairStore - perform operations in the order they were scheduled"

This reverts commit 7ff7b51236.

* FIRInstanceIDKeyPairStore - schedule updating public and private keys at once (not from a callback) to avoid modifications of keychain in between. Update `self.keyPair`  before updating keychain for all cases.

* Chengelog

* Don't use dispatch_group, rely on `FIRInstanceIDKeychain` serialized implementation instead
2019-05-13 18:13:53 -04:00
Chen Liang 8ab26dd651 remove test header from source code (#2783) 2019-04-09 15:54:09 -07:00
Chen Liang 0212c46f7c remove deprecated token API (#2741) 2019-04-08 16:19:21 -07:00
Maksym Malyhin c416b10ad4 Move reporting Firebase user agent from checkin to register (#2679) 2019-03-31 19:16:33 -04: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
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
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
Chen Liang 8061301cb9 File directory for tvOS should change from NSApplicationSupportDirector to NSCachesDirectory (#2496) 2019-03-13 08:57:47 -07:00
Maksym Malyhin 0956f5d591 Send Firebase user agent from FIRInstanceIDCheckinService directly (#2509) (b/124533860) 2019-03-11 14:04:26 -04:00
Chen Liang 032f0bfa28 Adding unit tests for InstanceID tvOS support (#2483) 2019-03-07 10:07:22 -08: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
Paul Beusterien d232d1c30c Restore FIRInstanceIDWithFCMTest.m (#2417) 2019-02-21 20:16:45 -08:00
Paul Beusterien 42c5ae17fc Open source InstanceID (#2414) 2019-02-21 10:51:38 -08:00