3
0

Compare commits

...

4 Commits

5 changed files with 51 additions and 20 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -37,7 +37,7 @@ object Dependencies {
* *
* [Changelog](https://developer.android.com/jetpack/androidx/releases/core) * [Changelog](https://developer.android.com/jetpack/androidx/releases/core)
*/ */
val core = Dependency("androidx.core:core-ktx", "1.13.1") val core = Dependency("androidx.core:core-ktx", "1.17.0")
/** /**
* [androidx.tech](https://androidx.tech/artifacts/appcompat/appcompat/) * [androidx.tech](https://androidx.tech/artifacts/appcompat/appcompat/)
@@ -112,14 +112,14 @@ object Dependencies {
* *
* [Documentation](https://developer.android.com/training/testing) * [Documentation](https://developer.android.com/training/testing)
*/ */
val core = Dependency("androidx.test:core", "1.5.0") val core = Dependency("androidx.test:core", "1.7.0")
/** /**
* [androidx.tech](https://androidx.tech/artifacts/test/core/) * [androidx.tech](https://androidx.tech/artifacts/test/core/)
* *
* [Documentation](https://developer.android.com/training/testing) * [Documentation](https://developer.android.com/training/testing)
*/ */
val junit = Dependency("androidx.test.ext:junit-ktx", "1.1.5") val junit = Dependency("androidx.test.ext:junit-ktx", "1.3.0")
/** /**
* [androidx.tech](https://androidx.tech/artifacts/test.espresso/espresso-core/) * [androidx.tech](https://androidx.tech/artifacts/test.espresso/espresso-core/)
@@ -127,7 +127,7 @@ object Dependencies {
* [Documentation](https://developer.android.com/training/testing/espresso) * [Documentation](https://developer.android.com/training/testing/espresso)
*/ */
object Espresso { object Espresso {
private const val version = "3.5.1" private const val version = "3.7.0"
val core = Dependency("androidx.test.espresso:espresso-core", version) val core = Dependency("androidx.test.espresso:espresso-core", version)
val intents = Dependency("androidx.test.espresso:espresso-intents", version) val intents = Dependency("androidx.test.espresso:espresso-intents", version)
val contrib = Dependency("androidx.test.espresso:espresso-contrib", version) val contrib = Dependency("androidx.test.espresso:espresso-contrib", version)
@@ -138,21 +138,21 @@ object Dependencies {
* *
* [Documentation](https://developer.android.com/training/testing/junit-runner) * [Documentation](https://developer.android.com/training/testing/junit-runner)
*/ */
val runner = Dependency("androidx.test:runner", "1.5.2") val runner = Dependency("androidx.test:runner", "1.7.0")
/** /**
* [androidx.tech](https://androidx.tech/artifacts/test/rules/) * [androidx.tech](https://androidx.tech/artifacts/test/rules/)
* *
* [Documentation](https://developer.android.com/training/testing/junit-rules) * [Documentation](https://developer.android.com/training/testing/junit-rules)
*/ */
val rules = Dependency("androidx.test:rules", "1.5.0") val rules = Dependency("androidx.test:rules", "1.7.0")
/** /**
* [androidx.tech](https://androidx.tech/artifacts/test/rules/) * [androidx.tech](https://androidx.tech/artifacts/test/rules/)
* *
* [Documentation](https://developer.android.com/training/testing/junit-rules) * [Documentation](https://developer.android.com/training/testing/junit-rules)
*/ */
val compose = Dependency("androidx.compose.ui:ui-test-junit4", "1.6.0") val compose = Dependency("androidx.compose.ui:ui-test-junit4", "1.9.3")
/** /**
* [androidx.tech](https://androidx.tech/artifacts/test/orchestrator/) * [androidx.tech](https://androidx.tech/artifacts/test/orchestrator/)
@@ -176,13 +176,13 @@ object Dependencies {
* *
* [Changelog](https://github.com/material-components/material-components-android/releases) * [Changelog](https://github.com/material-components/material-components-android/releases)
*/ */
val materialDesign = Dependency("com.google.android.material:material", "1.11.0") val materialDesign = Dependency("com.google.android.material:material", "1.13.0")
/** /**
* [androidx.tech](https://androidx.tech/artifacts/lifecycle/lifecycle-viewmodel/) * [androidx.tech](https://androidx.tech/artifacts/lifecycle/lifecycle-viewmodel/)
*/ */
object Lifecycle { object Lifecycle {
private const val version = "2.6.1" private const val version = "2.9.4"
val viewModel = Dependency("androidx.lifecycle:lifecycle-viewmodel-ktx", version) val viewModel = Dependency("androidx.lifecycle:lifecycle-viewmodel-ktx", version)
val common = Dependency("androidx.lifecycle:lifecycle-common", version) val common = Dependency("androidx.lifecycle:lifecycle-common", version)
@@ -200,7 +200,7 @@ object Dependencies {
* *
* [Changelog](https://github.com/junit-team/junit4/wiki) * [Changelog](https://github.com/junit-team/junit4/wiki)
*/ */
val junit = Dependency("junit:junit", "4.13") val junit = Dependency("junit:junit", "6.00")
/** /**
* Truth makes your test assertions and failure messages more readable. * Truth makes your test assertions and failure messages more readable.
@@ -215,7 +215,7 @@ object Dependencies {
* *
* [Changelog](https://github.com/google/truth/releases) * [Changelog](https://github.com/google/truth/releases)
*/ */
val truth = Dependency("com.google.truth:truth", "1.3.0") val truth = Dependency("com.google.truth:truth", "1.4.5")
/** /**
* Kaspresso is a framework for Android UI testing. Based on Espresso and UI Automator. * Kaspresso is a framework for Android UI testing. Based on Espresso and UI Automator.
@@ -229,7 +229,7 @@ object Dependencies {
* [Changelog](https://github.com/KasperskyLab/Kaspresso/releases) * [Changelog](https://github.com/KasperskyLab/Kaspresso/releases)
*/ */
object Kaspresso { object Kaspresso {
private const val version = "1.5.3" private const val version = "1.6.0"
val core = Dependency("com.kaspersky.android-components:kaspresso", version) val core = Dependency("com.kaspersky.android-components:kaspresso", version)
val composeSupport = Dependency("com.kaspersky.android-components:kaspresso-compose-support", version) val composeSupport = Dependency("com.kaspersky.android-components:kaspresso-compose-support", version)
} }

View File

@@ -4,6 +4,10 @@ fun DependencyHandler.implementation(dependency: Dependency) {
add(Type.IMPLEMENTATION, dependency.fullPath) add(Type.IMPLEMENTATION, dependency.fullPath)
} }
fun DependencyHandler.implementation(dependency: Any) {
add(Type.IMPLEMENTATION, dependency)
}
fun DependencyHandler.testImplementation(dependency: Dependency) { fun DependencyHandler.testImplementation(dependency: Dependency) {
add(Type.TEST_IMPLEMENTATION, dependency.fullPath) add(Type.TEST_IMPLEMENTATION, dependency.fullPath)
} }
@@ -12,6 +16,10 @@ fun DependencyHandler.androidTestImplementation(dependency: Dependency) {
add(Type.ANDROID_TEST_IMPLEMENTATION, dependency.fullPath) add(Type.ANDROID_TEST_IMPLEMENTATION, dependency.fullPath)
} }
fun DependencyHandler.androidTestImplementation(dependency: Any) {
add(Type.ANDROID_TEST_IMPLEMENTATION, dependency)
}
fun DependencyHandler.api(dependency: Dependency) { fun DependencyHandler.api(dependency: Dependency) {
add(Type.API, dependency.fullPath) add(Type.API, dependency.fullPath)
} }
@@ -30,6 +38,21 @@ fun DependencyHandler.defaultLibrary() {
api(Dependencies.AndroidX.materialDesign) api(Dependencies.AndroidX.materialDesign)
} }
fun DependencyHandler.defaultComposeLibrary() {
defaultLibrary()
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
implementation("androidx.activity:activity-compose:1.8.0")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.5")
val composeBom = platform("androidx.compose:compose-bom:2025.10.00")
implementation(composeBom)
androidTestImplementation(composeBom)
implementation("androidx.compose.material3:material3")
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.ui:ui")
}
private object Type { private object Type {
const val IMPLEMENTATION = "implementation" const val IMPLEMENTATION = "implementation"
const val TEST_IMPLEMENTATION = "testImplementation" const val TEST_IMPLEMENTATION = "testImplementation"

View File

@@ -1,3 +1,4 @@
import org.gradle.kotlin.dsl.kotlin
import org.gradle.plugin.use.PluginDependenciesSpec import org.gradle.plugin.use.PluginDependenciesSpec
import org.gradle.plugin.use.PluginDependencySpec import org.gradle.plugin.use.PluginDependencySpec
@@ -7,6 +8,8 @@ val PluginDependenciesSpec.androidLibrary: PluginDependencySpec
get() = id(Plugin.Id.Android.library) get() = id(Plugin.Id.Android.library)
val PluginDependenciesSpec.kotlinJvm: PluginDependencySpec val PluginDependenciesSpec.kotlinJvm: PluginDependencySpec
get() = id(Plugin.Id.Kotlin.jvm) get() = id(Plugin.Id.Kotlin.jvm)
val PluginDependenciesSpec.composeCompiler: PluginDependencySpec
get() = id(Plugin.Id.Android.compose)
val PluginDependenciesSpec.kotlinAndroid: PluginDependencySpec val PluginDependenciesSpec.kotlinAndroid: PluginDependencySpec
get() = id(Plugin.Id.Kotlin.android) get() = id(Plugin.Id.Kotlin.android)
val PluginDependenciesSpec.kotlinParcelize: PluginDependencySpec val PluginDependenciesSpec.kotlinParcelize: PluginDependencySpec
@@ -14,7 +17,7 @@ val PluginDependenciesSpec.kotlinParcelize: PluginDependencySpec
val PluginDependenciesSpec.kotlinAnnotationProcessor: PluginDependencySpec val PluginDependenciesSpec.kotlinAnnotationProcessor: PluginDependencySpec
get() = id(Plugin.Id.Kotlin.annotationProcessor) get() = id(Plugin.Id.Kotlin.annotationProcessor)
val PluginDependenciesSpec.kotlinSerialization: PluginDependencySpec val PluginDependenciesSpec.kotlinSerialization: PluginDependencySpec
get() = id(Plugin.Id.Kotlin.serialization) get() = kotlin(Plugin.Id.Kotlin.serialization)
object Plugin { object Plugin {
object Id { object Id {
@@ -29,6 +32,11 @@ object Plugin {
* [Changelog](https://developer.android.com/studio/releases/gradle-plugin) * [Changelog](https://developer.android.com/studio/releases/gradle-plugin)
*/ */
const val library = "com.android.library" const val library = "com.android.library"
/**
* [Documentation](https://google.github.io/android-gradle-dsl/current/)
* [Changelog](https://developer.android.com/studio/releases/gradle-plugin)
*/
const val compose = "org.jetbrains.kotlin.plugin.compose"
} }
object Kotlin { object Kotlin {

View File

@@ -13,7 +13,7 @@ object Version {
* *
* [Changelog](https://gradle.org/releases/) * [Changelog](https://gradle.org/releases/)
*/ */
const val agp = "8.7.1" const val agp = "8.13.0"
object Kotlin { object Kotlin {
@@ -26,17 +26,17 @@ object Version {
* *
* [Changelog](https://kotlinlang.org/releases.html) * [Changelog](https://kotlinlang.org/releases.html)
*/ */
const val language = "2.0.21" const val language = "2.2.20"
val javaSource = JavaVersion.VERSION_11 val javaSource = JavaVersion.VERSION_21
const val jvmTarget = "11" const val jvmTarget = "21"
} }
object Android { object Android {
object Sdk { object Sdk {
const val min = 24 const val min = 26
const val compile = 34 const val compile = 36
const val target = 34 const val target = 36
} }
} }
} }