From 46bf25ef8a7af178b05cb14acbf25ba8e293f19b Mon Sep 17 00:00:00 2001 From: Mark Saif <43094629+markoeltiger@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:44:59 +0300 Subject: [PATCH] Add kotlin dsl support in lottie compose readme file the readme file was only supporting normal groovy scripts which not totally used now. --- android-compose.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/android-compose.md b/android-compose.md index 318d569..7c8adbc 100644 --- a/android-compose.md +++ b/android-compose.md @@ -19,6 +19,17 @@ allprojects { } } ``` +For Kotlin DSL:- add Sonatype repository to your `settings.gradle` file: + +```kotlin +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + ... + maven(url = "https://oss.sonatype.org/content/repositories/snapshots/") + } +} +``` The latest snapshot version is: ![lottieSnapshotVersion](https://img.shields.io/nexus/s/com.airbnb.android/lottie-compose?server=https%3A%2F%2Foss.sonatype.org)