Upgrading com.attafitamim.krop:ui 0.1 to 0.2
Breaking0.1.6 → 0.2.0Breaking9New3Changed5Fixed1Other3
BreakingUpgrade verdict
8 breaking changes.
In plain terms
- The cropSrc parameter is now called crop, so existing code using cropSrc must be updated.
- The deprecated iOS extension for converting UIImage to ImageBitmap is removed.
- Renames cropSrc to crop.
- The UI module now uses Material 3, so apps relying on Material 2 components may need updates.
Must act Top 3 of 8 that need code or config changes
What you must change
Breaking8
Renames cropSrc to crop.
cropSrccropRemoves deprecated UIImage.toImageBitmap(params: DecodeParams) on iOS.
UIImage.toImageBitmap()DecodeParamsImageBitmapRenames cropSrc to crop.
cropSrccropMigrates the ui module and sample to material3 instead of material.
Changes the parameters order for crop functions.
cropChanges helper methods to return ImageSrc? instead of specific implementations.
ImageSrcAdds clipResultToShape to CropState.
CropStateclipResultToShapeMakes ImageStream.getImageSize() private on desktop.
ImageStream.getImageSize()IntSize