Skip to content

Commit a46d434

Browse files
committed
bump version to 2.5.0 and update readme
1 parent 85b624c commit a46d434

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@ For more information, see the [GitHub Wiki](https://github.com/ArthurHub/Android
121121
- [Adding auto-zoom feature to Android-Image-Cropper](https://theartofdev.com/2016/04/25/adding-auto-zoom-feature-to-android-image-cropper/)
122122

123123
## Change log
124+
*2.5.0*
125+
- Update to sdk v26
126+
- Update gradle plugin to 2.0
127+
- Update min sdk version to 14
128+
- Fix NPE in `getWholeImageRect`
129+
- Remove `crop_image_menu_crop` drawable support, replace with `setCropMenuCropButtonIcon` builder api.
130+
- Support setting crop button title via builder api.
131+
- Add string resource for "no permissions" toast.
132+
124133
*2.4.7*
125134
- Fix toolbar menu crop icon sometimes appears with random icon (#305)
126135
- Use CharSequence instead of string for activity title (thx @KentHawkings) (#297)
@@ -129,13 +138,6 @@ For more information, see the [GitHub Wiki](https://github.com/ArthurHub/Android
129138
- Making the library JitPack-friendly (Thanks @gazialankus) (#325)
130139
- Allow a Fragment to call the startPickImageActivity help method in CropImage (Thanks @cdavietei) (#315)
131140

132-
*2.4.6*
133-
- Fix undefined drawable in Android Studio 3.0 (thx @adrien-aubel)
134-
- Added `CropImage.activity()` overload without `uri` parameter (thx @jake32321)
135-
136-
*2.4.4*
137-
- Fix image exif (rotation) data not always extracted during image loading (thx @danikula).
138-
139141
See [full change log](https://github.com/ArthurHub/Android-Image-Cropper/wiki/Change-Log).
140142

141143
## License

cropper/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ group='com.github.ArthurHub'
88
ext {
99
PUBLISH_GROUP_ID = 'com.theartofdev.edmodo'
1010
PUBLISH_ARTIFACT_ID = 'android-image-cropper'
11-
PUBLISH_VERSION = '2.4.7'
11+
PUBLISH_VERSION = '2.5.0'
1212
// gradlew clean build generateRelease
1313
}
1414

cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,8 +915,8 @@ public ActivityBuilder setCropMenuCropButtonTitle(CharSequence title) {
915915
* Image resource id to use for crop icon instead of text.<br>
916916
* <i>Default: 0</i>
917917
*/
918-
public ActivityBuilder setCropMenuCropIcon(@DrawableRes int cropMenuCropIcon) {
919-
mOptions.cropMenuCropButtonIcon = cropMenuCropIcon;
918+
public ActivityBuilder setCropMenuCropButtonIcon(@DrawableRes int drawableResource) {
919+
mOptions.cropMenuCropButtonIcon = drawableResource;
920920
return this;
921921
}
922922
}

quick-start/src/main/java/com/theartofdev/edmodo/cropper/quick/start/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void onSelectImageClick(View view) {
4040
.setCropShape(CropImageView.CropShape.OVAL)
4141
.setCropMenuCropButtonTitle("Done")
4242
.setRequestedSize(400, 400)
43-
.setCropMenuCropIcon(R.drawable.ic_launcher)
43+
.setCropMenuCropButtonIcon(R.drawable.ic_launcher)
4444
.start(this);
4545
}
4646

0 commit comments

Comments
 (0)