Commit Graph
508 Commits
Author SHA1 Message Date
Chen Liang 67de928005 move database operation off main thread (#4053) 2019-10-28 12:45:47 -07:00
Chen Liang 4d10f32641 update keychain access level (#4172) 2019-10-25 15:37:37 -07:00
Paul Beusterien a621e59217 Merge 6.11.0 (#4134) 2019-10-22 11:35:29 -07:00
Morten Bek Ditlevsen 0a04968d3d Workaround for NSDecimalNumber longLongValue issue. (#4109) 2019-10-18 10:56:10 -07:00
Chen Liang e0b6d2347c tokenWithAuthorizedEntity: method should also check if token is fresh (#4096) 2019-10-16 16:09:03 -07:00
Chuan Ren 899b49bf5f Revert "Add OIDC nonce support (#4051)" (#4068)
This reverts commit c2bc304ad9.
2019-10-14 15:41:21 -07:00
Chuan Ren c2bc304ad9 Add OIDC nonce support (#4051) 2019-10-14 11:24:06 -07:00
Ryan Wilson 56b37d2543 Fix container instantiation timing, IID startup. (#4030)
* Fix container instantiation timing, IID startup.

The container instantiation could happen at the wrong time, before all
components have been added to the container. This fixes it, and also
moves IID to use the proper instantiation timing instead of relying on
the `configureWithApp:` call. This is part continuation of #3147, where
I'll be fixing the rest of the SDKs in follow up PRs.

* Typo

* Further work on instantiation timing.

This moves the instantiation of components to after the FirebaseApp is
completely configured and assigned, as it should be. This also exposed
a recursive issue with IID calling the Messaging singleton, which in
turn called IID and instantiated multiple instances.

A change was made to break the cycle: the Messaging `isAutoInitEnabled`
call was changed to a static method vs an instance method, allowing IID
to call it during initialization without instantiating the Messaging
instance (since it doesn't have a direct dependency on it).

* Revert unintentional formatting of entire FIRMessaging file.

* Fix tests.

* Format InstanceID.m

* Remove unused import.

* Fix ComponentContainer test.

* Minor PR feedback.
2019-10-11 17:20:46 -04:00
Chen Liang 28038e55aa Remove the class FIRMessagingRmq2PersistentStore (#4045) 2019-10-10 16:11:49 -07:00
Chen Liang b6ac437faa Remove migration logic from document folder to application folder (#4033) 2019-10-10 08:49:42 -07:00
Chen Liang af730a90ec Always check if IID and token are consistent (#4025) 2019-10-09 11:13:44 -07:00
Ryan Wilson bbcac27b72 Release 6.10.0 (#4022)
* Update versions for Release 6.10.0

* Cherrypick #3983 and include Database in release. (#3986)

* Remove log argument that causes SocketRocket crash (#3983)

* Add FirebaseDatabase to release.

* Update CHANGELOG with version.

* Cherrypick for #3984 along with CHANGELOG update. (#3988)

* Fix race condition in FIRComponentContainer instance creation (#3984)

* Fix race condition in FIRComponentContainer instance creation

Reported in #3967. Users sometimes seeing a crash when multiple threads
concurrently try to create Firestore instances. By inspection I found
that there's a race here where two threads can check for presence in the
cache, see nothing, proceed to creation, both store a value in the cache,
and both return their copies. This would lead to two Firestores being
created for a single App.

This replaces `dispatch_sync` on a serial queue with good old
`@synchronized` blocks. `dispatch_sync` will self-deadlock if called
from a thread already on the queue while `@synchronized` allows
recursion.

No new tests are added because several tests like
`testDependencyDoesntBlock` already cover this case.

* format

* Update Core CHANGELOG

* Update Core CHANGELOG again

* Fix merge from CHANGELOG
2019-10-09 12:10:33 -04:00
Chuan Ren 2c5e4fe741 Small improvements (#4014)
1. Update api for getting locale
2. Print claims instead of raw token
2019-10-07 14:37:58 -07:00
Paul Beusterien eb413b3ba4 Delete unused commented asl tests (#3981) 2019-10-03 08:38:32 -07:00
Chuan Ren 10ef0bb205 Add support of linkWithProvider and reauthenticateWithProvider (#3971) 2019-10-01 17:34:45 -07:00
Paul Beusterien 4a8ee3de60 Fix Catalyst define checks (#3958) 2019-09-30 16:37:21 -07:00
Paul Beusterien 0aacd28642 Travis to Xcode 11.0 (#3944) 2019-09-30 10:46:31 -07:00
Paul Beusterien fb353c22d4 Merge 6.9.0 (#3907)
* Update versions for Release 6.9.0

* Fix unbalanced background task creation in GDTCCTUploader (#3838) (#3839)

* Add Manifest

* dependency version update

* Cherry picks for 6.9.0 (#3871)

* fixed "expiclitlySet" typo. (#3853)

* Mark unused variables (#3854)

* Mute FCM deprecated warnings with Xcode 11 and min iOS >= 10 (#3857)

* Add a third slash to make sure generated docs include these comments.b/13812238 (#3846)
2019-09-23 10:41:33 -07:00
Paul Beusterien 59db09740c Mute FCM deprecated warnings with Xcode 11 and min iOS >= 10 (#3857) 2019-09-16 10:55:20 -07:00
square c917c87165 fixed "expiclitlySet" typo. (#3853) 2019-09-14 07:22:44 -07:00
Michael Haney 5ad63dabc2 Remove iOS-specific code from a test that didn't need it (#3813)
* Remove iOS-specific code from a test that didn't need it

Fixes #3711

* Remove not needed comment
2019-09-12 15:06:36 -07:00
Paul Beusterien 330a55f9de Merge 6.8.1 (#3811) 2019-09-10 06:46:16 -07:00
Michael Haney 18e2721c1d Rename GDT core libraries to GDTCOR (#3808) 2019-09-09 15:21:29 -07:00
Paul Beusterien 7ac9dbcc9e Fix header issues exposed by :generate_multiple_pod_projects (#3803) 2019-09-09 10:25:50 -07:00
Maksym Malyhin 89a276928c Merging the 6.8.0 release into master (#3783)
* Update versions for Release 6.8.0

* RemoteConfig fix pod spec lint (#3715) (#3716)

* ABTesting: add protos to private headers.

* RemoteConfig: #import <FirebaseABTesting/ExperimentPayload.pbobjc.h>

* ./scripts/style.sh

* Remote Config `pod spec lint` fixes (#3717) (#3718)

* Fix ExperimentPayload.pbobjc.h imports

* RemoteConfig tests: add missing headers to spec.

* Revert ExperimentPayload.pbobjc.h import for ABTesting sources.

* Add FDL to M55 (#3724)

* Remove references to UIWebView from DynamicLinks to comply with Apple "ITMS-90809: Deprecated API Usage" (#3723)
* Add FDL to M55

* Fix accessing a destroyed object (#3721) (#3725)

This was caused by running under Asan with XCode 11. Apparently, previous versions of XCode cannot catch it (which is why Travis is passing, apparently).

Also:
* enable "Detect use of stack after return" option for Asan. AFAIU, it can only be enabled in the scheme. It's already enabled for unit tests, this PR additionally enables it for integration tests;
* make Asan failures fail Travis build. They were originally not considered blocking due to some sporadic failures. I haven't seen those for some time, and worst case scenario, we can revert this change.

* Cherry pick GDT changes for 6.8.0 and increment versions (#3770)

* Release 6.8.0: cherry pick of #3764 and #3766 (#3772)

* Gate access to cached instances. (#3766)

* Gate access to cached instances.

This is causing an issue in #3728. Hopefully this will fix it, but no
repro is available yet to test. There's still an underlying race
condition where a `creationBlock` could be called twice for a component
that is supposed to cache the instance returned, but that should be
addressed in a follow up PR.

* Review feedback.

* Iterate from array copy in `latestExperimentStartTimestampBetweenTimestamp:` (#3764)

* Release 6.8.0 cherry pick: conflicting Dynamic Links changelog changes. (#3790)

* Update FDL CHANGELOG (#3781)

* Issue number, not PR number (#3785)
2019-09-06 15:19:25 -04:00
Ryan Wilson b345fe709c Add ComponentContainer tests for dependencies. (#3774)
* Add tests for container dependencies.

* Add Component Container tests for dependencies.

This ensures that no deadlocking occurs when fetching from the
container, and when a delete occurs.
2019-09-05 14:41:38 -04:00
Paul Beusterien b594723572 Update formatters for the Xcode 10.3 Travis image (#3739) 2019-09-03 08:46:21 -07:00
Paul Beusterien bb563c8497 Migrate travis to Xcode 10.3 and single platform builds (#3714) 2019-08-29 12:26:30 -07:00
Chen Liang 51ded3fefb should not persist context message ID in loggedMessageIDs (#3670) 2019-08-26 11:13:50 -07:00
Paul Beusterien d70c873654 Release 6.7.0 (#3646) 2019-08-21 15:41:58 -07:00
Paul Beusterien 2741ec345d Move two internal iid headers to private for RC open sourcing (#3621) 2019-08-19 07:41:57 -07:00
Chuan Ren 1c42c8efbe Add support of GSI 5 (#3611) 2019-08-16 09:26:55 -07:00
Paul Beusterien ce0386a24e Lock GoogleSignIn to major version 4 (#3608) 2019-08-15 16:50:41 -07:00
Chuan Ren ca19aba3c4 Update email test can now handle email conflict (#3577) 2019-08-14 17:30:40 -07:00
Ryan Wilson 615c20cf17 Ensure Messaging instance is usable after FIRApp's delete (#3579)
* Ensure Messaging instance is usable after FIRApp's `delete`

This fixes #3411. Test fails before the code change, and succeeds
afterwards.

* Update CHANGELOG.md

* Use Bug number instead of PR number
2019-08-14 15:06:22 -04:00
Paul Beusterien dbd960db22 Add interop API to prepare for RC open sourcing (#3582) 2019-08-13 18:23:59 -07:00
Chen Liang eade6bd374 kill debug assert and unnecessary macros (#3556) 2019-08-13 14:11:59 -07:00
Paul Beusterien 0f856905f0 Run Auth integration tests only in Auth travis phase (#3573) 2019-08-13 08:27:00 -07:00
dmandar b3bebbdc3f Add support for initializing custom domains without Core. This is required for 1P. (#3540) 2019-08-08 18:52:28 -07:00
Chen Liang f090a3cb80 remove internalHeader folder whose file is only used in unit test (#3537) 2019-08-08 13:00:47 -07:00
Paul Beusterien f3cc48a944 IID unit test update for Catalyst (#3534) 2019-08-08 09:57:39 -07:00
Chen Liang 5f0118d61f Update all the header path to pod repo relative (#3527)
* update all the path to pod repo relative

* fix a few missed out headers

* reorder the headers
2019-08-08 09:50:35 -07:00
Chen Liang 564e33834d use repo-root relative path for unit test files (#3515) 2019-08-07 17:00:01 -07:00
Paul Beusterien 24a58ad86a Release 6.6.0 (#3518) 2019-08-07 11:03:41 -07:00
Paul Beusterien 3b1ebfdc70 Update Database for Catalyst (#3512) 2019-08-07 06:55:51 -07:00
Chuan Ren c67c32afda Add table view index to the sample app (#3513) 2019-08-06 14:35:48 -07:00
Sebastian Schmidt c706ce9508 Support the RTDB emulator (#3491) 2019-08-05 16:54:37 -07:00
Sebastian Schmidt 9bfbb9ece0 Enable clang-format for RTDB (#3506) 2019-08-05 13:27:47 -07:00
Chuan Ren 91770e3317 Make sure the first valid auth domain is retrieved (#3493) 2019-08-02 11:40:58 -07:00
Chuan Ren a55467a225 Unify naming of keychain services and user defaults (#3473) 2019-07-31 13:24:16 -07:00