Skip to content

Commit

Permalink
Prepare for the next release
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Oct 12, 2022
1 parent 845991f commit 2a87478
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repositories {
Next, add the dependency below to your **module**'s `build.gradle` file:
```gradle
dependencies {
implementation "com.github.skydoves:landscapist-glide:2.0.1-SNAPSHOT"
implementation "com.github.skydoves:landscapist-glide:2.0.2-SNAPSHOT"
}
```
</details>
Expand All @@ -68,7 +68,7 @@ allprojects {
Next, add the dependency below to your **module**'s `build.gradle` file:
```gradle
dependencies {
implementation "com.github.skydoves:landscapist-glide:2.0.0"
implementation "com.github.skydoves:landscapist-glide:2.0.1"
}
```

Expand All @@ -79,7 +79,7 @@ You can load images simply by using `GlideImage` composable function as the foll

```kotlin
GlideImage(
imageModel = imageUrl, // loading a network image using an URL.
imageModel = { imageUrl }, // loading a network image using an URL.
imageOptions = ImageOptions(
contentScale = ContentScale.Crop,
alignment = Alignment.Center
Expand All @@ -96,7 +96,7 @@ You can customize your request-options with your own [RequestOptions](https://bu

```kotlin
GlideImage(
imageModel = imageUrl,
imageModel = { imageUrl },
requestOptions = {
RequestOptions()
.override(256, 256)
Expand All @@ -111,7 +111,7 @@ You can request image with your own [RequestBuilder](https://bumptech.github.io/

```kotlin
GlideImage(
imageModel = imageUrl,
imageModel = { imageUrl },
requestBuilder = { Glide.with(LocalContext.current.applicationContext).asDrawable() },
modifier = Modifier.constrainAs(image) {
centerHorizontallyTo(parent)
Expand All @@ -125,7 +125,7 @@ You can register your own [RequestListener](https://bumptech.github.io/glide/jav

```kotlin
GlideImage(
imageModel = imageUrl,
imageModel = { imageUrl },
requestListener = object: RequestListener<Drawable> {
override fun onLoadFailed(
e: GlideException?,
Expand Down Expand Up @@ -189,7 +189,7 @@ You can load images by using the `CoilImage` composable function as the followin

```kotlin
CoilImage(
imageModel = imageUrl, // loading a network image or local resource using an URL.
imageModel = { imageUrl }, // loading a network image or local resource using an URL.
imageOptions = ImageOptions(
contentScale = ContentScale.Crop,
alignment = Alignment.Center
Expand Down Expand Up @@ -252,7 +252,7 @@ val imageLoader = ImageLoader.Builder(context)
.build()

CoilImage(
imageModel = poster.gif, // URL of an animated image.
imageModel = { poster.gif }, // URL of an animated image.
imageLoader = { imageLoader },
shimmerParams = ShimmerParams(
baseColor = background800,
Expand Down Expand Up @@ -449,7 +449,7 @@ You can execute your own composable functions depending on the three request sta

```kotlin
GlideImage( // CoilImage, FrescoImage
imageModel = imageUrl,
imageModel = { imageUrl },
modifier = modifier,
// shows an indicator while loading an image.
loading = {
Expand All @@ -470,7 +470,7 @@ Also, you can customize the image content with our own composable function like

```kotlin
GlideImage( // CoilImage, FrescoImage
imageModel = imageUrl,
imageModel = { imageUrl },
// draw a resized image.
success = { imageState ->
imageState.imageBitmap?.let {
Expand All @@ -495,7 +495,7 @@ Landscapist supports preview mode for each image library; **Glide**, **Coil**, a

```kotlin
GlideImage(
imageModel = poster.poster,
imageModel = { imageUrl },
modifier = Modifier.aspectRatio(0.8f),
previewPlaceholder = R.drawable.poster
)
Expand Down Expand Up @@ -541,7 +541,7 @@ Next, you can compose plugins by adding them in the `rememberImageComponent` lik

```kotlin
GlideImage(
imageModel = poster.image,
imageModel = { poster.image },
component = rememberImageComponent {
add(CircularRevealPlugin())
add(LoadingPlugin(source))
Expand All @@ -553,7 +553,7 @@ or you can just add plugins by using the **+** expression like the below:

```kotlin
GlideImage(
imageModel = poster.image,
imageModel = { poster.image },
component = rememberImageComponent {
+CircularRevealPlugin()
+LoadingPlugin(source)
Expand Down Expand Up @@ -596,7 +596,7 @@ You can implement a shimmering effect while loading an image by using the `Shimm

```kotlin
GlideImage( // CoilImage, FrescoImage
imageModel = imageUrl,
imageModel = { imageUrl },
modifier = modifier,
component = rememberImageComponent {
// shows a shimmering effect when loading an image.
Expand Down Expand Up @@ -655,7 +655,7 @@ You can implement the crossfade animation while drawing images with `CrossfadePl

```kotlin
GlideImage(
imageModel = poster.image,
imageModel = { poster.image },
modifier = Modifier
.aspectRatio(0.8f),
component = rememberImageComponent {
Expand All @@ -673,7 +673,7 @@ You can implement the circular reveal animation while drawing images with `Circu

```kotlin
GlideImage(
imageModel = poster.image,
imageModel = { poster.image },
modifier = Modifier
.aspectRatio(0.8f),
component = rememberImageComponent {
Expand Down Expand Up @@ -707,7 +707,7 @@ You can extract primary (theme) color profiles with `PalettePlugin`. You can che
var palette by remember { mutableStateOf<Palette?>(null) }

GlideImage( // CoilImage, FrescoImage also can be used.
imageModel = poster.image,
imageModel = { poster.image },
modifier = Modifier
.aspectRatio(0.8f),
component = rememberImageComponent {
Expand Down Expand Up @@ -735,7 +735,7 @@ Also, you can customize attributes of `PalettePlugin` like the example below:
var palette by remember { mutableStateOf<Palette?>(null) }

GlideImage( // CoilImage, FrescoImage also can be used.
imageModel = poster.image,
imageModel = { poster.image },
modifier = Modifier
.aspectRatio(0.8f),
component = rememberImageComponent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ object Configuration {
const val minSdk = 21
const val majorVersion = 2
const val minorVersion = 0
const val patchVersion = 0
const val patchVersion = 1
const val versionName = "$majorVersion.$minorVersion.$patchVersion"
const val versionCode = 56
const val versionCode = 57
const val snapshotVersionName = "$majorVersion.$minorVersion.${patchVersion + 1}-SNAPSHOT"
const val artifactGroup = "com.github.skydoves"
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "1.7.20"
dokka = "1.7.10"
dokka = "1.7.20"
jvmTarget = "1.8"
nexusPlugin = "1.1.0"
kotlinxCoroutines = "1.6.4"
Expand Down

0 comments on commit 2a87478

Please sign in to comment.