Skip to content

Commit cf6d0c2

Browse files
committed
Updated README.md
1 parent 9da91be commit cf6d0c2

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

README.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,25 @@
22

33
#### This project aims to provide an ultimate and flexible image cropping experience. Made in [Yalantis] (https://yalantis.com/?utm_source=github)
44

5+
<img src="https://github.com/Yalantis/uCrop/blob/master/preview.png" alt="alt text" style="width:200;height:200">
6+
57
# Usage
68

79
*For a working implementation, please have a look at the Sample Project - sample*
810

911
1. Include the library as local library project.
1012

11-
``` compile 'com.yalantis:ucrop:[latest version]' ```
13+
``` compile 'com.yalantis:ucrop:1.0.0' ```
1214

15+
2. Add UCropActivity into your AndroidManifest.xml
1316

14-
2. The uCrop configuration is created using the builder pattern.
17+
```
18+
<activity
19+
android:name="com.yalantis.ucrop.UCropActivity"
20+
android:screenOrientation="portrait"/>
21+
```
22+
23+
3. The uCrop configuration is created using the builder pattern.
1524
1625
```java
1726
UCrop.of(sourceUri, destinationUri)
@@ -21,7 +30,7 @@
2130
```
2231
2332
24-
3. Override `onActivityResult` method and handle uCrop result.
33+
4. Override `onActivityResult` method and handle uCrop result.
2534
2635
```java
2736
@Override
@@ -37,6 +46,8 @@
3746
3847
# Customization
3948
49+
If you want to let your users choose crop ratio dynamically, just do not call `withAspectRatio(x, y)`.
50+
4051
uCrop builder class has method `withOptions(UCrop.Options option)` which extends library configurations.
4152
4253
Currently you can change:

build.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ def isReleaseBuild() {
1717
}
1818

1919
allprojects {
20+
version = VERSION_NAME
21+
group = GROUP
22+
2023
repositories {
2124
jcenter()
2225
}

preview.png

1.4 MB
Loading

ucrop/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ android {
99
minSdkVersion 10
1010
targetSdkVersion 23
1111
versionCode 1
12-
versionName "1.0"
12+
versionName "1.0.0"
1313
}
1414
buildTypes {
1515
release {

0 commit comments

Comments
 (0)