Commit Graph
551 Commits
Author SHA1 Message Date
Thomas Bouldin 90e4522e66 [Feature launch] Re-add increment operator (#5149)
* Definition is currently in an "unreleased" extension to FIRServerValues
* Tests are added to FData.m (integration tests)
* Some tests are renamed to make it clear that ServerValues != timestamps
* Functions that resolve server values now need access to any existing snapshot. This is done with lazy evaluation as described below:

Based on fix https://github.com/firebase/firebase-js-sdk/pull/2499
to bug https://github.com/firebase/firebase-js-sdk/issues/2487

Micro-benchmarking showed that N writes in succession led to N^2
performance when calculating the resolved write tree for those
writes (thankfully only at the subpath in this SDK). Lazy evaluation
of current data matches the optimization in JS that mitigated a
20% performance regression.
2020-04-01 13:30:29 -07:00
Chen Liang 1054d6a167 Remove migration from legacy keychain (#5237) 2020-03-31 15:25:29 -07:00
Chuan Ren 9a7754c59e Enable lint for Auth (#5097) 2020-03-17 10:22:29 -07:00
Chuan Ren 1243798999 Capitalize (#5063) 2020-03-11 10:15:27 -07:00
Morgan Chen 8fa6431ad5 Update environment checks (#5056)
* update environment checks

* replace deprecated macro

* update GoogleUtilities changelog
2020-03-10 15:39:03 -07:00
Chuan Ren 4433d07709 MFA beta (#4823) 2020-03-10 13:30:20 -07:00
Chen Liang cbc869552d minor fix in the README and tvOS podfile (#4982) 2020-02-26 16:11:42 -08:00
Chen Liang 1fb6a77a8b Add github action for Messaging (#4970) 2020-02-26 11:46:30 -08:00
Chen Liang a310248f49 Make Firebase Storage compile and work in independent watch app (#4955) 2020-02-25 14:06:40 -08:00
Chen Liang 27c4898cec Deprecating FCM Direct Channel API (#4710) 2020-02-18 10:36:39 -08:00
Chen Liang d3d27559cc Add independent watch sample app for Messaging (#4893) 2020-02-13 15:52:58 -08:00
Chen Liang f4ae4a4416 re-enable style script for messaging (#4858) 2020-02-07 14:27:18 -08:00
Chen Liang 1dad9c5c0e use secure coding and secure archiving for messaging (#4848) 2020-02-07 12:53:57 -08:00
Maksym Malyhin 25f626ca17 FCM: async remove database in FIRMessagingRmqManager (#4771)
* Add tests for removeDatabase deadlock

* Cleanup

* Cleanup and comments.

* FIRMessagingRmqManager: async remove database

* FIRMessagingRmqManager: async remove DB test fixes.

* Fix trailing spaces

* Cleanup

* FIR_MESSAGING_ASSERTIONS_BLOCKED handling added. FIR_MESSAGING_ASSERTIONS_BLOCKED is set in google3 tests

* Fix blaze tests
2020-02-03 15:59:03 -05:00
dmandar f5062d861c FDL source, unit tests and app now live in FirebaseDynamicLinks folder. (#4767)
* Move FDL sources to new location.

* Add FDL unit tests.

* Move test app.

* Fix source path.

* Move unit tests path.

* Rename source to sources.

* Change relative path.

* Update podspec.

* Fix header search path.

* Fix relative path for scripts.

* Fix tests.
2020-01-30 11:44:31 -08:00
Maksym Malyhin b1dfcfd5b3 IID: fix flaky tests (#4703)
* IID: fix flaky tests

* Coments.
2020-01-17 16:45:48 -05:00
Maksym Malyhin 1bc3255436 Firebase Installations: validation of FIROptions parameters (#4683)
* FIS: Throw exception on incomplete Firebase config.

* API docs updated.

* FirebaseInstallations bump minor version: 1.1.0

* Fix tests

* Text fixed

* Make exception message more informative

* Fix Remote Config tests.

* Tests updated to use GCMSenderID if projectID is not available.

* Use `GCMSenderID` when `projectID` is not available.

* ./scripts/style.sh

* Comments

* GCMSenderID and projectID validation updated.

* Comment

* FirebaseInstallations: version bump to 1.0.1.

* FIS changelog

* FirebaseInstallations: version bump to 1.1.0

* FIS and Core changelogs.

* Changelogs remove GCMSenderID

* Typo

* Typo

* fix link

* Revert Core changelog

* FIS changelog fix.
2020-01-16 16:13:49 -05:00
Maksym Malyhin 71a001ee44 FCM: fix distant future date in the tests. (#4667) 2020-01-13 14:00:49 -05:00
Maksym Malyhin fea5640caa IID: re-enable deleteID test (#4586) 2020-01-08 16:00:37 -05:00
Sebastian Schmidt 339c8404d0 Revert "Add +[FIRServerValues increment:] (#4328)" (#4627)
This reverts commit 1cf8a944d7.
2020-01-08 09:25:30 -08:00
Paul Beusterien 1367084063 FirebaseCore directory structure update (#4590) 2020-01-06 07:11:40 -08:00
Chuan Ren b378456a54 Add apple sign in to sample code (#4583) 2020-01-03 15:06:55 -08:00
Maksym Malyhin 156df40066 IID: disable integration tests on MacOS (#4589) 2020-01-03 15:42:13 -05:00
Paul Beusterien efa9bd9cd4 Remove Firebase xcode project (#4588) 2020-01-03 12:19:41 -08:00
Paul Beusterien b6cd99e30a Update Firebase Storage directory structure (#4573) 2020-01-03 07:22:33 -08:00
Maksym Malyhin 942a23dc17 FirebaseInstanceID integration tests (#4560)
* InstanceID integration tests

* ./scripts/style.sh

* Travis: run install_prereqs.sh for IID

* install_prereqs.sh: run `install_secrets` for IID

* Flag to disable IID integration tests

* Travis: IID disable integration tests for forks.

* ./scripts/style.sh

* Temporary disable IID test due to b/147102327

* Travis: IID integration tests enabled for all IID builds.
2020-01-02 19:29:29 -05:00
Chen Liang e4456c011b Enables Firebase Messaging push notification function on watch only and independent watch app (#4016) 2019-12-23 16:45:19 -08:00
Paul Beusterien 9f97f4ec8e One more Podfile update for Installations (#4540) 2019-12-21 09:48:52 -08:00
Maksym MalyhinandChen Liang f62c7ddcec IID: version dependent on FirebaseInstallations (#4533)
* Firebase Installations: Instance ID now uses FIS under the hood. (#3398)

* Fix merge errors

* Use modular import for FIRInstanceID_Private.h

* Use modular imports for FirebaseInstanceID.h (#3509)

* Changes missing during the fix.

* Changes missing during merge.

* Fix header import.

* ./scripts/style.sh

* Fix FCM tests. (#3888)

* Fix IID FCM token check.

* FirebaseInstallation: merge master into FIS integration branch (#4076)

* Fix IID FCM token check.

* Unused constant deleted.

* FCM tests: fix bad merge.

* Remote Config test app: use local IID and FIS. (#4089)

* token request should pass through if token is not fresh (#4104)

* Merge errors fix.

* IID with FIS: send FIS auth token with IID token request (#4152)

* FIRInstanceIDTokenOperation: add FIS auth token to the IID token request.

* IID tests: don't use FIS private headers.

* IID: indication of compatibility with FIS (#4262)

* FIS: IID incompatible version exception.

* FirebaseInstallations.podspec: set preprocessor flags based on env vars.

* FIS Travis: set required env vars

* /scripts/style.sh

* IID: method to indicate FIS usege added.

* FIS: FIRInstantiationTimingEagerInDefaultApp

* FIS: FIRInstantiationTimingAlwaysEager

* IID: make compatibility method static.

* Make -[FIRInstanceID appInstanceID:] safe to be called from any thread (#4482)

* IID: use a cached value of FID for -[FIRInstanceID appInstanceID:]

* TODO comment

* TODO updated

* FirebaseInstallations: prepare IID with FIS dependency for release (#4522)

* Bump FIrebaseInstallations to 1.0.0

* Travis: remove mm/fis-integration-master branch

* Travis: if_changed script updated to reflect IID dependency on FIS.

* Revert "Travis: remove mm/fis-integration-master branch"

This reverts commit 534dff990a.

* Travis: remove mm/fis-integration-master branch (#4526)

* Formatting and spelling.

* Firebase example proj: pod deintegrate

Co-authored-by: Chen Liang <chliang@google.com>
2019-12-20 10:54:11 -05:00
Paul Beusterien 76c766a866 Release 6.14.0 (#4513) 2019-12-17 11:36:36 -08:00
rsgowman 6fafa08eae Update instructions for auth api tests. (#3894) 2019-12-17 09:29:29 -05:00
Maksym Malyhin 5fcb29158d Add "swift" flag to firebaseUserAgent (#4448)
* Add "swift-runtime/true" to user agent when Swift detected.

* Use "swift" instead of "swift-runtime"

*  ./scripts/style.sh

* Add comment with the Swift check clarification

* Fix bridging header path

* Fix SwiftObject class name for old Siwft versions.

* Add swift runtime flag with value true or false (to be able to distinguish from a no-value-provided case).
2019-12-06 15:45:52 -05:00
Ryan Wilson 0882dbc46d Allow multiple configure calls in an extension. (#4436)
* Allow multiple `configure` calls in an extension.

Some extensions have an entry point that gets called multiple times.
Instead of having to check if a default app has already been configured,
allow multiple `configure` calls if and only if it's in an extension and
the FIROptions contents are identical.

* Review comments.

* Updated comment.
2019-12-06 13:32:48 -05:00
Paul Beusterien d73d937951 Lazily register for Core's user agent (#4441) 2019-12-05 06:58:17 -08:00
Thomas Bouldin 1cf8a944d7 Add +[FIRServerValues increment:] (#4328)
Add +[FIRServerValues increment:]

* Definition is currently in an "unreleased" extension to FIRServerValues
* Functions that resolve server values now need access to any existing snapshot; please help ensure that this is not done wastefully.
* Tests are added to FData.m
  * Setting increment values
  * Setting increment priorities
  * Type coercion
  * Overflows
* Some tests are renamed to make it clear that ServerValues != timestamps
2019-11-21 11:46:56 -08:00
Chen Liang fcc2aabae8 Fix a few misuse of OCMock in Messaging and InstanceID (#4363) 2019-11-19 19:21:26 -08:00
Paul Beusterien 9c803fc356 Lock OCMock to 3.4 while investigating test failures with 3.5.0 (#4344) 2019-11-18 16:40:58 -08:00
Ryan Wilson bfcdef563d Fix #4343 incorrect OCMock test. (#4346) 2019-11-18 14:51:11 -08:00
Vinay Guthal 20c9f899df add heartbeat support for iid (#4323)
* add heartbeat support for iid

* format code

* fix tests

* fix formatting
2019-11-15 17:42:29 -05:00
Ryan Wilson 3261d120a9 Update versions for Release 6.13.0 (#4318) 2019-11-14 16:50:23 -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
Chen Liang 54b1458ebb Remove unnecessary rmq database operations in unit tests. (#4236) 2019-11-06 20:11:15 -08:00
Maksym Malyhin d18d515739 Merging the 6.12.0 release into master (#4223)
* Update versions for Release 6.12.0

* Update versions for Release 6.12.0 - Firestore

* Update versions for Release 6.12.0

* Update CHANGELOG for Firestore v1.7.0 (#4195)

* FirebaseCore version bump to 6.3.3 (#4213)

* Release manifst updated. (#4219)

* Revert "Add OIDC nonce support (#4183)" (#4220) (#4222)

This reverts commit ffe4a3a5b4.

* Revert Auth podspec version bump. (#4232)

* Release manifest - Auth removed (#4233)

* 6.12.0: Firebase.podspec FirebaseAuth pod version reverted, cherry-pick #4231 (#4234)

* Firebase.podspec - revert Auth

* check_whitespaces.sh: ignore notices. (#4231)

* Remove unnecessary NOTICES file (#4242)
2019-11-06 14:56:42 -05:00
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