v.3.0.2
- Update Android Gradle Plugin to 8.0.1 and Gradle to 8.0 by @wasky in https://github.com/burhanrashid52/PhotoEditor/pull/526
- Change nullable values to non-null values where possible by @wasky in https://github.com/burhanrashid52/PhotoEditor/pull/527
- Added Polish translation by @maciej-klupp in https://github.com/burhanrashid52/PhotoEditor/pull/532
- Fix return value of undo() and redo() methods. by @VardanTitan in https://github.com/burhanrashid52/PhotoEditor/pull/545
- v.3.0.2 Release release changes by @burhanrashid52 in https://github.com/burhanrashid52/PhotoEditor/pull/547
- @maciej-klupp made their first contribution in https://github.com/burhanrashid52/PhotoEditor/pull/532
- @VardanTitan made their first contribution in https://github.com/burhanrashid52/PhotoEditor/pull/545
Full Changelog: https://github.com/burhanrashid52/PhotoEditor/compare/v.3.0.1...v.3.0.2
v.3.0.2
- Update Android Gradle Plugin to 8.0.1 and Gradle to 8.0 by @wasky in https://github.com/burhanrashid52/PhotoEditor/pull/526
- Change nullable values to non-null values where possible by @wasky in https://github.com/burhanrashid52/PhotoEditor/pull/527
- Added Polish translation by @maciej-klupp in https://github.com/burhanrashid52/PhotoEditor/pull/532
- Fix return value of undo() and redo() methods. by @VardanTitan in https://github.com/burhanrashid52/PhotoEditor/pull/545
- @maciej-klupp made their first contribution in https://github.com/burhanrashid52/PhotoEditor/pull/532
- @VardanTitan made their first contribution in https://github.com/burhanrashid52/PhotoEditor/pull/545
Full Changelog: https://github.com/burhanrashid52/PhotoEditor/compare/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
Small Enhancements
- New : #379 Should disallow drawing on left or right of the image using
photoEditor.setClipSourceImage(true)
- New/Break : #383 Get a callback when the image source is touched
onTouchSourceImage(MotionEvent event);
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
- Fixed: #219 One selection at a time in
- Fixed: #345 Set pinch to scale to text only
Replace deprecated `getDrawingCache` to capturing method
Replace deprecated getDrawingCache
with capturing method. - getDrawingCache is deprecated.
Bug Fixes
- Fixed : #263 and #57
- New: Allowing
PhotoEditor
to extend with a protected constructor.