Skip to content

Commit dfd3d6f

Browse files
committed
Merge branch 'main' into firestore-pipelines-dart-api-v2
2 parents 3a8ae50 + ab79fd9 commit dfd3d6f

File tree

15 files changed

+124
-100
lines changed

15 files changed

+124
-100
lines changed

packages/cloud_firestore/cloud_firestore_platform_interface/lib/src/method_channel/method_channel_aggregate_query.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import 'method_channel_firestore.dart';
88
/// An implementation of [AggregateQueryPlatform] for the [MethodChannel]
99
class MethodChannelAggregateQuery extends AggregateQueryPlatform {
1010
MethodChannelAggregateQuery(
11-
query,
11+
QueryPlatform query,
1212
this._pigeonParameters,
1313
this._path,
1414
this._pigeonApp,

packages/cloud_firestore/cloud_firestore_platform_interface/lib/src/platform_interface/platform_interface_load_bundle_task_snapshot.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import '../../cloud_firestore_platform_interface.dart';
1010
/// The interface a load bundle task snapshot must extend.
1111
class LoadBundleTaskSnapshotPlatform extends PlatformInterface {
1212
// ignore: public_member_api_docs
13-
LoadBundleTaskSnapshotPlatform(this.taskState, data)
13+
LoadBundleTaskSnapshotPlatform(this.taskState, Map<String, dynamic> data)
1414
: bytesLoaded = data['bytesLoaded'],
1515
documentsLoaded = data['documentsLoaded'],
1616
totalBytes = data['totalBytes'],

packages/cloud_firestore/cloud_firestore_web/lib/src/aggregate_query_web.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AggregateQueryWeb extends AggregateQueryPlatform {
1515
/// without retrieving the actual documents.
1616
AggregateQueryWeb(
1717
QueryPlatform query,
18-
_webQuery,
18+
firestore_interop.Query _webQuery,
1919
this._aggregateQueries,
2020
) : _delegate = firestore_interop.AggregateQuery(_webQuery),
2121
_webQuery = _webQuery,

packages/firebase_auth/firebase_auth_platform_interface/test/platform_interface_tests/platform_interface_confirmation_result_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ void main() {
4747
}
4848

4949
class TestConfirmationResultPlatform extends ConfirmationResultPlatform {
50-
TestConfirmationResultPlatform(verificationId) : super(verificationId);
50+
TestConfirmationResultPlatform(String verificationId) : super(verificationId);
5151
}

packages/firebase_core/firebase_core_platform_interface/lib/src/method_channel/method_channel_firebase_app.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MethodChannelFirebaseApp extends FirebaseAppPlatform {
1818
MethodChannelFirebaseApp(
1919
String name,
2020
FirebaseOptions options, {
21-
isAutomaticDataCollectionEnabled,
21+
bool? isAutomaticDataCollectionEnabled,
2222
}) : _isAutomaticDataCollectionEnabled =
2323
isAutomaticDataCollectionEnabled ?? false,
2424
super(name, options);

packages/firebase_performance/firebase_performance_platform_interface/test/method_channel_tests/method_channel_http_metric_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class TestFirebasePerformancePlatform extends FirebasePerformancePlatform {
204204

205205
class TestMethodChannelHttpMetric extends MethodChannelHttpMetric {
206206
TestMethodChannelHttpMetric(
207-
url,
208-
method,
207+
String url,
208+
HttpMethod method,
209209
) : super(url, method);
210210
}

packages/firebase_performance/firebase_performance_platform_interface/test/method_channel_tests/method_channel_trace_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,5 @@ void main() {
166166
}
167167

168168
class TestMethodChannelTrace extends MethodChannelTrace {
169-
TestMethodChannelTrace(name) : super(name);
169+
TestMethodChannelTrace(String name) : super(name);
170170
}

packages/firebase_storage/firebase_storage_platform_interface/test/platform_interface_tests/platform_interface_list_result_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ void main() {
6666
}
6767

6868
class TestListResultPlatform extends ListResultPlatform {
69-
TestListResultPlatform(storage, nextPageToken)
69+
TestListResultPlatform(
70+
FirebaseStoragePlatform? storage, String? nextPageToken)
7071
: super(storage, nextPageToken);
7172
}
7273

packages/firebase_storage/firebase_storage_platform_interface/test/platform_interface_tests/platform_interface_reference_test.dart

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import '../mock.dart';
1515
void main() {
1616
setupFirebaseStorageMocks();
1717

18-
TestReferencePlatform? referencePlatform;
19-
FirebaseApp? app;
20-
FirebaseStoragePlatform? firebaseStoragePlatform;
18+
FirebaseApp app;
19+
FirebaseStoragePlatform firebaseStoragePlatform;
20+
late TestReferencePlatform referencePlatform;
2121

2222
group('$ReferencePlatform()', () {
2323
setUpAll(() async {
@@ -35,7 +35,7 @@ void main() {
3535
group('verify()', () {
3636
test('calls successfully', () {
3737
try {
38-
ReferencePlatform.verify(referencePlatform!);
38+
ReferencePlatform.verify(referencePlatform);
3939
return;
4040
} catch (_) {
4141
fail('thrown an unexpected exception');
@@ -44,23 +44,23 @@ void main() {
4444
});
4545

4646
test('get.bucket returns successfully', () async {
47-
final bucket = referencePlatform!.bucket;
47+
final bucket = referencePlatform.bucket;
4848
expect(bucket, isA<String>());
4949
});
5050

5151
test('get.fullPath returns successfully', () async {
52-
final fullPath = referencePlatform!.fullPath;
52+
final fullPath = referencePlatform.fullPath;
5353
expect(fullPath, isA<String>());
5454
});
5555

5656
test('get.name returns successfully', () async {
57-
final name = referencePlatform!.name;
57+
final name = referencePlatform.name;
5858
expect(name, isA<String>());
5959
});
6060

6161
test('get.parent should throw unimplemented', () async {
6262
try {
63-
referencePlatform!.parent;
63+
referencePlatform.parent;
6464
} on UnimplementedError catch (e) {
6565
expect(e.message, equals('ref() is not implemented'));
6666
return;
@@ -70,7 +70,7 @@ void main() {
7070

7171
test('get.root should throw unimplemented', () async {
7272
try {
73-
referencePlatform!.root;
73+
referencePlatform.root;
7474
} on UnimplementedError catch (e) {
7575
expect(e.message, equals('ref() is not implemented'));
7676
return;
@@ -80,7 +80,7 @@ void main() {
8080

8181
test('get.child should throw unimplemented', () async {
8282
try {
83-
referencePlatform!.child('/');
83+
referencePlatform.child('/');
8484
} on UnimplementedError catch (e) {
8585
expect(e.message, equals('ref() is not implemented'));
8686
return;
@@ -90,7 +90,7 @@ void main() {
9090

9191
test('throws if delete()', () async {
9292
try {
93-
await referencePlatform!.delete();
93+
await referencePlatform.delete();
9494
} on UnimplementedError catch (e) {
9595
expect(e.message, equals('delete() is not implemented'));
9696
return;
@@ -100,7 +100,7 @@ void main() {
100100

101101
test('throws if getDownloadURL()', () async {
102102
try {
103-
await referencePlatform!.getDownloadURL();
103+
await referencePlatform.getDownloadURL();
104104
} on UnimplementedError catch (e) {
105105
expect(e.message, equals('getDownloadURL() is not implemented'));
106106
return;
@@ -110,7 +110,7 @@ void main() {
110110

111111
test('throws if getMetadata()', () async {
112112
try {
113-
await referencePlatform!.getMetadata();
113+
await referencePlatform.getMetadata();
114114
} on UnimplementedError catch (e) {
115115
expect(e.message, equals('getMetadata() is not implemented'));
116116
return;
@@ -120,7 +120,7 @@ void main() {
120120

121121
test('throws if list()', () async {
122122
try {
123-
await referencePlatform!.list(const ListOptions(maxResults: 10));
123+
await referencePlatform.list(const ListOptions(maxResults: 10));
124124
} on UnimplementedError catch (e) {
125125
expect(e.message, equals('list() is not implemented'));
126126
return;
@@ -130,7 +130,7 @@ void main() {
130130

131131
test('throws if listAll()', () async {
132132
try {
133-
await referencePlatform!.listAll();
133+
await referencePlatform.listAll();
134134
} on UnimplementedError catch (e) {
135135
expect(e.message, equals('listAll() is not implemented'));
136136
return;
@@ -140,7 +140,7 @@ void main() {
140140

141141
test('throws if putBlob()', () async {
142142
try {
143-
referencePlatform!.putBlob(null);
143+
referencePlatform.putBlob(null);
144144
} on UnimplementedError catch (e) {
145145
expect(e.message, equals('putBlob() is not implemented'));
146146
return;
@@ -150,7 +150,7 @@ void main() {
150150

151151
test('throws if putString()', () async {
152152
try {
153-
referencePlatform!.putString('foo', PutStringFormat.base64);
153+
referencePlatform.putString('foo', PutStringFormat.base64);
154154
} on UnimplementedError catch (e) {
155155
expect(e.message, equals('putString() is not implemented'));
156156
return;
@@ -161,7 +161,8 @@ void main() {
161161
}
162162

163163
class TestReferencePlatform extends ReferencePlatform {
164-
TestReferencePlatform(storage, path) : super(storage, path);
164+
TestReferencePlatform(FirebaseStoragePlatform storage, String path)
165+
: super(storage, path);
165166
}
166167

167168
class TestFirebaseStoragePlatform extends FirebaseStoragePlatform {

packages/firebase_storage/firebase_storage_web/lib/src/interop/storage_interop.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ extension type ListResultJsImpl._(JSObject _) implements JSObject {
229229
/// See: <https://firebase.google.com/docs/reference/js/firebase.storage#stringformat>
230230
@JS()
231231
@staticInterop
232+
// ignore: avoid_classes_with_only_static_members
232233
class StringFormat {
233234
/// Indicates the string should be interpreted 'raw', that is, as normal text.
234235
/// The string will be interpreted as UTF-16, then uploaded as a UTF-8 byte

0 commit comments

Comments
 (0)