Skip to content

Commit e51d2a2

Browse files
authored
feat(firestore, windows): add support to Windows (#11516)
1 parent dd20c0c commit e51d2a2

File tree

147 files changed

+15707
-5754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+15707
-5754
lines changed

melos.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ scripts:
214214
run: |
215215
melos exec -- "flutter pub run pigeon --input ./pigeons/messages.dart" && \
216216
melos run generate:pigeon:macos --no-select && \
217+
melos run generate:pigeon:android --no-select && \
217218
melos run format --no-select
218219
packageFilters:
219220
fileExists: 'pigeons/messages.dart'
@@ -226,6 +227,14 @@ scripts:
226227
fileExists: 'ios/Classes/messages.g.m'
227228
description: Pigeon does not add the condition to import Flutter or FlutterMacOs. Add the condition
228229

230+
generate:pigeon:android:
231+
run: |
232+
melos exec -- "find ./android -type f -name '*Generated*' | xargs sed -i '.bak' 's/ArrayList<Object> toList() {/public ArrayList<Object> toList() {/g'" && \
233+
melos exec -- "find ./android -type f -name '*.bak' -delete"
234+
packageFilters:
235+
dirExists: 'android'
236+
description: Transform the method toList() into a public one to be used in EventChannel
237+
229238
odm:test:
230239
run: |
231240
melos run odm:test:dart &&

packages/cloud_firestore/cloud_firestore/android/src/main/java/io/flutter/plugins/firebase/firestore/FlutterFirebaseFirestoreMessageCodec.java

+19-19
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@
3636
class FlutterFirebaseFirestoreMessageCodec extends StandardMessageCodec {
3737
public static final FlutterFirebaseFirestoreMessageCodec INSTANCE =
3838
new FlutterFirebaseFirestoreMessageCodec();
39-
private static final byte DATA_TYPE_DATE_TIME = (byte) 128;
40-
private static final byte DATA_TYPE_GEO_POINT = (byte) 129;
41-
private static final byte DATA_TYPE_DOCUMENT_REFERENCE = (byte) 130;
42-
private static final byte DATA_TYPE_BLOB = (byte) 131;
43-
private static final byte DATA_TYPE_ARRAY_UNION = (byte) 132;
44-
private static final byte DATA_TYPE_ARRAY_REMOVE = (byte) 133;
45-
private static final byte DATA_TYPE_DELETE = (byte) 134;
46-
private static final byte DATA_TYPE_SERVER_TIMESTAMP = (byte) 135;
47-
private static final byte DATA_TYPE_TIMESTAMP = (byte) 136;
48-
private static final byte DATA_TYPE_INCREMENT_DOUBLE = (byte) 137;
49-
private static final byte DATA_TYPE_INCREMENT_INTEGER = (byte) 138;
50-
private static final byte DATA_TYPE_DOCUMENT_ID = (byte) 139;
51-
private static final byte DATA_TYPE_FIELD_PATH = (byte) 140;
52-
private static final byte DATA_TYPE_NAN = (byte) 141;
53-
private static final byte DATA_TYPE_INFINITY = (byte) 142;
54-
private static final byte DATA_TYPE_NEGATIVE_INFINITY = (byte) 143;
55-
private static final byte DATA_TYPE_FIRESTORE_INSTANCE = (byte) 144;
56-
private static final byte DATA_TYPE_FIRESTORE_QUERY = (byte) 145;
57-
private static final byte DATA_TYPE_FIRESTORE_SETTINGS = (byte) 146;
39+
private static final byte DATA_TYPE_DATE_TIME = (byte) 180;
40+
private static final byte DATA_TYPE_GEO_POINT = (byte) 181;
41+
private static final byte DATA_TYPE_DOCUMENT_REFERENCE = (byte) 182;
42+
private static final byte DATA_TYPE_BLOB = (byte) 183;
43+
private static final byte DATA_TYPE_ARRAY_UNION = (byte) 184;
44+
private static final byte DATA_TYPE_ARRAY_REMOVE = (byte) 185;
45+
private static final byte DATA_TYPE_DELETE = (byte) 186;
46+
private static final byte DATA_TYPE_SERVER_TIMESTAMP = (byte) 187;
47+
private static final byte DATA_TYPE_TIMESTAMP = (byte) 188;
48+
private static final byte DATA_TYPE_INCREMENT_DOUBLE = (byte) 189;
49+
private static final byte DATA_TYPE_INCREMENT_INTEGER = (byte) 190;
50+
private static final byte DATA_TYPE_DOCUMENT_ID = (byte) 191;
51+
private static final byte DATA_TYPE_FIELD_PATH = (byte) 192;
52+
private static final byte DATA_TYPE_NAN = (byte) 193;
53+
private static final byte DATA_TYPE_INFINITY = (byte) 194;
54+
private static final byte DATA_TYPE_NEGATIVE_INFINITY = (byte) 195;
55+
private static final byte DATA_TYPE_FIRESTORE_INSTANCE = (byte) 196;
56+
private static final byte DATA_TYPE_FIRESTORE_QUERY = (byte) 197;
57+
private static final byte DATA_TYPE_FIRESTORE_SETTINGS = (byte) 198;
5858

5959
@Override
6060
protected void writeValue(ByteArrayOutputStream stream, Object value) {

0 commit comments

Comments
 (0)