From aba9bcf76c1187b09fe2ac14974941aa2a928a70 Mon Sep 17 00:00:00 2001 From: Jaewoong Eum Date: Thu, 18 Jul 2024 09:10:41 +0900 Subject: [PATCH] Update docs for adding the dependency --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 85aa638..adcb501 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,29 @@ ## Download [![Maven Central](https://img.shields.io/maven-central/v/com.github.skydoves/cloudy.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.skydoves%22%20AND%20a:%22cloudy%22) +### Version Catalog + +If you're using Version Catalog, you can configure the dependency by adding it to your `libs.versions.toml` file as follows: + +```toml +[versions] +#... +cloudy = "0.2.0" + +[libraries] +#... +compose-cloudy = { module = "com.github.skydoves:cloudy", version.ref = "cloudy" } +``` + ### Gradle +Add the dependency below to your **module**'s `build.gradle.kts` file: -Add the dependency below to your **module**'s `build.gradle` file: ```gradle dependencies { - implementation "com.github.skydoves:cloudy:0.2.0" + implementation("com.github.skydoves:cloudy:0.2.0") + + // if you're using Version Catalog + implementation(libs.compose.cloudy) } ```