Skip to content

Commit 8b020e9

Browse files
committed
Prepare version 4.6.0
1 parent 7eb3191 commit 8b020e9

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
Version 4.6.0 *(In development)*
2-
--------------------------------
1+
Version 4.6.0 *(2024-08-05)*
2+
----------------------------
3+
4+
- API: CropImageOptions\#canChangeCropWindow option. [\#636](https://github.com/CanHub/Android-Image-Cropper/pull/636) ([vanniktech](https://github.com/vanniktech))
5+
- API: Deprecate CropImageActivity. [\#635](https://github.com/CanHub/Android-Image-Cropper/pull/635) ([vanniktech](https://github.com/vanniktech))
6+
- API: Deprecate CropImageContract. [\#637](https://github.com/CanHub/Android-Image-Cropper/pull/637) ([vanniktech](https://github.com/vanniktech))
7+
- Fixed bug when changing toolbar text color [\#556](https://github.com/CanHub/Android-Image-Cropper/pull/556) ([Husseinhj](https://github.com/Husseinhj))
8+
- Resource: Missing Translations added for korean / japanese [\#552](https://github.com/CanHub/Android-Image-Cropper/pull/552) ([hubtwork](https://github.com/hubtwork))
9+
- Technical: Update to Kotlin 2.0.0 & more. [\#634](https://github.com/CanHub/Android-Image-Cropper/pull/634) ([vanniktech](https://github.com/vanniktech))
310

411
Version 4.5.0 *(2022-11-02)*
512
----------------------------

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Android Image Cropper
1414

1515
```groovy
1616
dependencies {
17-
implementation("com.vanniktech:android-image-cropper:4.5.0")
17+
implementation("com.vanniktech:android-image-cropper:4.6.0")
1818
}
1919
```
2020

@@ -24,6 +24,8 @@ There are 3 ways of using the library. Check out the sample app for all details.
2424

2525
### [1. Calling crop directly](./sample/src/main/kotlin/com/canhub/cropper/sample/SampleCrop.kt)
2626

27+
**Note:** This way is deprecated and will be removed in future versions. The path forward is to write your own Activity, handle all the `Uri` stuff yourself and use `CropImageView`.
28+
2729
```kotlin
2830
class MainActivity : AppCompatActivity() {
2931
private val cropImage = registerForActivityResult(CropImageContract()) { result ->
@@ -77,7 +79,7 @@ class MainActivity : AppCompatActivity() {
7779

7880
### [2. Using CropView](./sample/src/main/kotlin/com/canhub/cropper/sample/SampleUsingImageView.kt)
7981

80-
- Add `CropImageView` into your activity
82+
**Note:** This is the only way forward, add `CropImageView` into your own activity and do whatever you wish. Checkout the sample for more details.
8183

8284
```xml
8385
<!-- Image Cropper fill the remaining available height -->
@@ -108,6 +110,8 @@ val cropped: Bitmap = cropImageView.getCroppedImage()
108110

109111
### [3. Extend to make a custom activity](./sample/src/main/kotlin/com/canhub/cropper/sample/SampleCustomActivity.kt)
110112

113+
**Note:** This way is also deprecated and will be removed in future versions. The path forward is to write your own Activity, handle all the `Uri` stuff yourself and use `CropImageView`.
114+
111115
If you want to extend the `CropImageActivity` please be aware you will need to set up your `CropImageView`
112116

113117
- Add `CropImageActivity` into your AndroidManifest.xml
@@ -171,7 +175,7 @@ dependencies {
171175

172176
When using Activity Contracts, consult with the sample app on how to use our Activity Contracts since `onActivityResult` got deprecated.
173177

174-
Versions after 4.3.3 have changed the APIs quite a bit, it's best to upgrade to each minor version individually, remove deprecated API usages and continue upgrading. So after using 4.3.3, upgrade to 4.4.0, etc.
178+
Versions after 4.3.3 have changed the APIs quite a bit, it's best to upgrade to each minor version individually, remove deprecated API usages and continue upgrading. So after using 4.3.3, upgrade to 4.4.0, upgrade to 4.5.0, 4.6.0, etc.
175179

176180
## License
177181

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GROUP=com.vanniktech
2-
VERSION_NAME=4.6.0-SNAPSHOT
2+
VERSION_NAME=4.6.0
33

44
POM_DESCRIPTION=Image Cropping Library for Android, optimised for Camera / Gallery.
55

0 commit comments

Comments
 (0)