Skip to content

Commit

Permalink
chore(release): publish 0.0.1-dev.5 web implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoEllet committed Nov 8, 2024
1 parent ffb2169 commit afdd2f6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions quill_native_bridge_web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 0.0.1-dev.5

- Added `QuillNativeBridgeFeature.getClipboardFiles` to the `QuillNativeBridgeWeb.isSupported` switch, preventing `UnimplementedError` at runtime.

## 0.0.1-dev.4

- Require `quill_native_bridge_platform_interface` minimum version `0.0.1-dev.4`.
Expand Down
12 changes: 7 additions & 5 deletions quill_native_bridge_web/lib/quill_native_bridge_web.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ class QuillNativeBridgeWeb extends QuillNativeBridgePlatform {
return isClipboardApiSupported;
case QuillNativeBridgeFeature.getClipboardGif:
return false;
// Without this default check, adding new item to the enum will be a breaking change
default:
throw UnimplementedError(
'Checking if `${feature.name}` is supported on the web is not covered.',
);
case QuillNativeBridgeFeature.getClipboardFiles:
return false;
}
// Without this default, adding a new item to the enum will be a breaking change.
// ignore: dead_code
throw UnimplementedError(
'Checking if `${feature.name}` is supported on the web is not covered.',
);
}

@override
Expand Down
2 changes: 1 addition & 1 deletion quill_native_bridge_web/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: quill_native_bridge_web
description: "Web platform implementation of quill_native_bridge"
version: 0.0.1-dev.4
version: 0.0.1-dev.5
homepage: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_web
repository: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge_web
issue_tracker: https://github.com/FlutterQuill/quill-native-bridge/issues?q=is%3Aissue+is%3Aopen+label%3A%22platform-web%22
Expand Down

0 comments on commit afdd2f6

Please sign in to comment.