-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[cloud_firestore] Invoke on ui thread only #1701
Changes from all commits
eedcb2d
ca262db
c7a5b59
c3fcd79
a62b859
a3d391a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,12 @@ | ||
| ## 0.12.2 | ||
|
|
||
| * Ensure that all channel calls to the Dart side from the Java side are done | ||
| on the UI thread. This change allows Transactions to work with upcoming | ||
| Engine restrictions, which require channel calls be made on the UI thread. | ||
| **Note** this is an Android only change, the iOS implementation was not impacted. | ||
| * Updated the Firebase reporting string to `flutter-fire-fst` to be consistent | ||
| with other reporting libraries. | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this take into account that Firestore's Android SDK will not allow transactions on the UI thread?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The transaction itself is not being executed on the UI thread, only the message being passed over the channel from native side to Dart side is being done on the UI thread. |
||
| ## 0.12.1 | ||
|
|
||
| * Added support for `Source` to `Query.getDocuments()` and `DocumentReference.get()`. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,8 +7,8 @@ | |
| import java.util.List; | ||
|
|
||
| public class FlutterFirebaseAppRegistrar implements ComponentRegistrar { | ||
| private static final String LIBRARY_NAME = "flutter-firebase_cloud_firestore"; | ||
| private static final String LIBRARY_VERSION = "0.12.1"; | ||
| private static final String LIBRARY_NAME = "flutter-fire-fst"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be mentioned in changelog
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
| private static final String LIBRARY_VERSION = "0.12.2"; | ||
|
|
||
| @Override | ||
| public List<Component<?>> getComponents() { | ||
|
|
||
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.
You may want to mention that this is an Android-only change.
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.
Done