chore: remove device_info_plus and add quill_native_bridge to access platform specific APIs #2194
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Remove
device_info_plus
and create aquill_native_bridge
plugin for accessing platform-specific APIsCurrently, we have
device_info_plus
as a dependency to fix a bug on iOS simulator (See #652) by check if the device is an iOS simulator, removing the plugin and addquill_native_bridge
which currently can only check if the platform is iOS simulator, we might expand it in the future since we need platform-specific APIs in some areas such as accessing the clipboard and spell checker system service.This PR doesn't make
flutter_quill
a plugin, instead, it creates a new plugin and requires it as a dependency influtter_quill
.Moving packages into their own directory
We might consider moving the packages into their own directory (
packages
) however there are some places that need to be manually updated first:flutter_quill
in the other packages (likeflutter_quill_extensions
)quill_native_bridge/ios/quill_native_bridge.podspec
We will discuss it in a different issue later.
Related Issues
Type of Change