From deb24ec7ef3d1bda80ec8d8619b7b2bc86788682 Mon Sep 17 00:00:00 2001 From: vladimir-shperling Date: Mon, 9 Sep 2024 02:40:55 +0700 Subject: [PATCH] add core lib for kotlin --- src/main/java/Dependencies.kt | 7 +++++++ src/main/java/DependencyHandlerExtensions.kt | 1 + src/main/java/Version.kt | 1 + 3 files changed, 9 insertions(+) diff --git a/src/main/java/Dependencies.kt b/src/main/java/Dependencies.kt index 7fadda8..a6d29f5 100644 --- a/src/main/java/Dependencies.kt +++ b/src/main/java/Dependencies.kt @@ -32,6 +32,13 @@ object Dependencies { * [Releases](https://developer.android.com/jetpack/androidx/versions). */ object AndroidX { + /** + * [androidx.tech](https://androidx.tech/artifacts/core/core-ktx/) + * + * [Changelog](https://developer.android.com/jetpack/androidx/releases/core) + */ + val core = Dependency("androidx.core:core-ktx", "1.13.1") + /** * [androidx.tech](https://androidx.tech/artifacts/appcompat/appcompat/) * diff --git a/src/main/java/DependencyHandlerExtensions.kt b/src/main/java/DependencyHandlerExtensions.kt index 88da570..12065c1 100644 --- a/src/main/java/DependencyHandlerExtensions.kt +++ b/src/main/java/DependencyHandlerExtensions.kt @@ -25,6 +25,7 @@ fun DependencyHandler.ksp(dependency: Dependency) { } fun DependencyHandler.defaultLibrary() { + api(Dependencies.AndroidX.core) api(Dependencies.AndroidX.appcompat) api(Dependencies.AndroidX.materialDesign) } diff --git a/src/main/java/Version.kt b/src/main/java/Version.kt index 04cad49..1662cbf 100644 --- a/src/main/java/Version.kt +++ b/src/main/java/Version.kt @@ -29,6 +29,7 @@ object Version { const val language = "1.9.10" val javaSource = JavaVersion.VERSION_1_8 + const val jvmTarget = "1.8" } object Android {