From 26f5ebb3403a38f4b383530a3b92c0db029ea4c0 Mon Sep 17 00:00:00 2001 From: drop189 <71636973+drop189@users.noreply.github.com> Date: Fri, 2 Aug 2024 14:55:44 +0300 Subject: [PATCH] Update README.md Update dependency configuration for JitPack in Kotlin DSL Previously, JitPack repository was configured using Groovy syntax in the `build.gradle` file. Updated configuration: - Added JitPack repository setup in `settings.gradle.kts` for plugin management and dependency resolution. - Confirmed `KAndroid` dependency declaration in `build.gradle.kts` using Kotlin DSL. This change ensures proper integration of JitPack in Kotlin DSL. --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 7556cbe..964fadf 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Download -------- Download latest version with Gradle: +Groovy: ```groovy allprojects { repositories { @@ -16,6 +17,27 @@ allprojects { } } +dependencies { + implementation 'com.github.pawegio:KAndroid:0.8.7@aar' +} +``` +Kotlin: +1. In `settings.gradle.kts` file: +```kotlin +pluginManagement { + repositories { + maven { url = uri("https://jitpack.io") } + } +} +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + maven { url = uri("https://jitpack.io") } + } +} +``` +2. In `build.gradle.kts` file +``` dependencies { implementation 'com.github.pawegio:KAndroid:0.8.7@aar' }