firebase / FirebaseUI-Flutter

Apache License 2.0
92 stars 81 forks source link

feat(ui_storage)!: upgrade uuid dependency to ^4.0.0 #188

Closed lesnitsky closed 7 months ago

lesnitsky commented 7 months ago

UuidFileUploadNamingPolicy and respective factory constructor FileUploadNamingPolicy.uuid now accept V4Options?, instead of Map<String, dynamic>?.

Here's an example migration:

final config = FirebaseUIStorageConfiguration(
  storage: storage,
-  namingPolicy: FileUploadNamingPolicy.uuid({ 'rng': CryptoRNG() }),
+  namingPolicy: FileUploadNamingPolicy.uuid(V4Options(null, CryptoRNG())),
);

await FirebaseUIStorage.configure(config);

Related Issues

Requested in #176

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?