-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[cloud_firestore] created firestore web plugin #1950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cloud_firestore] created firestore web plugin #1950
Conversation
- Migrated DocumentReference and CollectionReference to use interfaces
- added where support
- fixed test failure causes
Feature/firestore web support
- use any as versions
Created FieldValueFactory to provide platform-specific FieldValue instances
Added NO-OP folders for android & ios in firestore web package
- Removed unnecessary tracking of collection reference delegate and used the more generic query type instead - fixed breakage
…ue_web.dart Co-Authored-By: Collin Jackson <[email protected]>
….dart Co-Authored-By: Collin Jackson <[email protected]>
…b_plugin' into firestore_web/cloud_firestore_web_plugin
Taking a look at the failing checks, look like transient network failures. Relaunching. |
FirestoreWeb was renamed to CloudFirestoreWeb but this was not changed for the generated_plugin_registrant.dart file, which gets automatically created. |
packages/cloud_firestore/cloud_firestore_web/lib/src/collection_reference_web.dart
Outdated
Show resolved
Hide resolved
|
||
/// Web implementation for [FirestorePlatform] | ||
/// delegates calls to firestore web plugin | ||
class CloudFirestoreWeb extends FirestorePlatform { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite the filename, I think this class should be FirestoreWeb
rather than CloudFirestoreWeb
.
The package was originally named firebase_firestore
and I renamed it cloud_firestore
in response to an internal request (see flutter/flutter#12388). My understanding from talking to the Firebase team is that firebase_firestore is now the preferred package name and that classes shouldn't be using a Cloud
prefix. At some point we might want to rename this package back (updating to 1.0 might be the right time for that). I filed #1964 as a tracking issue, but for now we should try to be consistent with what the app-facing and platform interface packages are doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I've reverted the class name change.
… firestore_web/cloud_firestore_web_plugin
- Revered FirestoreWeb rename
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking at the check that is red. |
Cloud Firestore Web has been merged and published: https://pub.dev/packages/cloud_firestore_web/versions/0.1.0 (After endorsing, we'll have to update the README with the latest info on how to set up the package, the current version is quite outdated by now) |
Thank you for the hard work!! |
Hey guys, thank you so much for great work. I tried to utilize it but getting these errors. Do you know a reason or suggestion how to fix it.
|
plugin: | ||
platforms: | ||
web: | ||
pluginClass: FirestoreWeb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be FirestoreWebPlugin, I think!
@maximchewy thanks for reporting, I'll push a fix ASAP. |
Thanks @maximchewy. Looks like I forgot to update It should be:
That should resolve the issue. @ditman are you pushing the fix or do you want me to create a PR ? |
@amrfarid140 I can get the fix pushed, go get some sleep :P |
@ditman Thanks 😊
…On Mon, 10 Feb 2020, 10:03 pm David Iglesias, ***@***.***> wrote:
@ditman <https://github.com/ditman> are you pushing the fix or do you
want me to create a PR ?
@amrfarid140 <https://github.com/amrfarid140> I can get the fix pushed,
go get some sleep :P
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1950>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGFK4OKSPKMZPY6IMPMLIDRCHFLJANCNFSM4KRJVX6A>
.
|
@maximchewy we've published |
@amrfarid140 @ditman thanks for quick response and fix. I was able to save data from flutter web to firestore. Great job guys |
@maximchewy awesome! |
Description
Implementation for
cloud_firestore_web
pluginRelated Issues
This is part of the changes mentioned in this PR.
It is a follow-up of an the following merged [PR1] (#1686) & [PR2] (#1945)
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.///
).flutter analyze
) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?