-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #815 from Yalantis/develop-non-native
Release 2.2.8
- Loading branch information
Showing
23 changed files
with
160 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
|
||
<a href="https://play.google.com/store/apps/details?id=com.yalantis.ucrop.sample&utm_source=global_co&utm_medium=prtnr&utm_content=Mar2515&utm_campaign=PartBadge&pcampaignid=MKT-AC-global-none-all-co-pr-py-PartBadges-Oct1515-1"><img alt="Get it on Google Play" src="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png" width="185" height="70"/></a> | ||
|
||
1. Include the library as local library project. | ||
1. Include the library as a local library project. | ||
|
||
``` | ||
allprojects { | ||
|
@@ -25,9 +25,9 @@ | |
``` | ||
|
||
``` implementation 'com.github.yalantis:ucrop:2.2.3' ``` - lightweight general solution | ||
|
||
``` implementation 'com.github.yalantis:ucrop:2.2.3-native' ``` - get power of the native code to preserve image quality (+ about 1.5 MB to an apk size) | ||
|
||
2. Add UCropActivity into your AndroidManifest.xml | ||
|
||
``` | ||
|
@@ -73,15 +73,15 @@ If you want to let your users choose crop ratio dynamically, just do not call `w | |
uCrop builder class has method `withOptions(UCrop.Options options)` which extends library configurations. | ||
Currently you can change: | ||
Currently, you can change: | ||
* image compression format (e.g. PNG, JPEG, WEBP), compression | ||
* image compression quality [0 - 100]. PNG which is lossless, will ignore the quality setting. | ||
* whether all gestures are enabled simultaneously | ||
* maximum size for Bitmap that is decoded from source Uri and used within crop view. If you want to override default behaviour. | ||
* maximum size for Bitmap that is decoded from source Uri and used within crop view. If you want to override the default behaviour. | ||
* toggle whether to show crop frame/guidelines | ||
* setup color/width/count of crop frame/rows/columns | ||
* choose whether you want rectangle or oval crop area | ||
* choose whether you want rectangle or oval(`options.setCircleDimmedLayer(true)`) crop area | ||
* the UI colors (Toolbar, StatusBar, active widget state) | ||
* and more... | ||
|
@@ -90,20 +90,29 @@ Since version 2.2.7 in case if you need to change transport protocol, setup time | |
```java | ||
new UCropInitializer().setOkHttpClient(client); | ||
``` | ||
# Compatibility | ||
* Library - Android ICS 4.0+ (API 14) (Android GINGERBREAD 2.3+ (API 10) for versions <= 1.3.2) | ||
* Sample - Android ICS 4.0+ (API 14) | ||
* CPU - armeabi armeabi-v7a x86 x86_64 arm64-v8a (for versions >= 2.1.2) | ||
# Changelog | ||
### Version: 2.2.8 | ||
* Merged pending pull requests with improvements and bugfixes | ||
* Update compileSdk and targetSdk versions up to 31 | ||
* Add localizations | ||
* Fixed [#609](https://github.com/Yalantis/uCrop/issues/609) | ||
* Fixed [#794](https://github.com/Yalantis/uCrop/issues/794) | ||
### Version: 2.2.3 | ||
* Several fixes including [#445](https://github.com/Yalantis/uCrop/issues/445), [#465](https://github.com/Yalantis/uCrop/issues/465) and more! | ||
* Material design support | ||
* Several fixes including [#445](https://github.com/Yalantis/uCrop/issues/445), [#465](https://github.com/Yalantis/uCrop/issues/465) and more! | ||
* Material design support | ||
* uCrop fragment as child fragment | ||
* Added Italian language | ||
* Added the Italian language | ||
### Version: 2.2.2 | ||
|
@@ -122,7 +131,7 @@ Since version 2.2.7 in case if you need to change transport protocol, setup time | |
### Version: 2.1 | ||
* Fixes issue with EXIF data (images taken on front camera with Samsung devices mostly) [#130](https://github.com/Yalantis/uCrop/issues/130) [#111](https://github.com/Yalantis/uCrop/issues/111) | ||
* Added API to set custom set of aspect ratio options for user. [#131](https://github.com/Yalantis/uCrop/issues/131) | ||
* Added API to set custom set of aspect ratio options for the user. [#131](https://github.com/Yalantis/uCrop/issues/131) | ||
* Added API to set all configs via UCrop.Options class. [#126](https://github.com/Yalantis/uCrop/issues/126) | ||
* Added ABI x86_64 support. [#105](https://github.com/Yalantis/uCrop/issues/105) | ||
|
@@ -131,7 +140,7 @@ Since version 2.2.7 in case if you need to change transport protocol, setup time | |
* Native image crop (able to crop high-resolution images, e.g. 16MP & 32MP images on Nexus 5X). | ||
* WebP compression format is not supported at the moment (choose JPEG or PNG). | ||
* Now library copies EXIF data to cropped image (size and orientation are updated). | ||
### Version: 1.5 | ||
* Introduced "Freestyle" crop (you can resize crop rectangle by dragging it corners) [#32](https://github.com/Yalantis/uCrop/issues/32) | ||
|
@@ -140,21 +149,21 @@ Since version 2.2.7 in case if you need to change transport protocol, setup time | |
### Version: 1.4 | ||
* Introduced http(s) Uri support! | ||
* Image is cropped in background thread. | ||
* Introduced HTTP(s) Uri support! | ||
* Image is cropped in a background thread. | ||
* Showing loader while Bitmap is processed (both loading and cropping). | ||
* Several bug fixes. | ||
* Couple new things to configure. | ||
* Updated minSdkVersion to Android ICS 4.0 (no reason to support couple percents of old phones). | ||
### Version: 1.3 | ||
* Image is loaded in background thread. Better error-handling for image decoding. | ||
* Image is loaded in a background thread. Better error-handling for image decoding. | ||
* Improved EXIF data support (rotation and mirror). | ||
* Small UI updates. | ||
* Couple new things to configure. | ||
* Sample updated with possibility to choose custom aspect ratio. | ||
* Sample updated with the possibility to choose custom aspect ratio. | ||
### Version: 1.2 | ||
|
@@ -170,7 +179,7 @@ Since version 2.2.7 in case if you need to change transport protocol, setup time | |
### Let us know! | ||
We’d be really happy if you sent us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding the library. | ||
We’d be really happy if you sent us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding the library. | ||
#### Apps using uCrop | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
<resources> | ||
|
||
<string name="ucrop_label_original">اصلی</string> | ||
<string name="ucrop_label_edit_photo">ویرایش عکس</string> | ||
|
||
<string name="ucrop_menu_crop">برش</string> | ||
|
||
<string name="ucrop_rotate">چرخش</string> | ||
<string name="ucrop_scale">اندازه</string> | ||
<string name="ucrop_crop">برش</string> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<resources> | ||
|
||
<string name="ucrop_label_original">Asli</string> | ||
<string name="ucrop_label_edit_photo">Edit Foto</string> | ||
|
||
<string name="ucrop_menu_crop">Pangkas</string> | ||
|
||
<string name="ucrop_rotate">Memutar</string> | ||
<string name="ucrop_scale">Skala</string> | ||
<string name="ucrop_crop">Pangkas</string> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<resources> | ||
|
||
<string name="ucrop_label_original">Original</string> | ||
<string name="ucrop_label_edit_photo">Editar Foto</string> | ||
|
||
<string name="ucrop_menu_crop">Cortar</string> | ||
|
||
<string name="ucrop_rotate">Girar</string> | ||
<string name="ucrop_scale">Tamanho</string> | ||
<string name="ucrop_crop">Cortar</string> | ||
|
||
</resources> |
Oops, something went wrong.