Skip to content

Commit 8d1ea80

Browse files
authored
fix(storage,windows): add log to explain that the Storage Emulator is not available on Windows (#13147)
1 parent d41e30a commit 8d1ea80

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/firebase_storage/firebase_storage/lib/src/firebase_storage.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ class FirebaseStorage extends FirebasePluginPlatform {
174174
}
175175
}
176176

177+
if (defaultTargetPlatform == TargetPlatform.windows && !kIsWeb) {
178+
// ignore: avoid_print
179+
print('The Storage Emulator is not available on Windows.');
180+
return;
181+
}
182+
177183
await _delegate.useStorageEmulator(mappedHost, port);
178184
}
179185

0 commit comments

Comments
 (0)