Commit Graph
626 Commits
Author SHA1 Message Date
Nick Cooke a0fd16d383 [Infra] Bump podspec min. versions (#15015) 2025-06-24 13:22:47 -04:00
cherylEnkidu 315221fe5b Export FirebaseCore.Timestamp in Firestore files to reduce the breakage of moving Timestamp (#13292) 2024-07-16 19:44:08 -04:00
Nick Cooke cf1b9419ea [Firestore] Remove FirestoreSwift (#13085) 2024-06-06 17:16:04 -04:00
Sheikh Bayazid e8a12e04c2 Improve/use shorthand syntax for unwrapping optionals and fix typos (#12369) 2024-05-03 08:50:20 -07:00
themiswang 90c33e404f [Rollouts] Feature rollouts merge to main (#12410) 2024-03-11 16:13:04 -04:00
Paul Beusterien 4d2b60dc75 Updated to SwiftFormat 0.52.10 (#12125) 2023-11-21 12:12:05 -08:00
ae871b9dc1 Update to swiftformat 0.51.12 (#11531)
Co-authored-by: Andrew Heard <andrewheard@google.com>
Co-authored-by: Nick Cooke <nickcooke@google.com>
2023-07-11 15:54:51 -07:00
Peter FrieseandBrianna Zamora ba999200a8 Add animations to @FirestoreQuery (#11437)
* Feature: Add animations to @FirestoreQuery
- Adds a SwiftUI `Animation` parameter to the FirebaseQuery initializer.
- If animation is not `nil` then setting the data to the published value will be executed inside of a `withAnimation` block (with the given `Animation`)
* feature: Add `FavouriteFruitsAnimationView`
This view demostrates how to use the ``FirestoreQuery`` property wrapper, using the `animation` parameter to make sure list items are animated when being added or removed.
* Explore alternative strategy for animating changes
This is an alternatice to the approach for animating changes in PR #10813
* Update sample project to include a view with and without animations
---------

Signed-off-by: Peter Friese <peter@peterfriese.de>
Co-authored-by: Brianna Zamora <briannadoubt@icloud.com>
2023-06-27 14:13:21 +02:00
Paul Beusterien 4a26ed8ac3 Fix build and run issues for Firestore Example (#10595) 2022-12-22 12:34:41 -05:00
Nick Cooke 43c62f0526 [Infra] Remove CoreDiagnostics library and references (#10259)
* [Infra] Remove CoreDiagnostics library and references

* Style localize_podfile.swift

* Add GDT to SharedTestUtils

* Update GoogleUtilities.cmake config

* Run all CI

* Update GoogleUtilities.cmake config (2)

* Resolve FIRApp.m TODO

* [skip ci] Revert Gemfile
2022-09-26 00:03:55 -04:00
af1201c8a3 [Firebase 10] Bump versions for 10.0.0 (#10244)
* [Firebase 10] Bump 9.X versions to 10.0.0

* Bump min. GTMSessionFetcher dep version to 2.1

* Bump min. GDT dep version to 9.2

* Bump min. GULs dep version to 7.8

* Fix unintentional nanopb replace

* Fix unintentional nanopb replace (2)

* Fix unintentional nanopb replace (3)

* Fix unintentional nanopb replace (4)

* Fix unintentional nanopb replace (4)

* Trigger all CI

* Bump FirebaseCombineSwift to 10

* Fix FirebaseStorage.podspec
I'm not sure what happened here. I had committed it during the rebase but guess not?

* Fix unintentional nanopb replace (5)

* Disable two tests to unblock staging

* Fix and re-enable FIROptions tests

* Update deployment targets in Firebase.podspec

* Add CHANGELOG entry for GTMSessionFetcher

* Fix AppCheck iOS availability

* Fix inadvertent API change (#10245)

* Docs update for Extensions and putFile (#10248)

* App google domain support (#10249)

Adding new 1p domain "app.google" support in FDL SDK.

* Remote Config Dynamic Property Wrapper (#10155)

* Separate GoogleUtilities Carthage build (#10250)

* Public count (#10246)

* Public Count

* Swift Test Commit

* Swift Format

* No extra whitespace

* Hopefully formatted.

* Change log and feedback.

* Revert "Public count (#10246)" (#10252)

This reverts commit 8aae6bee27.

* Make Firestore use FirebaseDataEncoder and FirebaseDataDecoder (re-implementation of #8858) (#9465)

* Bump tvOS minimum support version to 12.0

* [skip ci] Revert Gemfile

Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
Co-authored-by: Eldhose M Babu <eldhosembabu@google.com>
Co-authored-by: Charlotte Liang <chliang@google.com>
Co-authored-by: wu-hui <53845758+wu-hui@users.noreply.github.com>
Co-authored-by: Morten Bek Ditlevsen <bek@termestrup.dk>
2022-09-24 07:06:20 -04:00
Paul Beusterien ce3b40a56b Remove FirebaseStorageInternal (#10118) 2022-09-21 16:32:33 -07:00
Nick Cooke 9e475a5c58 [v9] End beta period and update release tooling for select products (#9603)
* Exit beta for several products

* Review

* Fix typo

* [skip ci] Update CHANGELOGs for breaking change
2022-04-08 11:59:58 -04:00
Paul Beusterien 7402150b2c FirebaseStorage[ObjC] to FirebaseStorageInternal (#9598) 2022-04-08 08:45:01 -07:00
Paul Beusterien 0c8536e35e Port Storage unit tests to Swift for corresponding Swift ports (#9521) 2022-04-04 13:28:54 -07:00
Paul Beusterien 1ed4d69b4e Make all Storage APIs available via Swift (#9443) 2022-04-04 13:28:14 -07:00
Paul Beusterien 8791b6bceb Merge FirebaseStorageSwift and FirebaseStorage (#9045) 2022-04-04 13:20:05 -07:00
Nick Cooke a09083f9d0 [v9] Reorganize FirebaseCore* modules (#9482)
* [skip ci] [will revert] Add debug printing to `pod_lib_lint.rb`

* Reorganize FirebaseCore libraries for SPM and CP

* [skip ci] Revert "[skip ci] [will revert] Add debug printing to `pod_lib_lint.rb`"

This reverts commit 2a837e39708c21b0a324743ab226bd6c01047de7.

* Review and fix CI

* Remove `heartbeat_logging.yml` and add `core_internal.yml`

* Remove trailing whitespace

* Fix more whitespace 😞

* Fix `core_internal.yml` scheme name

* Update `check_imports.swift` and TODO

* Review

* Add FirebaseCoreInternal pod to Firestore example's Podfile

* [skip ci] Review - remove TODOs

* [skip ci] Remove duplicate `XCTest` import
2022-03-23 06:08:14 -07:00
Paul Beusterien 5e8790d78a Update to SwiftFormat 0.49.2 (#9239) 2022-01-21 13:03:15 -08:00
a5859f9cec Add property wrapper for Firestore (#8614)
* Add FIRRequest
* Make FIRPredicate public
* Make init public
* Bugfixes
* Add debug print
* Move to main thread
* Undo "Move to main thread"
* Add FirebaseStore
* Add placeholder value
* Treat CollectionReference as Query
* Change let to var
* Replace getDocuments with addSnapshotListener
* Feedback from review
* Add sample project
* Rename folder, Rename FirebaseStore to QueryStore, Rename FIRRequest to FirestoreQuery, Rename several functions, attributes and parameter labels, Extend error handling
* Update some access specifiers, Add factory methods
* Add orderBy and limitTo
* Update Copyright, Rename FIRPredicate to QueryPredicate, Rename QueryStore to FirestoreQueryObservable, Rename some parameters, Remove setter for wrappedValue
* Rename store to firestoreQueryObservable
* Add limitToLast
* Move different types to different files
* Add FirestoreQueryConfiguration and projectedValue to dynamically change predicates & collectionPath
* Add Documentation
* Update documentation
* Add example app
* Address feedback from review
* Fix whitespace
* Address feedback from review
* Update data
* Add error handling (Manually cherry pick from Morten's PR: https://github.com/chFlorian/firebase-ios-sdk/pull/2)
* Update sample app to demonstrate error handling
* Cleanup
* Fix warning regarding unwrapping
* Fix tvOS availability
* Fix typos
* Experimental: use @FirestoreQuery inside a view model (Hint: this doesn't work)
* Fix platform availabilities
* Update data
* Improve error handling
* Cleanup
* Address feedback from review
* Update data
* Cleanup
* Alternate signature for predicates
* Address feedback from review
* Remove trailing backtick

Co-authored-by: Florian Schweizer <post.an.flo@gmail.com>
Co-authored-by: Morten Bek Ditlevsen <bek@termestrup.dk>
2021-10-06 13:56:31 +02:00
Peter Friese 7999fd32f6 Activate community support for Combine in Firebase 🔥
* Updated package naming, to highlight this is a community-supported effort
* Targets are named `Firebase<Product>CombineSwift, to allow `import Firebase<Product>CombineSwift`
* Removed umbrella package
* Packages are named `Firebase<Product>Combine-Community`
* Updated sample app to match new package structure
* Updated installation instructions
* Updated README
* Updated changelog.
2021-10-01 10:41:09 +02:00
Peter Friese f9929d0a9a Combine: Add a sample app (#8113)
A SwiftUI app that shows how to use the Combine-enabled APIs in context.

The  app contains a basic drill-down menu navigation and a simple screen that shows how to use Anonymous Auth and authStateDidChangePublisher.

As we add more publishers, their use should be demonstrated in this app as well.

The app currently needs a prod Firebase project, so one of the next steps will be to enable it for local Emulators.

#no-changelog
2021-05-20 18:20:35 +02:00
Chen Liang 429bac463c Remove InstanceID from Github repo (#7970) 2021-04-27 11:54:03 -07:00
Paul Beusterien b163ec5058 Firebase pod support for watchOS for RC and RTDB (#7841) 2021-04-05 11:41:33 -07:00
Chen Liang cb860013f0 Cleanup bad uses of andDo blocks (#7584) 2021-02-23 13:40:55 -08:00
Paul Beusterien cf49cbaa54 Incorporate SpecsDev (#7561) 2021-02-19 07:18:59 -08:00
Chen Liang 80a45125a0 Enable watchOS for Remote Config and ABTesting (#7481) 2021-02-12 11:41:35 -08:00
Paul Beusterien 54d28547d3 Remove GDT from repo (#7384) 2021-01-27 07:51:12 -08:00
Paul Beusterien 02488e99b7 Remove GoogleUtilities from repo (#7315) 2021-01-21 07:09:50 -08:00
Ryan Wilson 90cb05ce60 Remove dynamic framework count from diagnostics. (#7311)
* Remove dynamic framework count from diagnostics.

This was previously used to help determine if Firebase should switch to
using dynamic frameworks, but now developers have the option themselves.

Fixes #7310

* Added changelog

* Style

* Style
2021-01-15 13:38:12 -05:00
Maksym MalyhinandPaul Beusterien 497d08b71d Core: fix and cleanup notification center tests (#7244)
* Fix log diagnostics tests and remove unused notification

* Replace deprecated OCMock methods with notification expectations

* Bump Core and CoreDiagnostics versions

* Defer Core version update until release

Co-authored-by: Paul Beusterien <paulbeusterien@google.com>
2021-01-05 12:22:06 -05:00
Chen Liang 6ffc845b05 Check token is different from cache and storage before updating it (#7223) 2020-12-29 16:12:06 -08:00
Paul Beusterien 451a6c24c2 Restore Catalyst unit testing in CI (#7185) 2020-12-17 07:45:13 -08:00
Maksym Malyhin f198987a1a Firebase user agent: additional fields for platform logging (#6429)
* Move firebase user agent logic to a separate class.

* FIRAppTest: prefix some tests with the tested method names

* FIRAppTest: user agent new fields tests

* New user agent field added.

* Headers

* API docs

* ./scripts/style.sh

* nullability fix

* Move environment info methods to GoogleUtilities

* GULAppEnvironmentUtilTest

* GULAppEnvironmentUtil swift tests

* FirebaseApp user agent swift flag test

* ./scripts/style.sh

* Cleanup CoreDiagnostics

* Nullable device model

* FIRCoreDiagnosticsTest fix

* Merge fixes

* Fix import

* rename

* Cleanup GUL imports (since all headers are public now)
2020-10-13 08:53:42 -04:00
Maksym Malyhin a3a59c1bfc FIS: require projectID and valid API Key format (#6678)
* FIRInstallations validation: remove GCMSenderID fallback for missing projectID

* FIRInstallationsIDController: remove GCMSenderID fallback for  missing projectID

* Add API Key validation

* Changelog

* changelog

* Constant for API key lenght

* array] -> alloc] init]

* typo

* message

* ./scripts/style.sh

* Fix dummy API key in integration tests

* Update dummy API Keys to match the expected format

* debug test quickstart with no xcpretty

* fix debug

* Use debug QS repo branch

* print debug

* Add missing allowed characters `-`, `_`

* Nicer dummy API Keys

* Comment

* Revert "Use debug QS repo branch"

This reverts commit 69739dd6ae.

* Revert "fix debug"

This reverts commit 84fcbc7543.

* Revert "debug test quickstart with no xcpretty"

This reverts commit 1fa21ed62a.
2020-10-07 17:25:03 -04:00
Paul Beusterien 27ecc468e4 Fix a google3 build error (#6689) 2020-10-07 13:55:36 -07:00
Maksym Malyhin 8eded3f5be Remove deprecated -[FIRInstanceID appInstanceID:] (#6677)
* Remove deprecated -[FIRInstanceID appInstanceID:]

* changelog

* typo fix
2020-10-06 16:44:07 -04:00
Paul Beusterien 83e898ab5c One Firebase version (#6634) 2020-10-02 12:26:22 -07:00
Paul Beusterien 5d0a1c8ccb Merge remote-tracking branch 'origin/firebase7-main' into pb-merge-firebase7 2020-09-30 14:23:40 -07:00
Chen Liang f0e7b8e195 Add InstanceID deprecation warning (#6585) 2020-09-29 13:35:31 -07:00
Paul Beusterien f2bcd5d82b Make all GoogleUtilities APIs public (#6588) 2020-09-29 07:26:10 -07:00
Paul Beusterien 89dd31a7ae IID: repo-relative headers (#6539) 2020-09-23 11:00:54 -07:00
Chen Liang ef0f51e116 Avoid using OCMock on NSOperation (#6315) 2020-08-21 11:45:58 -07:00
Paul Beusterien a220ab1363 Add SPM support for CoreDiagnostics (#6233) 2020-08-10 07:46:19 -07:00
Chen Liang 2e028132de Fix topic in watchOS (#6209) 2020-08-06 12:57:59 -07:00
Paul Beusterien f1a5ee9514 Fix CoreDiagnostics test regression (#6180) 2020-07-31 11:38:53 -07:00
Chen Liang edf1e6d7ce Messaging: fix a warning in macOS build and sample podfile file path (#6070) 2020-07-17 15:58:13 -07:00
Paul Beusterien 60293c6dc4 Storage SPM Unit Tests (#5976) 2020-07-06 11:30:01 -07:00
Paul Beusterien d653c9584c Update copyright presubmit and fix 2020 copyrights (#5944) 2020-06-29 13:16:19 -07:00
Paul Beusterien 01bf549253 Update formatters (#5933) 2020-06-26 14:34:27 -07:00