This pull request includes several changes aimed at improving the composability and efficiency of the ImageSaverPlugin and QRScannerPlugin modules. The most important changes involve renaming factory functions to use the remember pattern, updating the corresponding documentation, and removing unnecessary imports.
This pull request includes several changes aimed at improving the composability and efficiency of the
ImageSaverPlugin
andQRScannerPlugin
modules. The most important changes involve renaming factory functions to use theremember
pattern, updating the corresponding documentation, and removing unnecessary imports.Improvements to composability:
ImageSaverPlugin/src/commonMain/kotlin/com/kashif/imagesaverplugin/ImageSaverPlugin.kt
: Renamed thecreateImageSaverPlugin
function torememberImageSaverPlugin
and updated the corresponding documentation. [1] [2]qrScannerPlugin/src/commonMain/kotlin/com/kashif/qrscannerplugin/QRScannerPlugin.kt
: Renamed thecreateQRScannerPlugin
function torememberQRScannerPlugin
and updated the corresponding documentation.Documentation updates:
README.MD
: Updated the usage examples to reflect the newrememberImageSaverPlugin
andrememberQRScannerPlugin
function names.Code cleanup:
Sample/src/commonMain/kotlin/org/company/app/App.kt
: Removed unused imports and updated the plugin instantiation to use the newremember
functions. [1] [2] [3] [4]qrScannerPlugin/src/commonMain/kotlin/com/kashif/qrscannerplugin/QRScannerPlugin.kt
: Removed thedebounce
parameter from thegetQrCodeFlow
function to simplify the flow management.- Renamed API to create image saver pluginremoved debounce from qr flow to be more customizable