Releases: burhanrashid52/PhotoEditor
Releases · burhanrashid52/PhotoEditor
v.3.0.2
What's Changed
- Update Android Gradle Plugin to 8.0.1 and Gradle to 8.0 by @wasky in #526
- Change nullable values to non-null values where possible by @wasky in #527
- Added Polish translation by @maciej-klupp in #532
- Fix return value of undo() and redo() methods. by @VardanTitan in #545
- v.3.0.2 Release release changes by @burhanrashid52 in #547
New Contributors
- @maciej-klupp made their first contribution in #532
- @VardanTitan made their first contribution in #545
Full Changelog: v.3.0.1...v.3.0.2
Coroutine support
New : Arrow shape
Change : (Breaking Change) minSdkVersion changed to 21
Change : (Breaking Change) Shape names are no longer UPPERCASE
New : Suspending functions for saving images: saveAsFile(String[, SaveSettings]) and saveAsBitmap([SaveSettings])
// Please note that if you call this from a fragment, you should call
// 'viewLifecycleOwner.lifecycleScope.launch' instead.
lifecycleScope.launch {
val result = photoEditor.saveAsFile(filePath)
if (result is SaveFileResult.Success) {
showSnackbar("Image saved!")
} else {
showSnackbar("Couldn't save image")
}
}
Fixed : #374 IndexOutOfBoundsException when saving bitmap
Kotlin Migration
Small Enhancements
Shapes and Text Features
- Deprecated :
setBrushSize()
,setOpacity()
andsetBrushColor
. UseShapeBuilder
- New : Drawing Shapes using
ShapeBuilder
. Support Line, Brush, Oval and Rectangle out of the box.Deprecated - New : Allowing to add text shadow using
TextStyleBuilder.withTextShadow()
- New : Underline, strike out text.
Internal Refactoring
- Fixed : #351 Internal Refactoring
- Removed: (Breaking Change)
PhotoEditor.getEmoji()
is no longer part of the library and it's now moved to the sample app.
Bug Fixes
Replace deprecated `getDrawingCache` to capturing method
Replace deprecated getDrawingCache
with capturing method. - getDrawingCache is deprecated.
Bug Fixes
AndroidX Migration
- New: Migrating the support libraries to AndroidX
- New: Bumped target SDK version to 29
- Test: Adding UI to test for the library