Skip to content

Commit

Permalink
Merge pull request #27 from maztak/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
MoyuruAizawa authored Dec 18, 2024
2 parents 97b7579 + 12ec5c2 commit 57202fc
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ https://user-images.githubusercontent.com/9051623/231838736-8bff221e-8515-4dd4-8

# Installation

1. Add the JitPack repository to your root `build.gradle`.
1. Add the JitPack repository to `settings.gradle.kts`.

```
allprojects {
repositories {
dependencyResolutionManagement {
...
maven { url 'https://jitpack.io' }
}
repositories {
...
maven("https://jitpack.io")
}
}
```

2. Add the dependency.

```
dependencies {
implementation 'com.github.moyuruaizawa:cropify:${cropifyVersion}'
implementation("com.github.moyuruaizawa:cropify:${cropifyVersion}")
}
```

Expand All @@ -38,6 +39,9 @@ Cropify(
bitmap = imageResource(R.drawable.bitmap),
state = state,
onImageCropped = {},
option = CropifyOption(
frameSize = FullSize
),
)
```

Expand All @@ -50,7 +54,10 @@ Cropify(
uri = imageUri,
state = state,
onImageCropped = {},
onFailedToLoadImage = {}
onFailedToLoadImage = {},
option = CropifyOption(
frameSize = FullSize
),
)
```

Expand Down

0 comments on commit 57202fc

Please sign in to comment.