Skip to content

Commit

Permalink
document update
Browse files Browse the repository at this point in the history
  • Loading branch information
rroohit committed Mar 24, 2024
1 parent fc29360 commit f28c7f5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 48 deletions.
55 changes: 15 additions & 40 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ https://github.com/rroohit/ImageCropView/assets/36406595/c92d73d9-bc7e-49d5-abaf





## Including in your project


Expand All @@ -19,7 +17,7 @@ Add this dependency to your **module-level** `build.gradle` in `dependencies` se
dependencies {
//...other repositories
implementation 'io.github.rroohit:ImageCropView:2.1.0'
implementation 'io.github.rroohit:ImageCropView:2.2.0'
}
```
Expand All @@ -39,13 +37,18 @@ imageCrop = ImageCrop(bitmap)

// You can customize ImageCropView with following attributes.
imageCrop.ImageCropView(
modifier = Modifier, //must provide with size
modifier = Modifier,
guideLineColor = Color.LightGray,
guideLineWidth = 2.dp,
edgeCircleSize = 5.dp
edgeCircleSize = 5.dp,
showGuideLines = true,
cropType = CropType.SQUARE
)

imageCrop.onCrop() //will return the cropped bitmap.
imageCrop.onCrop() // To get the cropped image in bitmap format.

// Crop Types param avail...
// cropType = CropType.SQUARE, CropType.FREE_STYLE

```

Expand Down
6 changes: 4 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ systemProp.org.gradle.internal.http.socketTimeout=120000

GROUP=io.github.rroohit
POM_ARTIFACT_ID=ImageCropView
SNAPSHOT=2.1.0-SNAPSHOT
VERSION_NAME=2.2.0
SNAPSHOT=2.2.0-SNAPSHOT

POM_NAME=ImageCropView
POM_DESCRIPTION=Jetpack Compose Image Crop View.
POM_INCEPTION_YEAR=2024
POM_URL=https://github.com/username/mylibrary/
POM_URL=https://github.com/rroohit/ImageCropView/

POM_SCM_URL=https://github.com/rroohit/ImageCropView/
POM_SCM_CONNECTION=scm:git:github.com/rroohit/ImageCropView.git
Expand All @@ -38,5 +39,6 @@ POM_DEVELOPER_URL=https://github.com/rroohit/
POM_DEVELOPER_EMAIL=[email protected]

SONATYPE_HOST=S01
#SONATYPE_HOST=CENTRAL_PORTAL
RELEASE_SIGNING_ENABLED=true
SONATYPE_AUTOMATIC_RELEASE=true

0 comments on commit f28c7f5

Please sign in to comment.