Skip to content

Upgrading com.attafitamim.krop:ui 0.1 to 0.2

Breaking0.1.6 → 0.2.0Breaking9New3Changed5Fixed1Other3

BreakingUpgrade verdict

8 breaking changes.

  • 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.
Top 3 of 8 that need code or config changes
Breaking8
Renames cropSrc to crop.
cropSrccrop
Removes deprecated UIImage.toImageBitmap(params: DecodeParams) on iOS.
UIImage.toImageBitmap()DecodeParamsImageBitmap
Renames cropSrc to crop.
cropSrccrop
Migrates the ui module and sample to material3 instead of material.
Changes the parameters order for crop functions.
crop
Changes helper methods to return ImageSrc? instead of specific implementations.
ImageSrc
Adds clipResultToShape to CropState.
CropStateclipResultToShape
Makes ImageStream.getImageSize() private on desktop.
ImageStream.getImageSize()IntSize