Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
647c213
- Created cloud_firestore_platform interface package
amrfarid140 Dec 14, 2019
9ed7d8c
- Created cloud_firestore_web package
amrfarid140 Dec 14, 2019
7fdd1c8
Created query interface
amrfarid140 Dec 15, 2019
14bad9c
created base QuerySnapshot
amrfarid140 Dec 16, 2019
552305d
organised platform_interface module
amrfarid140 Dec 16, 2019
63f3488
- created query_web
amrfarid140 Dec 16, 2019
9c7ea4a
- fixed method_channel_query_snapshot
amrfarid140 Dec 16, 2019
250f017
- implemented query_web
amrfarid140 Dec 16, 2019
dfaa02a
- delegated collection_reference_web to use query_web
amrfarid140 Dec 16, 2019
46349f6
- added firestore web to firestore package
amrfarid140 Dec 16, 2019
d731ecd
- create delegate for collection reference
amrfarid140 Dec 16, 2019
9ad5779
- create delegate for document related items
amrfarid140 Dec 16, 2019
8557df2
- create delegate for transaction and query
amrfarid140 Dec 16, 2019
fa06657
delegate cloud_firestore to abstract types
amrfarid140 Dec 17, 2019
993b86a
- added method_channel_firestore_test
amrfarid140 Dec 17, 2019
2a160d5
Use support multiple apps in FirestoreWeb
amrfarid140 Dec 17, 2019
3e24ca2
added transaction implementation
amrfarid140 Dec 17, 2019
76037e7
updated readmes
amrfarid140 Dec 17, 2019
e1f1591
Merge pull request #1 from amrfarid140/feature/firestore_web_support
amrfarid140 Dec 17, 2019
ffb12cd
fixed copy typo on readme
amrfarid140 Dec 17, 2019
c30f1f7
- Added change log
amrfarid140 Dec 17, 2019
65984ff
Added support for field value
amrfarid140 Dec 18, 2019
ec595fe
Build example for web and mobile
amrfarid140 Dec 18, 2019
aa7d422
Support new FieldValueInterface on mobile
amrfarid140 Dec 18, 2019
082baa3
Fix query delegation on web
amrfarid140 Dec 18, 2019
61cc5b1
Use PlaformUtils for conversions in DocumentChange
amrfarid140 Dec 18, 2019
aa3089e
Fixed typo in variable name
amrfarid140 Dec 18, 2019
2d3e712
Pass timeout value for transaction
amrfarid140 Dec 18, 2019
abed99e
Delete unused cloud_firestore/firestore_message_codec
amrfarid140 Dec 18, 2019
269d71e
removed unused imports
amrfarid140 Dec 18, 2019
d820fbc
removed empty constructor
amrfarid140 Dec 18, 2019
685d168
Fixed argument name
amrfarid140 Dec 18, 2019
c618131
Addressed comments for cloud_firestore_platform_interface setup
amrfarid140 Dec 18, 2019
874fdfb
Use cast
amrfarid140 Dec 18, 2019
124501e
Add timeout to web transaction
amrfarid140 Dec 18, 2019
3f182de
Fixed cloud_firestore_web version
amrfarid140 Dec 18, 2019
8b93dfa
Improved Query code and added documentation for main interface classes
amrfarid140 Dec 18, 2019
b2e46f1
Minor PR fixes
amrfarid140 Dec 18, 2019
98bfeb2
Fixed current analyze and fmt issues
amrfarid140 Dec 18, 2019
dc3e4cc
Fix message codec to run transaction on mobile
amrfarid140 Dec 19, 2019
b7cb9a3
Fix transaction writes on mobile and web
amrfarid140 Dec 19, 2019
05584ed
Updated example to showcase transactions
amrfarid140 Dec 19, 2019
b74bd77
PR feedback fixes
amrfarid140 Dec 19, 2019
0e261aa
Added write batch support
amrfarid140 Dec 19, 2019
d73dcce
Formatting
amrfarid140 Dec 19, 2019
0bfd691
Fix write batch examples
amrfarid140 Dec 19, 2019
3c7faa0
Added comments to match existing API level documentation
amrfarid140 Dec 19, 2019
dab85d2
Avoid setting host and ssl if either is null
amrfarid140 Dec 19, 2019
b23805c
Bug fixes for QueryWeb and CollectionWeb
amrfarid140 Dec 19, 2019
6632ae7
Added support for handling Blob and GeoPoint
amrfarid140 Dec 19, 2019
e74a230
Started code utility stuff
amrfarid140 Dec 19, 2019
3932bdf
Handle maps and arrays for codec conversions
amrfarid140 Dec 19, 2019
67574b1
Removed cupertino import
amrfarid140 Dec 19, 2019
7cd3c13
Lazily load Firestore instances
amrfarid140 Dec 19, 2019
64392c4
PR Feedback fixes
amrfarid140 Dec 19, 2019
9967067
Use PlatformInterface to check for verify implementation
amrfarid140 Dec 20, 2019
164b8b5
removed comments on analysis file
amrfarid140 Dec 20, 2019
b6050f9
removed todo as its not a client side logic
amrfarid140 Dec 20, 2019
762daae
Removed ensureInitialized() call
amrfarid140 Dec 20, 2019
2082303
Added null checks for codec_utility
amrfarid140 Dec 20, 2019
d3c65ad
Use setUpAll for test
amrfarid140 Dec 20, 2019
a2623e1
Use toList()
amrfarid140 Dec 20, 2019
73627b6
Added platform_interface/document_reference_test.dart
amrfarid140 Dec 20, 2019
f77739d
Added platform_interface field value test
amrfarid140 Dec 20, 2019
ef5d223
Fixed method_channel_document_reference
amrfarid140 Dec 20, 2019
3e70296
Add comments on public functions for field_value_factory
amrfarid140 Dec 20, 2019
103f534
added platform_interface_query_test
amrfarid140 Dec 20, 2019
8513162
Added unit tests for method channel document and collection reference
amrfarid140 Dec 20, 2019
efa315d
added snapshot() unit test for document reference
amrfarid140 Dec 20, 2019
b4fa2db
Added method_channel_field_value_factory_test
amrfarid140 Dec 20, 2019
afd6b0e
added transaction unit test
amrfarid140 Dec 20, 2019
8860659
Separated common testing logic
amrfarid140 Dec 20, 2019
cc2af37
use serve delegates in transaction
amrfarid140 Dec 20, 2019
ade9dbf
use serve delegates in write batch
amrfarid140 Dec 20, 2019
98d021e
Formatting changes
amrfarid140 Dec 20, 2019
6491ade
Started firestore_web tests
amrfarid140 Dec 20, 2019
77f4318
Completed collection_reference_web_test
amrfarid140 Dec 20, 2019
118780d
Avoid storing non-default Firestore app as static instance
amrfarid140 Dec 21, 2019
e4519d4
Fixed method_channel_transaction
amrfarid140 Dec 21, 2019
e26a812
Check for null data in codec_utility
amrfarid140 Dec 21, 2019
f8bc035
Unit test firestore_web
amrfarid140 Dec 21, 2019
4b79e26
Fix typo
amrfarid140 Dec 21, 2019
5391128
Fix analyze issues
amrfarid140 Dec 21, 2019
d3e60d5
Added firestore_web codec_utility_test
amrfarid140 Dec 21, 2019
cac92e2
Added test for field factory web
amrfarid140 Dec 22, 2019
207cc23
unit tested get document for QueryWeb
amrfarid140 Dec 22, 2019
5accb7a
Added more unit tests for QueryWeb
amrfarid140 Dec 22, 2019
ac1907d
Formatted code
amrfarid140 Dec 22, 2019
7c2ff05
Added public methods documentation
amrfarid140 Dec 22, 2019
37f7bd0
added TransactionWeb unit test
amrfarid140 Dec 22, 2019
a771d88
Added WriteBatchTest
amrfarid140 Dec 22, 2019
49edada
Added visiblefortesting annotation
amrfarid140 Dec 23, 2019
50ef0f1
Fix analyzer
amrfarid140 Dec 23, 2019
566e011
Delete unnecessary timestamp.dart
amrfarid140 Jan 3, 2020
b2b445c
Handle DateTime to Timestamp conversion for web
amrfarid140 Jan 3, 2020
9b786db
Use codec_utility across web
amrfarid140 Jan 3, 2020
24adc0c
Avoid building unnecessary instances of FirebaseApp
amrfarid140 Jan 3, 2020
19b094c
Added platform interface updates
amrfarid140 Jan 8, 2020
abacb4c
Add latest update for platform_interface
amrfarid140 Jan 8, 2020
e7204f2
Use platform interface types in cloud_firestore
amrfarid140 Jan 17, 2020
5bcaa82
removed material import from firestore_web
amrfarid140 Jan 17, 2020
09aa7ff
Fixed documentation comments
amrfarid140 Jan 17, 2020
b09cd24
Added comment on the purpose of lazy init of Firestore delegate
amrfarid140 Jan 17, 2020
7428da2
Separate Platform Interface source from Method Channel.
ditman Jan 27, 2020
06242c8
Start fixing imports
ditman Jan 27, 2020
52008c6
Moved some more
ditman Jan 27, 2020
5be6db8
Some more moving
ditman Jan 27, 2020
91ed554
Fix imports after moving files around. Interface should be identical …
ditman Jan 27, 2020
3c207c1
Make all platform_interface classes names consistent.
collinjackson Jan 29, 2020
182d2ae
Ensure platform interfaces can only be extended, not implemented.
collinjackson Jan 29, 2020
082ae1d
MethodChannelFieldValueFactory now extends FieldValueFactoryPlatform
ditman Jan 29, 2020
e7be32a
.appName() -> .app.name
collinjackson Jan 29, 2020
b036a96
Ensure PlatformInterface _delegate classes extend the Platform class,
collinjackson Jan 29, 2020
c2c75d0
Get web going again...
ditman Jan 30, 2020
3214bb1
Remove unneeded mocking on app.name so web tests pass again.
ditman Jan 30, 2020
8a1e1c8
Add token verification to instances of FieldValueFactoryPlatform.
ditman Jan 30, 2020
f68b5ea
Use FieldValuePlatform instead of FieldValueInterface. Ensure it's "e…
ditman Jan 31, 2020
6f4d042
Docs update
collinjackson Feb 1, 2020
5b80b50
Merge pull request #60 from collinjackson/amr-master-pr-2
ditman Feb 1, 2020
9dcc1c9
Hide most of the API surface from cloud_firestore_web.
ditman Feb 1, 2020
8b95bc9
Hide _webFirestore
collinjackson Feb 1, 2020
b7b5fc9
Moving some more stuff around
ditman Feb 1, 2020
bd96dde
Hide the MethodChannel implementation from the world.
ditman Feb 1, 2020
15dd903
analyze + dartfmt
ditman Feb 3, 2020
e8fe1a6
Hide FieldPathType from the world, since it's only used by MethodChan…
ditman Feb 3, 2020
2b4cde2
Use import/export instead of part in cloud_firestore_platform_interfa…
ditman Feb 3, 2020
e40a1c3
Add copyright notices everywhere.
ditman Feb 4, 2020
6f74929
Ensure FieldValue extends Platform, not implements.
ditman Feb 4, 2020
192ad66
Remove implements web.FieldValue from FieldValueWeb, since the
ditman Feb 4, 2020
ff5561e
Remove `serverDelegates` from `FieldValuePlatform`, and convert to a
ditman Feb 4, 2020
b4de785
dartfmt
ditman Feb 4, 2020
d69f67e
Remove appName() from FirestorePlatform.
ditman Feb 4, 2020
7009ef6
Use Source and DocumentChangeType enums from PlatformInterface.
ditman Feb 4, 2020
3b30165
Transaction constructor is properly public, not visibleForTesting. da…
ditman Feb 4, 2020
926ba55
Do not export auto_id_generator from PlatformInterface.
ditman Feb 4, 2020
4cb361c
Remove as much logic as possible from FieldValue instances.
ditman Feb 4, 2020
7c92e7c
FieldValue now internally stores the platform-dependent value.
ditman Feb 5, 2020
542a8e3
Merge pull request #2 from amrfarid140/amr-master-pr
amrfarid140 Feb 5, 2020
12277b0
Merge branch 'master' of github.com:FirebaseExtended/flutterfire and …
amrfarid140 Feb 5, 2020
00e04ed
Merge branch 'master' of github.com:FirebaseExtended/flutterfire
amrfarid140 Feb 6, 2020
48e5ba3
Use published version of `cloud_firestore_platform_interface`
amrfarid140 Feb 6, 2020
e192292
Merge branch 'master' of github.com:FirebaseExtended/flutterfire
amrfarid140 Feb 11, 2020
c7a4647
updated readme to indicate cloud_firestore web implementation status
amrfarid140 Feb 11, 2020
684ad09
removed already deleted file
amrfarid140 Feb 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ that enable Flutter apps to use [Firebase](https://firebase.google.com/) service

| Plugin | Version | Firebase feature | Source code | Web? |
|---|---|---|---|---|
| [cloud_firestore][firestore_pub] | ![pub package][firestore_badge] | [Cloud Firestore][firestore_product] | [`cloud_firestore`][firestore_code] | |
| [cloud_firestore][firestore_pub] | ![pub package][firestore_badge] | [Cloud Firestore][firestore_product] | [`cloud_firestore`][firestore_code] | <img src="https://user-images.githubusercontent.com/394889/70172910-9174c880-1686-11ea-8e2e-3d8c1cc78cce.png" alt="hummingbird" width="25"> |
| [cloud_functions][functions_pub] | ![pub package][functions_badge] | [Cloud Functions][functions_product] | [`cloud_functions`][functions_code] | |
| [firebase_admob][admob_pub] | ![pub package][admob_badge] | [Firebase AdMob][admob_product] | [`firebase_admob`][admob_code] | |
| [firebase_analytics][analytics_pub] | ![pub package][analytics_badge] | [Firebase Analytics][analytics_product] | [`firebase_analytics`][analytics_code] | |
Expand Down
4 changes: 4 additions & 0 deletions packages/cloud_firestore/cloud_firestore/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.13.2

* Added support for Flutter Web

## 0.13.1+1

* Fixed crashes when using `Query#where` with `DocumentReference` objects
Expand Down
23 changes: 23 additions & 0 deletions packages/cloud_firestore/cloud_firestore/example/web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>example</title>
</head>
<body>
<script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.5.0/firebase-firestore.js"></script>
<script>
// Your web app's Firebase configuration
var firebaseConfig = {
appId: '1:79601577497:ios:5f2bcc6ba8cecddd',
messagingSenderId: '79601577497',
apiKey: 'AIzaSyArgmRGfB5kiQT6CunAOmKRVKEsxKmy6YI-G72PVU',
projectId: 'flutter-firestore',
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<script src="main.dart.js" type="application/javascript"></script>
</body>
</html>
7 changes: 5 additions & 2 deletions packages/cloud_firestore/cloud_firestore/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: cloud_firestore
description:
Flutter plugin for Cloud Firestore, a cloud-hosted, noSQL database with
live synchronization and offline support on Android and iOS.
live synchronization and offline support on Android, iOS and Web.
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/cloud_firestore/cloud_firestore
version: 0.13.1+1
version: 0.13.2

flutter:
plugin:
Expand All @@ -13,13 +13,16 @@ flutter:
pluginClass: CloudFirestorePlugin
ios:
pluginClass: FLTCloudFirestorePlugin
web:
default_package: cloud_firestore_web

dependencies:
flutter:
sdk: flutter
meta: "^1.0.5"
firebase_core: "^0.4.0"
cloud_firestore_platform_interface: "^1.0.0"
cloud_firestore_web: "^0.1.0+1"

dev_dependencies:
flutter_test:
Expand Down